Hi everyone,
I am using Nicla Vision for Arduino. i am trying to setup UART communication, but it not working.
I am not getting the signal from the UART Pin. below are the code that i am using for communication and to capture the data i am using oscilloscope.
import time
from pyb import UART
# Init UART object.
uart = UART(4, 19200)
while True:
uart.write("Hello World!\r")
time.sleep_ms(1000)
[here is the link for complete data sheet of this board]
I also tried the below code to modify the RX and TX pin, but that gives me "TypeError: extra keyboard argument given" to this line uart = UART(1, baudrate=9600, tx=Pin("PA9"), rx=Pin("PA10"))
here is the complete code
from machine import UART, Pin
import time
# Create a UART object on UART port 1 with a baud rate of 9600, using specified pins
uart = UART(1, baudrate=9600, tx=Pin("PA9"), rx=Pin("PA10"))
while True:
uart.write("Hello, receiver!")
time.sleep(2)
