from machine import UART
import time
U2= UART(1,baudrate=115200 and tx->17 and rx->16)
#init the uart 2 with baud rate 115200 and tx->17 and RX->16
time.sleep(1)
print("--- Interactive UART Monitor System ---")
print("Available commands: ERR, OK")
while True:
user_input = input("Enter Command: ").strip()
#check the console input and send the uart data accordingly
time.sleep(0.1)