I have tried read everything that I can, and see if there is something that I am missing. But I have an ESP32 board, and I cannot get the Receive of data to work correctly. I can get data transmission to work correctly, but not receiption. I have tried the two uarts, different pins, different code etc.. but still nothing. Where I am right now is I have loopback wire inserted, but it still doesn't seem to work.
wiring - Single wire from GPIO32 to GPIO33.
boot.py - Has nothing, all commented out
main.py
Code: Select all
###########################################################################
# Setup code goes below, this is called once at the start of the program: #
###########################################################################
import time
from machine import Pin
from machine import UART
#onboard_led = Pin(2, Pin.OUT)
uart = UART(2, 9600, bits=8, parity=None, stop=1, tx = 12, rx = 13, timeout = 1000 )
uart.write("testing")
print(uart.read(2))
Code: Select all
uart.write("Test')
Code: Select all
print(uart.read(2))
Code: Select all
None
Any thoughts / suggestions would be greatly appreciated.