Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - FAQ - Zum CC1-Forum - Zum CC-Pro-Forum

Wo liegt mein DEnkfehler? Kategorie: Programmierung (von Erich - 20.06.2006 13:48)
Ich nutze:
C-Control II Unit, CC2-Application-Board, OSOPT V3.0
AHoi,

habe wie so oft ein Problem

Es wird zwar gepulst, aber nichts angezeigt. Das hier ist nur ein Versuchsprogramm,
der Fehler in meinem HAuptprogramm beruht aber sicher auf dem selben.

Was habe ich falsch gemacht? Das Display geht - auf dem Display erscheint etwas, wenn ich dafür
ein separates Programm (das mit dem trallala und hoppsasa...) kompiliere.

Erich




//------------
  thread main
//------------
{
  int i, bool;
  string s;
  lcdext.init();

  i = 0;
  bool = 0;

   


{
 lcdext.init();
 lcdext.clear();
}


    loop
    {
      if i >= 3000
        bool = 1;
      if i <= 0
        bool = 0;
       
      if bool == 0
        i = i + 50;
      if bool == 1
        i = i - 50;

      plm.out(1, i);
      plm.out(0, i);
      plm.out(2, i);

      s= "";
      str.putint(s, ports.getcount(1));
      lcdext.print(s);
      lcdext.print("Trallala");
      sleep 500;
      lcdext.clear();

      s= "";
      str.putint(s, ports.getcount(2));
      lcdext.print(s);
      lcdext.print("  und  ");
      sleep 500;
      lcdext.clear();

      s= "";
      str.putint(s, ports.getcount(3));
      lcdext.print(s);
      lcdext.print("Hoppsasa");
      sleep 500;
      lcdext.clear();
    }
  halt;



    Antwort schreiben


Antworten:

Lest doch bitte nochmal den Thread hier durch bzgl. Testerei mit Basis a la "hello world". Vielleicht glaubt ihr mir ja dann. (von Erich - 13.07.2006 19:49)
Nachtrag (von Erich - 20.06.2006 15:16)
    Re: Nachtrag (von Ingo - 20.06.2006 16:47)
        Re: Nachtrag (von Erich - 21.06.2006 10:47)
            Re: Nachtrag (von Erich - 26.06.2006 15:16)
            Re: Nachtrag (von Erich - 26.06.2006 15:15)