Skip to content
Snippets Groups Projects
Commit 30f6ad49 authored by Jakob's avatar Jakob
Browse files

fix: use uart source file in main

parent c57f5085
No related branches found
No related tags found
1 merge request!1copied and adapted example from mdk, added init and config uart
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// All rights reserved // All rights reserved
#include <mdk.h> #include <mdk.h>
#include "esp32-c3-uart-interface.c"
// On the ESP32C3 dev boards, the WS2812 LED is connected to GPIO 8 // On the ESP32C3 dev boards, the WS2812 LED is connected to GPIO 8
static int ws_2812_pin = 8; static int ws_2812_pin = 8;
...@@ -45,7 +46,6 @@ int main(void) { ...@@ -45,7 +46,6 @@ int main(void) {
gpio_output(ws_2812_pin); gpio_output(ws_2812_pin);
init_uart(); init_uart();
config_uart(); config_uart();
enable_uart_transmitter();
uint8_t cycle = 0; uint8_t cycle = 0;
for (;;) { for (;;) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment