Arduino, Cpp.
digitalWrite(greenLedPin, HIGH); digitalWrite(redLedPin, LOW); digitalWrite(buzzerPin, LOW); } } Note: The comments (// or /* */) do not need to be typed. Lab3 — Illuminate an LED with the activation of a piezo. Objective: Activate a buzzer (sound) through a trigger by an IR sensor. Materials List: