BricktronicsButton v1.2 - A software library for LEGO NXT Pushbutton sensors.
More details at http://www.wayneandlayne.com/bricktronics/
To Download
- Click the "Clone or download" button on the upper-right side of this page below the pink bar, then select "Download ZIP". Rename the uncompressed folder BricktronicsButton. Check that the BricktronicsButton folder contains BricktronicsButton.cpp and BricktronicsButton.h
- Place the BricktronicsButton library folder into your
<arduinosketchfolder>/libraries/folder. You may need to create the libraries subfolder if this is your first installed library. Restart the Arduino IDE.
API Highlights
BricktronicsButton(uint8_t inputPin)- Constructorvoid begin(void)- Call the begin function in your setup() functionbool isPressed(void)- Returns true if the button is currently pressedbool isReleased(void)- Returns true if the button is currently released- More API details in API.md
If you want to use buttons with your Bricktronics Shield or Megashield, you may also be interested in these libraries:
Wayne and Layne, LLC and our products are not connected to or endorsed by the LEGO Group. LEGO, Mindstorms, and NXT are trademarks of the LEGO Group.