Skip to content

Commit

Permalink
Adjusted timing to allow EVO and seed pixels to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMueller2003 committed Aug 16, 2024
1 parent 330044a commit cf248ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ESPixelStick/src/output/OutputWS2811.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ class c_OutputWS2811 : public c_OutputPixel
#define WS2811_PIXEL_DATA_RATE 800000.0
#define WS2811_PIXEL_NS_BIT_TOTAL ( (1.0 / WS2811_PIXEL_DATA_RATE) * NanoSecondsInASecond)

#define WS2811_PIXEL_NS_BIT_0_HIGH 250.0 // 250ns +/- 150ns per datasheet
#define WS2811_PIXEL_NS_BIT_0_HIGH 315.0 // 220ns - 380ns per datasheet
#define WS2811_PIXEL_NS_BIT_0_LOW (WS2811_PIXEL_NS_BIT_TOTAL - WS2811_PIXEL_NS_BIT_0_HIGH)

#define WS2811_PIXEL_NS_BIT_1_HIGH 600.0 // 600ns +/- 150ns per datasheet
#define WS2811_PIXEL_NS_BIT_1_HIGH 935.0 // 580ns - 1.6us per datasheet
#define WS2811_PIXEL_NS_BIT_1_LOW (WS2811_PIXEL_NS_BIT_TOTAL - WS2811_PIXEL_NS_BIT_1_HIGH)

#define WS2811_PIXEL_IDLE_TIME_NS 300000.0 // 300us per datasheet
#define WS2811_PIXEL_IDLE_TIME_NS 350000.0 // 350us per datasheet
#define WS2811_PIXEL_IDLE_TIME_US (WS2811_PIXEL_IDLE_TIME_NS / float(NanoSecondsInAMicroSecond))

#define WS2811_PIXEL_BITS_PER_INTENSITY 8
Expand Down

0 comments on commit cf248ea

Please sign in to comment.