Fix some errors with entering and exiting the sk9822 idle state

uart
Savanni D'Gerinel 2022-08-05 09:29:24 -04:00
parent 4b5d5632b9
commit dddf48651a
1 changed files with 2 additions and 0 deletions

View File

@ -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) {
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);
@ -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);
dio_set(&clock_pin, 1);
}
void sk9822_init(sk9822_t *lights) {