Instructables

Use Button to Control LED on pcDuino with Java

Picture of Use Button to Control LED on pcDuino with Java
In a previous post, we looked at how to blink LED using Java GPIO control. In this post, we will look at how to use program with Java to implement a LED controlled by a button.

Step 1: Parts List

Picture of Parts List
Parts List:

1 x Linker LED module
Several male to female jumper wires
1 x Linker Button module
1 x pcDuino v2

Step 2: Wiring Diagram

The components are wired in the following way:

GND of Linker LED module to GND of pcDuino2
SIG of Linker LED module to Digital 8 of pcDuino2
GND of Linker Button module to GND of pcDuino2
VCC of Linker Button module to 5V of pcDuino2
SIG of Linker Button module to Digital 9 of pcDuino2
 
Remove these adsRemove these ads by Signing Up