SlicedSilver / iRduino

Interfaces between the iRacing API and an Arduino board. Can control displays, LEDs, buttons and much more. Supports custom iRacing Arduino projects.
GNU General Public License v2.0
18 stars 13 forks source link

Arduino Buttons #16

Open SlicedSilver opened 11 years ago

SlicedSilver commented 11 years ago

Use buttons wired directly to the Arduino. Uses standard button functions.

Ask for whether to use pullup resistor. Can choose custom pin option in arduino generation. then code will look like buttons[8] = 0; //Replace 0 with your custom code

e.g. buttons[8] = gpio.DigitalRead(1,14);

EDIT: Set pins in configuration page.