Add initial project files and implement LED control via UART commands

This commit is contained in:
rxf
2025-07-31 17:00:59 +02:00
commit 670eafefa2
7 changed files with 189 additions and 0 deletions

16
uart.py Normal file
View File

@@ -0,0 +1,16 @@
import machine
import utime
uart = machine.UART(1)
uart.write("hello") # Send "hello" over UART
utime.sleep(0.5)
while True:
if uart.any():
line = uart.readline()
print(line)