pw_sys_io_arduino#

Pigweed AI summary: The pw_sys_io_arduino module implements the pw_sys_io facade over Arduino's Serial interface. It runs the first Serial interface at a 115200 baud rate and waits until a host connects to the serial port. The module is compatible with certain Arduino hardware and there are some caveats when running Pigweed on top of the Arduino API.

pw_sys_io_arduino implements the pw_sys_io facade over Arduino’s Serial interface.

On initialization it runs Arduino’s first Serial interface at a 115200 baud rate:

Serial.begin(115200);

// Wait for serial port to be available
while (!Serial) {
}

After Serial.begin(115200) it will busy wait until a host connects to the serial port.

See also

  • Arduino target documentation for a list of working hardware.

  • pw_arduino_build for caveats when running Pigweed on top of the Arduino API.