hello,
i have 230 bytes in a array, and i want to send them over the UART to a second pico. but that is still not very successful.
I hope someone sees what I'm doing wrong.
i have 230 bytes in a array, and i want to send them over the UART to a second pico. but that is still not very successful.
I hope someone sees what I'm doing wrong.
Code:
if scanner_uart.any():# is anything comming from the scanner ? r15 = bytearray(230) scanner_uart.readinto(r15) print("r15",[byte for byte in r15]) #************** SEND DATA TO 2E PIC0 ********************************** scanner_read_write.value(1)# 1 = write and 0 = read MAX485 byte_array = bytearray(r15) scanner_uart.write(byte_array) scanner_read_write.value(0)# 1 = write and 0 = read MAX485
Statistics: Posted by trixo — Tue Sep 24, 2024 4:57 pm — Replies 5 — Views 85