처음‎ > ‎지식기반‎ > ‎

RPi: Using KMR-1.8 SPI, 1.8 SPI TFT 128x160

게시자: Sundew Shin, 2017. 2. 3. 오전 1:53   [ 2017. 2. 3. 오전 2:01에 업데이트됨 ]
Wire Connection:

RPiKMR-1.8  
GNDLED-  
+5VLED+  
GPIO8 (CE0)CS via 1K ohm (running at 32MHz)
GPIO11 (CLK)SCL  via 1K ohm
GPIO10 (MOSI)SDA  via 1K ohm
GPIO24A0  via 1K ohm
GPIO25RESET  
+5VVCC  
GND GND  

[Assumption]
- Framebuffer font selection is limited, and you cannot recompile the kernel.
So used xwindow configuration to overcome

[modprobe hook]: /etc/modules-load.d/fbtft.conf
spi-bcm2835
fbtft_device

[auto modprobe during startup]: /etc/modprobe.d/fbtft.conf
options fbtft_device name=sainsmart18

[xwindow for framebuffer]: https://github.com/notro/fbtft/wiki/Framebuffer-use
sudo apt-get install xserver-xorg-video-fbdev

[Small font, non-bold]: ~/.Xresources
xterm*font:     *-fixed-*-*-*-6-*
xterm*boldMode: false

[Rotating]: sudo nano /etc/modprobe.d/fbtft.conf
options fbtft_device name=sainsmart18 rotate=90

[perfect sized xterm]: .xinitrc
xterm -geometry 160x128+0+0
Comments