SPI Dot-Matrix
Net Name | Pin Number | Pin Number | Net Name |
---|---|---|---|
3.3V | 1 | 2 | 5.0V |
Not Used | 3 | 4 | 5.0V |
Not Used | 5 | 6 | GND |
Not Used | 7 | 8 | Not Used |
GND | 9 | 10 | Not Used |
Not Used | 11 | 12 | Not Used |
Not Used | 13 | 14 | GND |
Not Used | 15 | 16 | Not Used |
3.3V | 17 | 18 | Not Used |
MOSI | 19 | 20 | GND |
Not Used | 21 | 22 | Not Used |
SCK | 23 | 24 | CE0 |
GND | 25 | 26 | Not Used |
ODROID-C1/C1+/C2
ODROID-XU4 W/ Shifter Shield
ODROID-N2
ODROID-C4
ODROID-M1
- LED Matrix Shield is available on this version of the kernel.
- ODORID-C2: 3.14.29-32 or higher
- ODROID-XU4: 3.10.82 or higher
- This guide is tested by,
- ODROID-C1+: ubuntu-16.04.2-mate-odroid-c1-20170220.img
- ODROID-XU4: ubuntu-16.04.2-mate-odroid-xu4-20170510.img
- ODROID-C4: TBD
Enable SPI
You have to enable SPI feature first to use this shield.
Please refer to this guide.
Make sure that the SPI feature on your Odroid is enabled correctly. A short way to check out is finding spidev file under /dev directory.
See the following.
- target
root@odroid:~# ll /dev/spidev* crw------- 1 root root 153, 0 Apr 3 09:17 /dev/spidev0.0
Compile / Run SPI test example code
- target
git clone https://github.com/codewalkerster/led_matrix_shiled.git ./build.sh
Execute that built file, and you can see the results like the below.
- target
odroid@odroid64:~$ sudo ./dot_test spi mode: 0 bits per word: 8 max speed: 500000 Hz (500 KHz)
- In Odroid-C2, although you set to 500 KHz, it actually operates at 390KHz since C2 runs SPI in the bit-banging method.
Another example: Scrolling text
- target
git clone https://github.com/codewalkerster/led_matrix_shiled.git ./build.sh
Execute that built file, and you can see the results like the below.
- target
odroid@odroid64:~$ sudo ./dot_shift_test max speed: 1000000 Hz (1000 KHz)