INFO - FAQ - CC2-Forum - CCPro-Forum |
> > > > 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 Hallo Achim In both cases 0 (OFF) Bye Rien |
Antwort schreiben |