Update GPIO macro usages in core (#23093)
This commit is contained in:
parent
6810aaf013
commit
2d1aed78a6
61 changed files with 334 additions and 334 deletions
|
@ -57,15 +57,15 @@ void sendByte(uint8_t byte) {
|
|||
// using something like wait_ns(is_one ? T1L : T0L) here throws off timings
|
||||
if (is_one) {
|
||||
// 1
|
||||
writePinHigh(WS2812_DI_PIN);
|
||||
gpio_write_pin_high(WS2812_DI_PIN);
|
||||
wait_ns(WS2812_T1H);
|
||||
writePinLow(WS2812_DI_PIN);
|
||||
gpio_write_pin_low(WS2812_DI_PIN);
|
||||
wait_ns(WS2812_T1L);
|
||||
} else {
|
||||
// 0
|
||||
writePinHigh(WS2812_DI_PIN);
|
||||
gpio_write_pin_high(WS2812_DI_PIN);
|
||||
wait_ns(WS2812_T0H);
|
||||
writePinLow(WS2812_DI_PIN);
|
||||
gpio_write_pin_low(WS2812_DI_PIN);
|
||||
wait_ns(WS2812_T0L);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue