Skip to content

Commit

Permalink
#191 Establish better ws2812b signal timing (round 2)
Browse files Browse the repository at this point in the history
Values suggested by @VonSzarvas with a reminder that the values are not the same as the actual high and low times due to driver timing and that they will need to be updated when the driver is replaced.
  • Loading branch information
AndyLindsay committed May 14, 2019
1 parent 14ba74e commit a1532f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Binary file modified Learn/Simple Libraries/Light/libws2812/cmm/libws2812.a
Binary file not shown.
9 changes: 6 additions & 3 deletions Learn/Simple Libraries/Light/libws2812/ws2812b_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ int ws2812b_start(ws2812_t *state)

// usreset, ns0h, ns0l, ns1h, ns1l, int type)
//return ws_start(state, 50, 350, 900, 900, 350, TYPE_GRB);
//return ws_start(state, 280, 410, 875, 875, 410, TYPE_GRB);

// Actual us values suggested by DC 280, 410, 875, 875, 410

// 523, 1070, 1040, 563,
//return ws_start(state, 280, 410, 875, 875, 410, TYPE_GRB);
Expand All @@ -41,10 +42,12 @@ int ws2812b_start(ws2812_t *state)
//return ws_start(state, 280, 300, 670, 715, 265, TYPE_GRB);
// 404, 871, 878, 407,
//return ws_start(state, 280, 295, 675, 715, 265, TYPE_GRB);

// want 410, 875, 875, 410
// measured 404, 871, 878, 408,
return ws_start(state, 280, 300, 675, 715, 270, TYPE_GRB);
//return ws_start(state, 280, 300, 675, 715, 270, TYPE_GRB);

// Start call suggested by MV after testing
return ws_start(state, 300, 200, 600, 600, 200, TYPE_GRB);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.4.127
v1.4.128

0 comments on commit a1532f3

Please sign in to comment.