Is there any code that is accessing the USER Button on the Spinneret?
Brandon_L
Posts: 37
Is anyones code polling the USER button on the Spinneret Board?
Thanks
Brandon
Thanks
Brandon
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.