Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

General • Re: SoftwareSerial & SerialPIO on Pico 2W

$
0
0
Here is the full code and please let me know any thoughts on how to optimize much of the duplication?
I would assume you would just use the same function three times, something like -

Code:

void loop() {  ReadAndPrint(node1, '1');  ReadAndPrint(node2, '2');  ReadAndPrint(node3, '3');  delay(5000);}
I can't imagine why that wouldn't work. I'm not familiar enough with with Arduino to say exactly what should be in the 'ReadAndPrint' function.

Statistics: Posted by hippy — Tue Feb 18, 2025 12:55 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles