mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
gpio.cpp: Add backticks around gpio command docs
This commit is contained in:
@@ -299,9 +299,10 @@ void usage(const char *reason)
|
|||||||
R"DESCR_STR(
|
R"DESCR_STR(
|
||||||
### Description
|
### Description
|
||||||
This command is used to read and write GPIOs
|
This command is used to read and write GPIOs
|
||||||
|
```
|
||||||
gpio read <PORT><PIN>/<DEVICE> [PULLDOWN|PULLUP] [--force]
|
gpio read <PORT><PIN>/<DEVICE> [PULLDOWN|PULLUP] [--force]
|
||||||
gpio write <PORT><PIN>/<DEVICE> <VALUE> [PUSHPULL|OPENDRAIN] [--force]
|
gpio write <PORT><PIN>/<DEVICE> <VALUE> [PUSHPULL|OPENDRAIN] [--force]
|
||||||
|
```
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
Read the value on port H pin 4 configured as pullup, and it is high
|
Read the value on port H pin 4 configured as pullup, and it is high
|
||||||
|
|||||||
Reference in New Issue
Block a user