
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Ich noch mal, habe mich verschrieben. In meiner Auflistung heist es nicht PCF 8574P sondern PCF 8574A [Asche streu] Du hast den PCF ohne A also gilt define EXTPORT as byteport[10] define Saugmotor as port[74] Gruß Jörg > Hallo Fritz, > > aJa, du hast eine Station. Da muss man bisschen anders herangehen, Vor allem muss I2c-Bus und LCD initialisiert werden. > > define SDA as port[9] > define SCL as port[10] > > define EXTPORT as byteport[18] > define Saugmotor as port[138] > > LCD.INIT > LCD.OFF > SDA=on > SCL=on > EXTPORT=off > #loop > SaugMotor = on > pause 500 > SaugMotor = off > pause 500 > goto loop > > Gruß Jörg > > Jörg, > > das geht auch nicht wenn ich das SaugMotor Bit als Port definiere. > > > > > > > > > > > > > Hallo Fritz, > > > tja, so auch nicht :-) es heißt nicht "bit" sondern "port"!! > > > define SaugMotor as port[138] > > > > > > Gruß Jörg > > > > > > > Hallo Jörg, > > > > > > > > danke, dann müsste es ja ganz einfach sein. > > > > > > > > Ich habe den PCF8574P, Spannung liegt an, Relais schalten manuell, die Adresse des Bausteines steht auf 111 und ich habe folgendes codiert: > > > > > > > > define SaugMotor as bit [138] > > > > ... > > > > SaugMotor = on > > > > pause 500 > > > > SaugMotor = off > > > > > > > > Es tut sich aber nichts. Muss ich noch was initialisieren? > > > > > > > > |
| Antwort schreiben |