Skip to content

Instantly share code, notes, and snippets.

@pdp7
Last active May 29, 2017 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdp7/a64043fdbde31840739edc9ac911fb60 to your computer and use it in GitHub Desktop.
Save pdp7/a64043fdbde31840739edc9ac911fb60 to your computer and use it in GitHub Desktop.
Adafruit 2.8" TFT LCD with ILI9341
root@beaglebone:~# modprobe fbtft_device busnum=1 name=adafruit22a verbose=3 gpios=dc:48,reset:60

root@beaglebone:~# dmesg -c
[   68.136356] fbtft_device:  SPI devices registered:
[   68.136424] fbtft_device:      spidev spi1.1 16000kHz 8 bits mode=0x00
[   68.136457] fbtft_device:      spidev spi1.0 16000kHz 8 bits mode=0x01
[   68.136480] fbtft_device:  'fb' Platform devices registered:
[   68.136610] fbtft_device:      omapfb id=-1 pdata? yes
[   68.136698] fbtft_device: Deleting spi1.0
[   68.141296] fbtft_device:  GPIOS used by 'adafruit22a':
[   68.141335] fbtft_device:    'dc' = GPIO48
[   68.141358] fbtft_device:    'reset' = GPIO60
[   68.141377] fbtft_device:  SPI devices registered:
[   68.141408] fbtft_device:      spidev spi1.1 16000kHz 8 bits mode=0x00
[   68.141437] fbtft_device:      fb_ili9340 spi1.0 32000kHz 8 bits mode=0x00
[   68.532242] Console: switching to colour frame buffer device 60x53
[   68.533668] graphics fb0: fb_ili9340 frame buffer, 240x320, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi1.0 at 32 MHz

root@beaglebone:~# fbi -d /dev/fb0 -T 1 -a tux.png
using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
@cacahuete32
Copy link

Hi pdp7,

I have a raspberry pi 3 + touch pad ili9341 who works but sometimes when it start I have white screen and it stay white.

Do you have an idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment