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

by Bahootas on Sat May 11, 2013 8:40 pm

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!
Bahootas
 
Posts: 1
Joined: Sat May 11, 2013 8:35 pm