I’m using a Wio Terminal with the Arduino IDE and I’m getting an error when I try to compile the openmv_popular_features_as_the_control_device_example.
The Wio Terminal uses a SAMD51 device which does not use Software Serial but it does have a second Hardware Serial port that is used as a UART (Serial1). I tried uncommenting the line for hardware_serial1 but I get the following error: ‘rpc_hardware_serial1_uart_master’ in namespace ‘openmv’ does not name a type
Here is the block of code with the line I uncommented at the end:
// Uncomment the below line to setup your Arduino for controlling over a hardware UART.
// * baudrate - Serial Baudrate.
// NOTE: Master and slave baud rates must match. Connect master tx to slave rx and master rx to
// slave tx. Finally, both devices must share a common ground.
// WARNING: The program and debug port for your Arduino may be “Serial”. If so, you cannot use
// “Serial” to connect to an OpenMV Cam without blocking your Arduino’s ability to
// be programmed and use print/println.
// openmv::rpc_hardware_serial_uart_master → Serial
// openmv::rpc_hardware_serial1_uart_master → Serial1
// openmv::rpc_hardware_serial2_uart_master → Serial2
// openmv::rpc_hardware_serial3_uart_master → Serial3
Should I be specifying this differently?