Edited by nopnop2002 at 2017-7-25 22:12
I use Armbian_5.30_Orangepizero_Debian_jessie_default_3.4.113
Try this
dc->GPIO3(Pin#15)
reset->GPIO0(Pin#13)
SCK->CLK(Pin#23)
MOSI->MOSI(Pin#19)
CS->CS(Pin#24)
GND->GND
VCC->3.3V
horizontal- sudo modprobe fbtft_device name=flexfb gpios=dc:3,reset:0 speed=3200000 busnum=1
- sudo modprobe flexfb width=320 height=240 buswidth=8 init=\
- -1,0x01,-2,5,\
- -1,0x28,\
- -1,0x36,0x38,\
- -1,0x3A,0x55,\
- -1,0x11,-2,100,\
- -1,0x29,-2,20,\
- -3
- con2fbmap 1 8
Copy code vertical
- sudo modprobe fbtft_device name=flexfb gpios=dc:3,reset:0 speed=3200000 busnum=1 rotate=90
- sudo modprobe flexfb width=320 height=240 buswidth=8 init=\
- -1,0x01,-2,5,\
- -1,0x28,\
- -1,0x36,0x58,\
- -1,0x3A,0x55,\
- -1,0x11,-2,100,\
- -1,0x29,-2,20,\
- -3
- con2fbmap 1 8
Copy code
EDIT:Even this works.- sudo modprobe fbtft_device custom name=fb_ili9340 gpios=dc:3,reset:0 speed=16000000 busnum=1 rotate=90
- con2fbmap 1 8
Copy code
|