Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2016-04-25 21:04:41 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2016-04-25 21:04:41 +0300
commit7069545c745c696617497fcb18c7c7764e924d42 (patch)
treed7c78767875a7b590e30cab0280c795ed5abd4b5
parentb2ebe0964fc8c74a29bf865c2149f7e9a4a8beb6 (diff)
esp8266 timing adjustment
-rw-r--r--platforms/esp/8266/clockless_esp8266.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/esp/8266/clockless_esp8266.h b/platforms/esp/8266/clockless_esp8266.h
index 3acf3394..eeeac4e8 100644
--- a/platforms/esp/8266/clockless_esp8266.h
+++ b/platforms/esp/8266/clockless_esp8266.h
@@ -41,7 +41,7 @@ protected:
// mWait.mark();
}
-#define _ESP_ADJ (-3)
+#define _ESP_ADJ (6)
template<int BITS> __attribute__ ((always_inline)) inline static void writeBits(register uint32_t & next_mark, register uint8_t b) {
for(register uint32_t i = BITS; i > 0; i--) {
while(__clock_cycles() < next_mark);
@@ -51,7 +51,7 @@ protected:
while((next_mark - __clock_cycles()) > (T3 + _ESP_ADJ));
FastPin<DATA_PIN>::lo();
} else {
- while((next_mark - __clock_cycles()) > (T2+T3 + _ESP_ADJ));
+ while((next_mark - __clock_cycles()) > (T2+T3 + 40));
FastPin<DATA_PIN>::lo();
}