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 

 C3C LCD code not working Kategorie: C-Control I V1.1 (von Tjeerd - 15.08.2008 19:46)
I am trying to get the LCD display which came with the c-control plus kit to work using C3C. It works fine using the CCplus programming tool. I suspect the problems is using the correct Ausgabeport for OutByte but I am not sure as I tried a few to no avail. Any ideas?

This is the C code:


#define Ausgabeport 0 // Datenport für LCD-Display
#define Strobe      8 // Strobe-Leitung für LCD-Display

static char Meldung[15] = "Hello world!\r\n";

void SchreibeZeichen(char Zeichen)
{
  OutByte(Ausgabeport,Zeichen);
  Pulse(Strobe);
}

void main()
{
  int i = 0;

  while (Meldung[i]!=0)
  {
    SchreibeZeichen(Meldung[i]);
    i++;
  }
}

 Antwort schreiben

Bisherige Antworten:

Re: C3C LCD code not working (von Tjeerd - 20.08.2008 18:38)