Prop-1 inputs and outputs
haunteddansion
Posts: 68
How do I initialize the program so·pin 1-7 are inputs, and pin 0 is an output. What would the code looks like thanks much!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Since all I/O pins are input by default you could just use OUTPUT 0 in your code or, if you know the default state you want the pin to output at you could use HIGH 0 or LOW 0 which will make the pin an output in that state. The rest will remain inputs. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support