Skip to content

Commit

Permalink
Increase minimum reset delay to 250us to support newer chips that req…
Browse files Browse the repository at this point in the history
…uire longer delay
  • Loading branch information
bigjosh authored Nov 2, 2020
1 parent 5328ad5 commit bd47bea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SimpleNeopixelDemo/SimpleNeopixelDemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
#define T0H 400 // Width of a 0 bit in ns
#define T0L 900 // Width of a 0 bit in ns

// The reset gap can be 6000 ns, but depending on the LED strip it may have to be increased
// to values like 600000 ns. If it is too small, the pixels will show nothing most of the time.
#define RES 6000 // Width of the low gap between bits to cause a frame to latch
// Older pixels would reliabily reset with a 6us delay, but some newer (>2019) ones
// need 250us. This is set to the longer delay here to make sure things work, but if
// you want to get maximum refresh speed, you can try decreasing this until your pixels
// start to flicker.

#define RES 250000 // Width of the low gap between bits to cause a frame to latch

// Here are some convience defines for using nanoseconds specs to generate actual CPU delays

Expand Down

0 comments on commit bd47bea

Please sign in to comment.