Skip to content

Commit 0dc3f3a

Browse files
committed
Talk about list_ports()
1 parent 3426014 commit 0dc3f3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

programming/arduino/custom_firmware.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,19 @@ serial_port = robot.raw_serial_devices[ARDUINO_SN].port
124124
~~~~~
125125

126126
Refer to the [pyserial documentation](https://pyserial.readthedocs.org/en/latest/) for more information on how to use pyserial.
127+
128+
129+
## Finding other serial devices
130+
131+
If you are using your own serial device that you want to access via a [raw serial port](#opening-a-serial-port), you will need to know its serial number.
132+
To do this we provide a helper function.
133+
Running the below code example will print a list of all the devices connected to the system.
134+
135+
Once you have found your device, and copied the serial number, you can follow the guidance in the [opening a serial port](#opening-a-serial-port) section.
136+
If you need help finding which device is yours contact us on Discord for help.
137+
138+
~~~~~ python
139+
from sr.robot3 import list_ports
140+
141+
list_ports()
142+
~~~~~

0 commit comments

Comments
 (0)