From 8efa6cea8a34f75013522c8e53bb4b5133a93653 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Thu, 22 Feb 2024 10:49:54 +0100 Subject: [PATCH] Moved all proof of concept sketches into ino/demos --- .../esp32_dc_motor/esp32_dc_motor.ino} | 0 ino/{ => demos}/jog_motor/jog_motor.ino | 0 ino/demos/lamp_TIP120/lamp_TIP120.ino | 31 +++++++++++++++++++ .../motor_encoder/motor_encoder.ino} | 0 ino/lamp_TIP120_poc/lamp_TIP120_poc.ino | 12 ------- 5 files changed, 31 insertions(+), 12 deletions(-) rename ino/{esp32_dc_motor_poc/esp32_dc_motor_poc.ino => demos/esp32_dc_motor/esp32_dc_motor.ino} (100%) rename ino/{ => demos}/jog_motor/jog_motor.ino (100%) create mode 100644 ino/demos/lamp_TIP120/lamp_TIP120.ino rename ino/{motor_encoder_poc/motor_encoder_poc.ino => demos/motor_encoder/motor_encoder.ino} (100%) delete mode 100644 ino/lamp_TIP120_poc/lamp_TIP120_poc.ino diff --git a/ino/esp32_dc_motor_poc/esp32_dc_motor_poc.ino b/ino/demos/esp32_dc_motor/esp32_dc_motor.ino similarity index 100% rename from ino/esp32_dc_motor_poc/esp32_dc_motor_poc.ino rename to ino/demos/esp32_dc_motor/esp32_dc_motor.ino diff --git a/ino/jog_motor/jog_motor.ino b/ino/demos/jog_motor/jog_motor.ino similarity index 100% rename from ino/jog_motor/jog_motor.ino rename to ino/demos/jog_motor/jog_motor.ino diff --git a/ino/demos/lamp_TIP120/lamp_TIP120.ino b/ino/demos/lamp_TIP120/lamp_TIP120.ino new file mode 100644 index 0000000..85ebc2c --- /dev/null +++ b/ino/demos/lamp_TIP120/lamp_TIP120.ino @@ -0,0 +1,31 @@ +/** ______________ + * | | + * | | + * | TIP120 | + * | | + * | | + * -------------- + * || || || + * || || || + * || || || + * || || || + * 2.2K + * | + * | + * \/ + * 8 pin + **/ + + +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 diff --git a/ino/motor_encoder_poc/motor_encoder_poc.ino b/ino/demos/motor_encoder/motor_encoder.ino similarity index 100% rename from ino/motor_encoder_poc/motor_encoder_poc.ino rename to ino/demos/motor_encoder/motor_encoder.ino diff --git a/ino/lamp_TIP120_poc/lamp_TIP120_poc.ino b/ino/lamp_TIP120_poc/lamp_TIP120_poc.ino deleted file mode 100644 index 8ce5dd7..0000000 --- a/ino/lamp_TIP120_poc/lamp_TIP120_poc.ino +++ /dev/null @@ -1,12 +0,0 @@ -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