Orange Pi PC 2 Allwinner H5 FBTFT fbflex 3.5 inch TFT LCD module SPI Control program
http://www.neko.ne.jp/~freewing/raspberry_pi/orange_pi_pc2/
You can choose any control method .
- Linux spidev version
- WiringOp H5(WiringPi) library version
http://www.neko.ne.jp/~freewing/
http://www.orangepi.org/orangepipc2/
http://www.allwinnertech.com/index.php?c=product&a=index&id=57
https://www.armbian.com/orange-pi-pc2/
Linux orangepipc2 4.10.0-sun50iw2 #3 SMP Fri Apr 28 03:49:31 CEST 2017 aarch64 aarch64 aarch64 GNU/Linux
Linux orangepipc2 4.13.14-sunxi64 #246 SMP Mon Nov 20 01:58:09 CET 2017 aarch64 aarch64 aarch64 GNU/Linux
sudo nano /boot/armbianEnv.txt
overlays=spi-spidev
param_spidev_spi_bus=1
https://github.com/FREEWING-JP/OrangePi_PC2_FBTFT_fbflex_35_lcd
https://github.com/FREEWING-JP/RaspberryPi_FBTFT_fbflex_35_lcd
https://github.com/FREEWING-JP/RaspberryPi_KeDei_35_lcd_v50
https://github.com/FREEWING-JP/tinydrm/tree/feature/kedei_35_v50/kedei_35_lcd_v50
https://www.raspberrypi.org/forums/viewtopic.php?p=1019562
by Conjur - Mon Aug 22, 2016 2:12 am - Final post on the KeDei v5.0 code.
https://github.com/l0nley/kedei35
sudo nano /boot/armbianEnv.txt
overlays=spi1-spidev
sudo reboot
crw------- 1 root root 153, 0 Apr 29 08:16 /dev/spidev1.0
cd
git clone https://github.com/FREEWING-JP/OrangePi_PC2_FBTFT_fbflex_35_lcd.git
cd ~/OrangePi_PC2_FBTFT_fbflex_35_lcd
gcc -o fbflex_lcd_op_spidev fbflex_lcd_op_spidev.c
sudo ./fbflex_lcd_op_spidev
sudo nano /boot/armbianEnv.txt
overlays=spi1-spidev
cd
# git clone https://github.com/kazukioishi/WiringOP.git -b h5
git clone https://github.com/FREEWING-JP/WiringOP.git -b h5
cd WiringOP
chmod +x ./build
sudo ./build
gpio readall
cd
git clone https://github.com/FREEWING-JP/OrangePi_PC2_FBTFT_fbflex_35_lcd.git
cd ~/OrangePi_PC2_FBTFT_fbflex_35_lcd
gcc -o fbflex_lcd_op_wiringop fbflex_lcd_op_wiringop.c -lwiringPi -lpthread
sudo ./fbflex_lcd_op_wiringop