Brandon,
The user button is on P23. It is active high, so ina[23] will read as a '1' while someone is pressing the button and a '0' while it is resting. You can also output to P23 to drive the user LED. You cannot drive the LED and read the button at the same time, but you can switch back and forth so fast that no one will notice:
Comments
The user button is on P23. It is active high, so ina[23] will read as a '1' while someone is pressing the button and a '0' while it is resting. You can also output to P23 to drive the user LED. You cannot drive the LED and read the button at the same time, but you can switch back and forth so fast that no one will notice:
dira[23]~
ButtonState := ina[23]
dira[23]~~
David Carrier
Parallax inc.
Thanks so much! I will give that a shot.