Use 2 leds and 2 buttons using arduino and processing

@animebrowny Please format your code. Edit your post, select your code and hit the </> button in the toolbar of the post box.

Great you check that both buttons are working with the first led. Can you check the second led? Does it work the same? Or is it toasted? I burn LEDs all the time, so it is a good habit to manually test LEDs to ensure they work.

Please check these two codes as you could find them helpful:

https://forum.processing.org/two/discussion/14004/sending-a-numeri
Example code: Controlling Electric Motors with a controlP5 knob and Adafruit Motor Shield boards - Processing 2.x and 3.x Forum

is this an exercise or do you have a specific purpose? As I understand, you only want one and only one LED on at a time?

Kf

1 Like