Commit 9674c954 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

minor edits

parent 82409d0a
......@@ -15,18 +15,18 @@ A patch to the CP210x USB to UART Bridges driver that adds GPIO pins control by
2. Reload driver (from the built directory):
sudo rmmod 210x
sudo insmod 210x.ko
sudo rmmod cp210x
sudo insmod cp210x.ko
## Program GPIO_MAS
1. Examples:
* 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:
./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 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:
sudo rmmod cp210x
sudo insmod cp210x.ko
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