Sending data from device with (rs232 port ) to pico and send it to pc



  • Hi i would love to send data from my device with rs232 port to pico and then for now just send it to pc . I used a max3232 converter to connect my pico with port but when i use this code :

    from machine import UART, Pin
    uart=UART(0, tx=Pin(0), rx=Pin(1))
    uart.write("test message")
    print(uart.read())

    the return is b'\x00' i even switched rx,tx and the return is same is this converter connected wrong or what this may be?


Log in to reply
 

Pycom on Twitter