You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
T-PicoC3 Tutorial for comms between internal RP2040 and ESP
RP2040(sender):
from machine import UART, Pin
import time
time.sleep(3)
uart = UART(1, baudrate=115200 , tx=Pin(8), rx=Pin(9), cts=Pin(10), rts=Pin(11))
uart.write('ATE0\r\n')
led = machine.Pin(25,Pin.OUT) #on board LED
while True:
try:
led.toggle()
uart.write('TEST\r\n')
print("uart OK")
except:
print("err")
time.sleep(1)
ESP32(receier):
from machine import UART
uart = UART(1, baudrate=115000 , tx=7, rx=6, cts=5, rts=4)
uart.init(115000, bits=8, parity=None, stop=1)
uart.any() # >0 means data received
uart.read() #data being received
So, one use case scenario is to use ESP32 to send and receive messages from a MQ (HiveMQ tested by me).
Have fun with this nice board!
The text was updated successfully, but these errors were encountered:
Hello
T-PicoC3 Tutorial for comms between internal RP2040 and ESP
RP2040(sender):
from machine import UART, Pin
import time
time.sleep(3)
uart = UART(1, baudrate=115200 , tx=Pin(8), rx=Pin(9), cts=Pin(10), rts=Pin(11))
uart.write('ATE0\r\n')
led = machine.Pin(25,Pin.OUT) #on board LED
while True:
try:
led.toggle()
uart.write('TEST\r\n')
print("uart OK")
except:
print("err")
time.sleep(1)
ESP32(receier):
from machine import UART
uart = UART(1, baudrate=115000 , tx=7, rx=6, cts=5, rts=4)
uart.init(115000, bits=8, parity=None, stop=1)
uart.any() # >0 means data received
uart.read() #data being received
So, one use case scenario is to use ESP32 to send and receive messages from a MQ (HiveMQ tested by me).
Have fun with this nice board!
The text was updated successfully, but these errors were encountered: