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. > > > > Which value does datenR have, when P3 is not pressed? > > Which value does datenR have, when P3 is pressed? > > > In both cases 0 (OFF) Well, there you have your immediate answer, why pressing P3 does not turn the stepper. Your program is not aware, that P3 has been pressed. Either pressing P3 does not change the voltage on your input port or the input port is defect or you do not read the value of the input port properly. Unfotunately I do not know how to operate the IIC-Bus. Maybe Carsten's idea contains the solution. Bye Achim |
Antwort schreiben |