Browse Source

Made baudrate comment more explanatory.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
cd3041131f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      examples/serialport.py

+ 3
- 1
examples/serialport.py View File

@@ -16,7 +16,9 @@ def main():

# Set up an event handler and open the device
device.on_message += handle_message
device.open(baudrate=BAUDRATE) # Override the default SerialDevice baudrate.
device.open(baudrate=BAUDRATE) # Override the default SerialDevice
# baudrate since we're using a USB
# device over serial in this example.

# Wait for events.
while True:


Loading…
Cancel
Save