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 18:04)
 Als Antwort auf Re: progamming PCF8574 von rien an harmelen - 23.11.2004 17:33
> > > > > 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

Bisherige Antworten: