https://github.com/mdminhazulhaque/bash-gpio-tool
:pushpin: A small utility script for easily exporting, unexporting and read, writing GPIO pins
https://github.com/mdminhazulhaque/bash-gpio-tool
gpio shell
Last synced: 7 months ago
JSON representation
:pushpin: A small utility script for easily exporting, unexporting and read, writing GPIO pins
- Host: GitHub
- URL: https://github.com/mdminhazulhaque/bash-gpio-tool
- Owner: mdminhazulhaque
- Created: 2016-10-24T18:46:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-24T18:49:55.000Z (over 9 years ago)
- Last Synced: 2025-05-07T14:35:27.069Z (about 1 year ago)
- Topics: gpio, shell
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GPIO
A small utility script for easily exporting, unexporting and read, writing GPIO pins on RaspberryPi or other development boards.
### How To
```
Usage: gpio [export|direction|read|write|unexport]
Param1 | Param2 | Param3
---------------------------
export | PIN |
unexport | PIN |
direction | IN/OUT | PIN
read | PIN |
write | VALUE | PIN
```
### Example
```bash
gpio e 72 # exports pin 72
gpio d o 72 # sets direction to out
gpio d i 72 # sets direction to in
gpio r 72 # reads from pin 72
gpio w 1 72 # writes 1 to pin 72
gpio u 72 # unexports pin 72
```