mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2024-05-29 00:41:45 +00:00
Have LED reflect status of logic ACM connection.
This commit is contained in:
parent
ca642a6112
commit
edc265634d
|
@ -51,6 +51,11 @@ void main(void) {
|
||||||
stdio_init_all();
|
stdio_init_all();
|
||||||
stdio_set_translate_crlf(&stdio_usb, false);
|
stdio_set_translate_crlf(&stdio_usb, false);
|
||||||
|
|
||||||
|
#ifdef PICO_DEFAULT_LED_PIN
|
||||||
|
gpio_init(PICO_DEFAULT_LED_PIN);
|
||||||
|
gpio_set_dir(PICO_DEFAULT_LED_PIN, GPIO_OUT);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
uart_init(uart0, 115200);
|
uart_init(uart0, 115200);
|
||||||
uart_set_translate_crlf(uart0, true);
|
uart_set_translate_crlf(uart0, true);
|
||||||
|
@ -79,5 +84,9 @@ void main(void) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef PICO_DEFAULT_LED_PIN
|
||||||
|
gpio_put(PICO_DEFAULT_LED_PIN, conn);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user