Serial output
The standard serial console is not present for the Picoclick as it uses the USB-CDC interface to communicate with the processor. Writing to the standard console with Serial.print("...")
will output the data to the UART interface which is not connected on the Picoclick.
Nevertheless there is still a way to use the Serial console. This is as easy as using printf("...")
instead of Serial.print("...")
. Furthermore the Serial console don't need to be initialized with something like Serial.begin(X)
.
A basic example which will write the battery voltage of the Picoclick to the serial console:
Make sure that you don't forget to add the carriage return (\r
) and the line feed (\n
) to the end of the string.
To open the serial monitor in PlatformIO you have to press the button with power adapter in the bottom left corner.
Last updated