I have connected a serial adapter to the rx, tx, and g pins.
I have tried this code:
uart.on("data","\n",function(data) print("receive from uart:", data) end, 0)
I enter text in the ESplorer console and it does read that. It doesn't read anything I send over a serial adapter plugged into the rx/tx/g pins.
I disconnected the USB cable and powered it with the serial adapter. Nothing was sent using this code. I tried `uart.write(0,` and `uart.write(1,`.
How do I read the pin serial ports instead of the usb serial port?