티스토리 뷰
728x90
WiringOP-Zero 설치
WiringOP-Zero 소스 다운로드
$ git clone https://github.com/xpertsavenue/WiringOP-Zero.git
WiringOP-Zero 컴파일및 설치
$ cd WiringOP-Zero $ chmod +x ./build $ sudo ./build .. 생략 ... [Install Headers] [Install Dynamic Lib] WiringPi Devices Library [UnInstall] make: Nothing to be done for 'all'. [Install Headers] [Install Dynamic Lib] GPIO Utility [Link] [Install] All Done. NOTE: To compile programs with wiringBP v2, you need to add: -lwiringPi to your compile line(s) To use the Gertboard, MaxDetect, etc. code (the devLib), you need to also add: -lwiringPiDev to your compile line(s).
설치 확인
$ gpio readall +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | ALT5 | 0 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | ALT5 | 0 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | ALT3 | 0 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT5 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT5 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT4 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT4 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
LED 제어
GPIO 모드 변경
$ gpio mode 14 out
LED 켜기
$ gpio write 14 1
LED 끄기
$ gpio write 14 0
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- ffmpeg
- Mac
- Linux
- Delphi Tip
- ubuntu
- BPI-M4
- SAS
- JavaScript
- oracle
- koba2010
- 튜닝쇼 2008
- sas2009
- Xcode
- flex
- Spring
- 레이싱모델 익스트림 포토 페스티벌
- 서울오토살롱
- KOBA
- MySQL
- Java
- 일본여행
- Delphi
- ble
- Spring MVC
- 송주경
- NDK
- 전예희
- 동경
- android
- 지스타2007
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
글 보관함