Loading README.md +4 −4 Original line number Diff line number Diff line Loading @@ -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) Loading build_driver.sh +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
README.md +4 −4 Original line number Diff line number Diff line Loading @@ -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) Loading
build_driver.sh +1 −1 Original line number Diff line number Diff line Loading @@ -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