Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: LCD Ansteuerung mit Basic++ und M 1.1 Kategorie: C-Control I V1.1 (von Beat Stöckli - 3.01.2005 6:42)
 Als Antwort auf Re: LCD Ansteuerung mit Basic++ und M 1.1 von Stefan Tappertzhofen - 2.01.2005 22:11

> Hallo,
>
> wie sieht die Deklaration der Variablen aus?
>
> Gruß,
>
> Stefan

hier die Deklaration der Variablen

' *** Daten-Definition ***
DEFINE lcd_buf        AS BYTE [23]
DEFINE lcd_param      AS BYTE [24]
DEFINE key_nr         AS BYTE [22]


' *** Definition LCD-Ports ***
DEFINE busport AS BYTEPORT [1]
DEFINE lcd_rw  AS PORT [5]
DEFINE lcd_rs  AS PORT [6]
DEFINE lcd_e   AS PORT [7]

' *** Definition Latch Port
DEFINE latchport       AS BYTEPORT [2]
DEFINE lcd_latch       AS PORT [9]
DEFINE latch2          AS PORT [10]
DEFINE latch3          AS PORT [11]
DEFINE latch4          AS PORT [12]
DEFINE latch5          AS PORT [13]
DEFINE latch6          AS PORT [14]
DEFINE latch7          AS PORT [15]
DEFINE reserve         AS PORT [16]       'ehemals D-FlipFlop setzen nach Power ON

' *****FUNCTION deklarieren

DECLARE FUNCTION lcd_init()
DECLARE FUNCTION lcd_writecmd()
DECLARE FUNCTION lcd_writechar()
DECLARE FUNCTION lcd_write()
DECLARE FUNCTION lcd_cls()
DECLARE FUNCTION lcd_gotoline()

Gruss Beat



 Antwort schreiben

Bisherige Antworten:

Re: LCD Ansteuerung mit Basic++ und M 1.1 (von Stefan Tappertzhofen - 3.01.2005 12:05)
    Re: LCD Ansteuerung mit Basic++ und M 1.1 (von Beat Stöckli - 4.01.2005 17:26)