diff --git a/pousseseringue-arduino.cpp b/pousseseringue-arduino.cpp index c7b5eacab77b249fbd04e5de5e4f37d3f8672b01..0db95c4f4adf1e72f7e0957de29f9ad3eee83b56 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