Skip to content

Commit a6d58d4

Browse files
holmbuartorlarse4ntn
authored
Update README.md (#955)
* Update README.md Adding UART serial config example * Rephrasing Signed-off-by: Antón Casas <[email protected]> --------- Signed-off-by: Antón Casas <[email protected]> Co-authored-by: torlarse <[email protected]> Co-authored-by: Antón Casas <[email protected]>
1 parent cac89b2 commit a6d58d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ You can do so using the [micro-ros-agent Docker](https://hub.docker.com/r/micror
5858
docker run -it --rm -v /dev:/dev --privileged --net=host microros/micro-ros-agent:humble serial --dev /dev/ttyACM0 -b 115200
5959
```
6060

61+
### Using UART serial communication
62+
63+
To use the UART serial protocol instead of USB (for example, to use micro-ROS in combination with a Raspberry Pi Debug Probe), it is enough to update the `# Configure Pico` section in the `CMakeLists.txt` file as follows:
64+
65+
```
66+
# Configure Pico
67+
pico_enable_stdio_usb(pico_micro_ros_example 0)
68+
pico_enable_stdio_uart(pico_micro_ros_example 1)
69+
```
70+
6171
## What files are relevant?
6272
- `pico_uart_transport.c`: Contains the board specific implementation of the serial transport (no change needed).
6373
- `CMakeLists.txt`: CMake file.

0 commit comments

Comments
 (0)