WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: fbtft TFT driver  (Read 7399 times)

Offline szymtro

  • Newbie
  • *
  • Posts: 9
Re: fbtft TFT driver
« Reply #15 on: September 25, 2015, 05:23:57 PM »
Been there, done that.

bcm_host.h is part of videocore. Find out one from 5.x - this will be good enought.
rpi-videocore and rpi-videocore-dev

If I remember corectly Markus said one thay that He will add videocore for 6.1 during a weekend.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft TFT driver
« Reply #16 on: September 26, 2015, 04:27:26 AM »
Hi Rich,

sure, the tutorial is for Rasbian. I've used traditional TC setup to do so.
I've skipped the installation, because I've already installed all the stuff for the compilation including compile-essentials, linux api headers, pkg-config, binutils, etc.

There is only missing library for video core compilation.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: fbtft TFT driver
« Reply #17 on: September 26, 2015, 05:19:42 AM »
For VideoCore files see

https://github.com/raspberrypi/firmware/tree/master/opt/vc

I will make a tcz later
« Last Edit: September 26, 2015, 05:22:40 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft TFT driver
« Reply #18 on: September 26, 2015, 05:47:59 AM »
I've used combination of old 5ver tcz and updated with the github source files and after some wrong files links correction it compiled and it works.
for those who like to use it, I share the file. The only disadvantage of this simple application is that there is no possibility to use different resolution for each display. It is only duplicator of fb0 to fb1, means that only VGA resolution may be used for HDMI display to have it reasonably visible on the small TFT. It need to have rpi-videocore.tcz to be installed.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: fbtft TFT driver
« Reply #19 on: September 26, 2015, 08:24:33 AM »
Having used both GPIO and USB 2.8 inch screens successfully I can tell you that compiling in the modules makes life much easier. As for setting fbcon:map I don't know of another way other than to change it manually and reboot. An autodetect feature in the PI firmware would be needed, so I don't see that happening anytime soon.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: fbtft TFT driver
« Reply #20 on: September 26, 2015, 05:56:38 PM »
The only way how to switch it is con2fbmap which switch the fbcon output to fb0, fb1 ...
I've tried the Rasbian one, but it's not working even with the videoroce installed. Still investigating what more it need to have installed.