From 339c1eab10958564a91a213481d52d2ce406d3b8 Mon Sep 17 00:00:00 2001 From: George Ioakimedes Date: Sat, 8 Apr 2023 15:47:08 -0700 Subject: [PATCH] Update platform.h Reset pulse width was 1.3ms, now it's 1.0ms for ESP32 --- src/platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.h b/src/platform.h index 4ad8db7..c387cf6 100644 --- a/src/platform.h +++ b/src/platform.h @@ -104,7 +104,7 @@ constexpr uint8_t VALUE_IPL { (microsecondsToClockCycles(1) > 120) ? 26 : 22 }; #define DIRECT_MODE_OUTPUT(base, pin) pinMode(pin,OUTPUT) #define DELAY_MICROSECONDS(us) delayMicroseconds(us) using io_reg_t = uint32_t; // define special data type for register-access -constexpr uint8_t VALUE_IPL { 39 }; // instructions per loop, for 40 and 80 MHz (see esp8266 difference) +constexpr uint8_t VALUE_IPL { 51 }; // instructions per loop, for 40 and 80 MHz (see esp8266 difference), was 39 #elif defined(ARDUINO_ARCH_SAMD) /* arduino family samd */ // arduino-zero is defined(__SAMD21G18A__)