// #########################################
// External LED Interfacing
// #########################################
//
// Interfacing LED to Raspberry Pi Pico and controlling it Using Arduino Code (Hardware & Simulation)
//
// Check out the link for Code explanation and Hardware details
// Link:
// http://tech.arunkumarn.in/blogs/
//
#define LED_1 3
#define LED_2 12
void setup() {
// Initialize LED as output PIN
pinMode(LED_1, OUTPUT);
pinMode(LED_2, OUTPUT);
}
void loop() {
// Turning ON External LED
digitalWrite(LED_1, HIGH); // HIGH Logic
digitalWrite(LED_2, LOW); // LOW Logic
delay(2000);
// Turning OFF External LED
digitalWrite(LED_1, LOW); // HIGH Logic
digitalWrite(LED_2, HIGH); // LOW Logic
delay(1000);
}
Low Logic
High Logic
LED 1
LED 2
R1
R2