From f9803d26487224e0cefcd8f5899275d14a63b8fd Mon Sep 17 00:00:00 2001 From: mattmcw Date: Wed, 21 Feb 2024 22:54:46 +0100 Subject: [PATCH] Add proof of concept blink script for wiring the lamp to be driven by +5V and the TIP120 controlling 3 LEDs at once. --- ino/lamp_TIP120_poc/lamp_TIP120_poc.ino | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ino/lamp_TIP120_poc/lamp_TIP120_poc.ino diff --git a/ino/lamp_TIP120_poc/lamp_TIP120_poc.ino b/ino/lamp_TIP120_poc/lamp_TIP120_poc.ino new file mode 100644 index 0000000..8ce5dd7 --- /dev/null +++ b/ino/lamp_TIP120_poc/lamp_TIP120_poc.ino @@ -0,0 +1,12 @@ +int signalPin = 8; + +void setup () { + pinMode(signalPin, OUTPUT); +} + +void loop () { + digitalWrite(signalPin, HIGH); + delay(1000); + digitalWrite(signalPin, LOW); + delay(2000); +} \ No newline at end of file