Rename folders as per suggestion from Rajat

This commit is contained in:
Danny Staple
2023-01-18 13:57:13 +00:00
parent a7e7d55d62
commit 7907a3fecf
78 changed files with 1389 additions and 0 deletions
@@ -0,0 +1,16 @@
import board
import busio
import supervisor
# PICO UART pins? What am i not using?
uart = busio.UART(board.GP12,board.GP13,baudrate=9600, timeout=0.01)
print("Waiting for bytes on UART...")
while True:
data = uart.read(32)
if data is not None:
print(data)
if supervisor.runtime.serial_bytes_available:
value = input().strip()
print(f"Received: {value}\r")
uart.write(value.encode())