Hello
I have a normal USB-C cable from the computer to the microcontroller. where I want to test if I can send data from the APP Inventor emulator to the microcontroller.
But I get an error when uploading.
The plan is to use a tablet to send data via OTG-USB.
Microcontroller: Arduino Uno R4 Minima
Program in XOD:
But when I upload I get this error code:
Begin compiling code for the board Arduino UNO R4 Minima
C:\Users\kp-sp\AppData\Local\Temp\xod_temp_sketchbookmO6LKl\xod_1701694458288_sketch\xod_1701694458288_sketch.ino: In member function ‘void xod::xod__uart__uart::Node::evaluate(xod::xod__uart__uart::Node::Context)’:
C:\Users\kp-sp\AppData\Local\Temp\xod_temp_sketchbookmO6LKl\xod_1701694458288_sketch\xod_1701694458288_sketch.ino:1095:27: error: ‘SERIAL_PORT_HARDWARE’ was not declared in this scope
auto serial = SERIAL_PORT_HARDWARE;
^~~~~~~~~~~~~~~~~~~~
C:\Users\kp-sp\AppData\Local\Temp\xod_temp_sketchbookmO6LKl\xod_1701694458288_sketch\xod_1701694458288_sketch.ino:1095:27: note: suggested alternative: ‘SERIAL_PARITY_MARK’
auto serial = SERIAL_PORT_HARDWARE;
^~~~~~~~~~~~~~~~~~~~
SERIAL_PARITY_MARK
Error during build: exit status 1
Same error code if I instead uses SOFT-UART(D0=RX and D1=TX) /UART0-1 -Nodes…
Here is some information about USB/UART:
Link: https://docs.arduino.cc/tutorials/uno-r4-minima/cheat-sheet
I have tried googling my way to a solution. but I haven’t found anything that made sense.
Hope someone can help
thanks in advance