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: progamming PCF8574 Kategorie: Programmierung Basic (von Achim - 23.11.2004 11:07)
 Als Antwort auf Re: progamming PCF8574 von rien an harmelen - 23.11.2004 9:25
> > > Please, who can help me to program a  PCF8574. What is wrong in the program given below.

> I think there is someting wrong because by pressing the switch P3 the stepper does not turn, as I have in mind.

This is part of your program from your original posting:

#loop
'reading ON/OFF of P3
gosub start
datenW=65
gosub I2C_write
gosub I2C_read
gosub Noack
gosub Stop
if datenR=&B00001111 then gosub motor else goto loop
goto loop


Which value does datenR have, when P3 is not pressed?
Which value does datenR have, when P3 is pressed?

Bye
 Achim

 Antwort schreiben

Bisherige Antworten:

Re: progamming PCF8574 (von rien an harmelen - 23.11.2004 17:33)
    Re: progamming PCF8574 (von Achim - 23.11.2004 18:04)