Skip to content

Commit b7820bb

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

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
@@ -64,6 +64,16 @@ or using the [micro-ros-agent Docker](https://hub.docker.com/r/microros/micro-ro
6464
docker run -it --rm -v /dev:/dev --privileged --net=host microros/micro-ros-agent:rolling serial --dev /dev/ttyACM0 -b 115200
6565
```
6666

67+
### Using UART serial communication
68+
69+
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:
70+
71+
```
72+
# Configure Pico
73+
pico_enable_stdio_usb(pico_micro_ros_example 0)
74+
pico_enable_stdio_uart(pico_micro_ros_example 1)
75+
```
76+
6777
## What files are relevant?
6878
- `pico_uart_transport.c`: Contains the board specific implementation of the serial transport (no change needed).
6979
- `CMakeLists.txt`: CMake file.

0 commit comments

Comments
 (0)