Update repo
This commit is contained in:
1 parent
5f3e7678cd
commit
7c6fbea774
11 files changed
+303
-2
No files matched your search
@@ -78,10 +78,10 @@ int main(void)
|
||||
while (1) {
|
||||
while (k_msgq_get(&uart_rx_queue, &ch, K_NO_WAIT) == 0) {
|
||||
if (ch == 'O' || ch == 'o') {
|
||||
(void)gpio_pin_set_dt(&led_red, 1);
|
||||
gpio_pin_set_dt(&led_red, 1);
|
||||
printk("LED on\r\n");
|
||||
} else if (ch == 'F' || ch == 'f') {
|
||||
(void)gpio_pin_set_dt(&led_red, 0);
|
||||
gpio_pin_set_dt(&led_red, 0);
|
||||
printk("LED off\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user