From 2d892f64cddc7ca83c112ec2d730663a01c8bb55 Mon Sep 17 00:00:00 2001 From: Gabor Simon Date: Sun, 10 Feb 2019 08:33:05 +0000 Subject: [PATCH] Init delay of SM16716 increased to 1 ms As per measurements by @damondins: https://github.com/gsimon75/Sonoff-Tasmota/pull/3#issuecomment-462059310 --- sonoff/xdrv_04_light.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_04_light.ino b/sonoff/xdrv_04_light.ino index bc4a9b91c..0c5c3cc58 100644 --- a/sonoff/xdrv_04_light.ino +++ b/sonoff/xdrv_04_light.ino @@ -410,7 +410,7 @@ void SM16716_Update(uint8_t duty_r, uint8_t duty_g, uint8_t duty_b) digitalWrite(sm16716_pin_sel, HIGH); // in testing I found it takes a minimum of ~380us to wake up the chip // tested on a Merkury RGBW with an SM726EB - delayMicroseconds(400); + delayMicroseconds(1000); SM16716_Init(); } else if (sm16716_enabled && !sm16716_should_enable) {