티스토리 뷰
728x90
출처
- ODROID-XU4 Special Price – ODROID
- ODROID-XU4 Manual
- ODROID-XU4 Manual PDF
- odroid-xu4:application_note:gpio:wiringpi [ODROID Wiki]
- The Pi4J Project – Pin Numbering - Odroid XU4
eMMC에 OS 설치
이미지 복원이 완료되면 SD 메모리를 제거하고 재부팅
$ sudo dd if=ubuntu-18.04.3-4.14-mate-odroid-xu4-20190929.img of=/dev/mmcblk0 bs=10MB 702+1 records in 702+1 records out 7022313472 bytes (7.0 GB, 6.5 GiB) copied, 167.563 s, 41.9 MB/s
WiringPi
odroid용 wiringpi 설치
$ sudo apt install software-properties-common $ sudo add-apt-repository ppa:hardkernel/ppa $ sudo apt update $ sudo apt install odroid-wiringpi
odroid용 wiringpi 개발 라이브러리 설치
$ sudo apt install libwiringpi-dev libwiringpi2
GPIO 핀 확인
$ gpio readall -a +------+-----+----------+------+---+----+--- Model ODROID-XU3/4 ---+----+---+------+----------+-----+------+ | GPIO | wPi | Name | Mode | V | DS | PU/PD | Physical | PU/PD | DS | V | Mode | Name | wPi | GPIO | +------+-----+----------+------+---+----+-------+----++----+-------+----+---+------+----------+-----+------+ | | | 3.3V | | | | | 1 || 2 | | | | | 5V | | | | 209 | 8 | I2C1.SDA | ALT1 | 1 | 0 | P/U | 3 || 4 | | | | | 5V | | | | 210 | 9 | I2C1.SCL | ALT1 | 1 | 0 | P/U | 5 || 6 | | | | | GND(0V) | | | | 18 | 7 | GPIO. 18 | IN | 0 | 0 | P/D | 7 || 8 | DSBLD | 0 | 1 | ALT1 | UART0.TX | 15 | 172 | | | | GND(0V) | | | | | 9 || 10 | DSBLD | 0 | 0 | ALT1 | UART0.RX | 16 | 171 | | 174 | 0 | GPIO.174 | ALT1 | 1 | 0 | DSBLD | 11 || 12 | DSBLD | 0 | 0 | ALT1 | GPIO.173 | 1 | 173 | | 21 | 2 | GPIO. 21 | IN | 0 | 0 | P/D | 13 || 14 | | | | | GND(0V) | | | | 22 | 3 | GPIO. 22 | IN | 0 | 0 | P/D | 15 || 16 | P/D | 0 | 0 | IN | GPIO. 19 | 4 | 19 | | | | 3.3V | | | | | 17 || 18 | P/D | 0 | 0 | IN | GPIO. 23 | 5 | 23 | | 192 | 12 | MOSI | ALT1 | 1 | 0 | P/U | 19 || 20 | | | | | GND(0V) | | | | 191 | 13 | MISO | ALT1 | 1 | 0 | P/U | 21 || 22 | P/D | 0 | 0 | IN | GPIO. 24 | 6 | 24 | | 189 | 14 | SCLK | ALT1 | 0 | 0 | P/U | 23 || 24 | P/D | 0 | 1 | OUT | CE0 | 10 | 190 | | | | GND(0V) | | | | | 25 || 26 | P/D | 0 | 1 | OUT | GPIO. 25 | 11 | 25 | | 187 | 30 | I2C5.SDA | ALT2 | 1 | 0 | P/U | 27 || 28 | P/U | 0 | 1 | ALT2 | I2C5.SCL | 31 | 188 | | 28 | 21 | GPIO. 28 | IN | 0 | 0 | P/D | 29 || 30 | | | | | GND(0V) | | | | 30 | 22 | GPIO. 30 | IN | 0 | 0 | P/D | 31 || 32 | P/D | 0 | 0 | IN | GPIO. 29 | 26 | 29 | | 31 | 23 | GPIO. 31 | IN | 0 | 0 | P/D | 33 || 34 | | | | | GND(0V) | | | | | 24 | POWER ON | | | | | 35 || 36 | P/D | 0 | 0 | IN | GPIO. 33 | 27 | 33 | | | 25 | AIN.0 | | | | | 37 || 38 | | | | | 1V8 | 28 | | | | | GND(0V) | | | | | 39 || 40 | | | | | AIN.3 | 29 | | +------+-----+----------+------+---+----+-------+----++----+-------+----+---+------+----------+-----+------+ | GPIO | wPi | Name | Mode | V | DS | PU/PD | Physical | PU/PD | DS | V | Mode | Name | wPi | GPIO | +------+-----+----------+------+---+----+--- Model ODROID-XU3/4 ---+----+---+------+----------+-----+------+
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- oracle
- sas2009
- KOBA
- 레이싱모델 익스트림 포토 페스티벌
- 서울오토살롱
- NDK
- MySQL
- 전예희
- Xcode
- Java
- SAS
- 송주경
- Delphi Tip
- Delphi
- android
- Mac
- BPI-M4
- 지스타2007
- ubuntu
- ffmpeg
- Spring
- JavaScript
- Spring MVC
- koba2010
- 동경
- 튜닝쇼 2008
- flex
- ble
- Linux
- 일본여행
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함