1
0
Fork 0

Tidy up adjustable ws2812 timing (#15299)

This commit is contained in:
Joel Challis 2021-11-25 19:35:06 +00:00 committed by GitHub
parent 3d00620711
commit 5e9c29da0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 58 deletions

View file

@ -77,7 +77,7 @@
#endif
#define BYTES_FOR_LED (BYTES_FOR_LED_BYTE * WS2812_CHANNELS)
#define DATA_SIZE (BYTES_FOR_LED * RGBLED_NUM)
#define RESET_SIZE (1000 * WS2812_TRST_US / (2 * 1250))
#define RESET_SIZE (1000 * WS2812_TRST_US / (2 * WS2812_TIMING))
#define PREAMBLE_SIZE 4
static uint8_t txbuf[PREAMBLE_SIZE + DATA_SIZE + RESET_SIZE] = {0};