From 898b750728e7a5af3d00052379a018036e27a658 Mon Sep 17 00:00:00 2001 From: rlfbckr Date: Tue, 29 Sep 2020 15:19:05 +0200 Subject: [PATCH] mosfet example... --- .../BSM_mosfet_solenoid.ino | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libraries/BlinkSenseMove/examples/move/BSM_mosfet_solenoid/BSM_mosfet_solenoid.ino diff --git a/libraries/BlinkSenseMove/examples/move/BSM_mosfet_solenoid/BSM_mosfet_solenoid.ino b/libraries/BlinkSenseMove/examples/move/BSM_mosfet_solenoid/BSM_mosfet_solenoid.ino new file mode 100644 index 0000000..6435c3a --- /dev/null +++ b/libraries/BlinkSenseMove/examples/move/BSM_mosfet_solenoid/BSM_mosfet_solenoid.ino @@ -0,0 +1,18 @@ +/* + This sketch demonstrates the Mosfet featured on Blink Sense Move. It allows driving high DC load e.g. a Solonoide. Make connections between the used pins (MOSFET_01 or MOSFET_02) and their corresponding Teensy pins. + Enjoy. +*/ + +/* BSM_System.h includes the Blink Sense Move library */ +#include "BlinkSenseMove.h" + +void setup() { + pinMode(MOSFET_01, OUTPUT); +} + +void loop() { + digitalWrite(MOSFET_01, LOW); + delay(1000); + digitalWrite(MOSFET_01, HIGH); + delay(1000); +}