Commit a780d129 authored by Andrey Filippov's avatar Andrey Filippov
parents dbf5cfa6 9674c954
...@@ -22,11 +22,11 @@ A patch to the CP210x USB to UART Bridges driver that adds GPIO pins control by ...@@ -22,11 +22,11 @@ A patch to the CP210x USB to UART Bridges driver that adds GPIO pins control by
1. Examples: 1. Examples:
* Set all 1's: * Set all 1's:
./cp210x_gpio.py -d /dev/ttyUSB0 -m 0xff 0xff sudo ./cp210x_gpio.py -d /dev/ttyUSB0 -m 0xff 0xff
* Set GPIO[3]=1, others - 0: * Set GPIO[3]=1, others - 0:
./cp210x_gpio.py -d /dev/ttyUSB1 -m 0xff 0x08 sudo ./cp210x_gpio.py -d /dev/ttyUSB1 -m 0xff 0x08
## Changes in the driver ## Changes in the driver
* Changes in the driver cp210x.c are based on the patch found [here](https://lkml.org/lkml/2012/5/1/2) * Changes in the driver cp210x.c are based on the patch found [here](https://lkml.org/lkml/2012/5/1/2)
......
...@@ -36,5 +36,5 @@ Now to reload the driver type: ...@@ -36,5 +36,5 @@ Now to reload the driver type:
sudo rmmod cp210x sudo rmmod cp210x
sudo insmod cp210x.ko sudo insmod cp210x.ko
Then try the script: Then try the script:
./cp210x_gpio.py [-d /dev/ttyUSB0] [-m 0xf] 0xf sudo ./cp210x_gpio.py [-d /dev/ttyUSB0] [-m 0xf] 0xf
" "
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment