How to turn on an LED only when "click" is enabled?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bahootas
 
Posts: 5
Joined: Sat May 11, 2013 9:35 pm

How to turn on an LED only when "click" is enabled?

Post by bahootas »

Hi! I'm using Makey Makey and Arduino. I'd like to have an LED or vibration motor turn on only when "click" is enabled.  Can anyone suggest the wiring and sketch to use, please?  If I hook up an LED to "Earth" and D16, the LED (and vibration motor) turns on for ALL the mouse functions (i.e., up, down, left and right), but I just want to isolate the LED or vibration motor to turn on ONLY when "click" is enabled.  Thanks everyone!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”