From fade620de4a1c2056a3539e6f042935db54196d8 Mon Sep 17 00:00:00 2001 From: David Gauchard <gauchard@laas.fr> Date: Fri, 29 Jul 2022 14:22:54 +0200 Subject: [PATCH] fix board taste --- pousseseringue-arduino.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pousseseringue-arduino.cpp b/pousseseringue-arduino.cpp index c7b5eac..0db95c4 100644 --- a/pousseseringue-arduino.cpp +++ b/pousseseringue-arduino.cpp @@ -16,7 +16,7 @@ #define BTNC 2 // gpio C adafruit feather oled 128x32 #define OLED_I2C 0x3c // adafruit feather oled 128x32 -#ifndef TESTBOARD +#if !TESTBOARD // A4988 PINOUT #define DIR 15 // esp8266 gpio @@ -291,6 +291,8 @@ void setup() syringe.setPhysical(MOTOR_STEPS * MICROSTEPS_CONF, 0.1 /*mm/rev XXX ???*/); + pinMode(SLEEP, OUTPUT); + digitalWrite(SLEEP, 0); #endif // !CORE_MOCK -- GitLab