You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#definePIN_RETRY_COOLDOWN 3000 // time in ms after an incorrect attempt PIN and OTA pass will be rejected even if correct
616
616
#definePIN_TIMEOUT 900000 // time in ms after which the PIN will be required again, 15 minutes
617
617
618
+
// WLEDMM upstream WLED compatibility: allow to over-override HW_PIN_SDA / HW_PIN_SCL with I2CDSAPIN/I2CSCLPIN
619
+
// * WLEDMM uses HW_PIN_SDA / HW_PIN_SCL for default I2C init. Pins can be changed in usermod settings.
620
+
// * The I2C bus driver is _not_ started by default on startup. Its initialized when the first usermod calls pinManager.joinWire().
621
+
// * This approach improves UX (changing I2C pins does not always require a restart), and it simplifies usermod code because a UM only calls pinManager.joinWire() to attach itself to the I2C bus.
622
+
#if defined(I2CSCLPIN) && !defined(HW_PIN_SCL)
623
+
#defineHW_PIN_SCL I2CSCLPIN
624
+
#endif
625
+
#if defined(I2CSDAPIN) && !defined(HW_PIN_SDA)
626
+
#defineHW_PIN_SDA I2CSDAPIN
627
+
#endif
628
+
618
629
// HW_PIN_SCL & HW_PIN_SDA are used for information in usermods settings page and usermods themselves
619
630
// which GPIO pins are actually used in a hardware layout (controller board)
620
631
//WLEDMM: unchangeable pins are not treated here by undef them, but elsewhere in the code
0 commit comments