Control of Waveshare Pi Pico relays with serial commands over USB
The 8-port relay board is provided with example software written in C and MicroPython for controlling the relays. The standard "C" program takes binary commands over the USB serial interface.
This program provides an alternative human-readable command line interface
help - simple (and incomplete) help relay set - update single relay relay clear - update single relay relay value mask - update any number of relays relay state? - return a hex value indicating state of all relays