Hello, I will be showing you how to turn on a LED with Arduino Nano Breakout Shield
Parts needed:
-Arduino Nano
-Arduino Nano Breakout Shield
-2x Female jumper wire
-1x LED
Firstly, put your Arduino Nano in the Arduino Nano Breakout Shield, then connect a female wire on D2 of Arduino Nano Breakout Shield, then connect a female jumper wire on GND of Arduino Nano Breakout Shield. Then connect the positive leg of LED to female jumper wire of D2,
then connect negative leg of LED to female jumper wire of GND.
The code is:
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(2, HIGH);
}
After this the LED should light up.
1 post - 1 participant