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:
Diffstat (limited to 'clockless_arm_sam.h')
-rw-r--r--clockless_arm_sam.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/clockless_arm_sam.h b/clockless_arm_sam.h
index 5c418509..a09e0b3d 100644
--- a/clockless_arm_sam.h
+++ b/clockless_arm_sam.h
@@ -6,9 +6,10 @@
#if defined(__SAM3X8E__)
-#define TOTAL ( (T1+2) + (T2+2) + (T3+2) )
-#define T1_MARK (TOTAL - (T1+2))
-#define T2_MARK (T1_MARK - (T2+2))
+#define TADJUST 1
+#define TOTAL ( (T1+TADJUST) + (T2+TADJUST) + (T3+TADJUST) )
+#define T1_MARK (TOTAL - (T1+TADJUST))
+#define T2_MARK (T1_MARK - (T2+TADJUST))
#define SCALE(S,V) scale8_video(S,V)
// #define SCALE(S,V) scale8(S,V)