Fix some errors with entering and exiting the sk9822 idle state
This commit is contained in:
parent
4b5d5632b9
commit
dddf48651a
|
@ -22,6 +22,7 @@ void send_byte(dio_t data_pin, dio_t clock_pin, uint8_t byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_start(dio_t data_pin, dio_t clock_pin) {
|
void send_start(dio_t data_pin, dio_t clock_pin) {
|
||||||
|
dio_set(&clock_pin, 0);
|
||||||
send_byte(data_pin, clock_pin, 0);
|
send_byte(data_pin, clock_pin, 0);
|
||||||
send_byte(data_pin, clock_pin, 0);
|
send_byte(data_pin, clock_pin, 0);
|
||||||
send_byte(data_pin, clock_pin, 0);
|
send_byte(data_pin, clock_pin, 0);
|
||||||
|
@ -33,6 +34,7 @@ void send_term(dio_t data_pin, dio_t clock_pin) {
|
||||||
send_byte(data_pin, clock_pin, 0xff);
|
send_byte(data_pin, clock_pin, 0xff);
|
||||||
send_byte(data_pin, clock_pin, 0xff);
|
send_byte(data_pin, clock_pin, 0xff);
|
||||||
send_byte(data_pin, clock_pin, 0xff);
|
send_byte(data_pin, clock_pin, 0xff);
|
||||||
|
dio_set(&clock_pin, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sk9822_init(sk9822_t *lights) {
|
void sk9822_init(sk9822_t *lights) {
|
||||||
|
|
Loading…
Reference in New Issue