Author Topic: Simple Button sketch for the RGB LED / Button Shield  (Read 2323 times)

MtDon

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Simple Button sketch for the RGB LED / Button Shield
« on: November 09, 2013, 10:13:32 PM »
A modification of my ColorBlink02.ino sketch. This doesn't use the RF capabilities of the RFduino.

It blinks the RGB LED when a button on the Shield is pressed. One color when button A is pushed and a second color when button B is pushed. (Button A and button B are indicated on the shield.)

I couldn't find the pin numbers for the buttons, but it was fairly easy to find which pin connects to which button.

Button A is pin 5, and Button B is pin 6.

mrFAMtastic

  • RFduino Team
  • *****
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Simple Button sketch for the RGB LED / Button Shield
« Reply #1 on: November 27, 2013, 05:28:19 PM »
The pin labels are on the bottom of the shield =)