TwinyTwice
Posts: 24
Joined: Mon Sep 15, 2014 7:08 am
Location: France

Need Help for a 2.8" USB TFT Display drivers

Mon Sep 15, 2014 7:44 am

Hi, i'm a French newbies in Raspberry Pi world and i've a big problem with my Robopeak 2.8" TFT USB Display.

I've already tried to run this tuts : http://www.dfrobot.com/community/robope ... ry-pi.html

But, I can't run my Robopeak TFT screen.

I also try to re-compile the kernel myself by following the instructions here:

https://github.com/robopeak/rpusbdisp

and here:

http://elinux.org/RPi_Kernel_Compilation

but I can't do it with my little skills!

I come here to get help or to find a kind soul who would be able to compile an img disk for me, that i can install to my RPi B+ and for my USB TFT screen Robopeak finally works!

My setup is:
- RPi B+
- NOOBS/Raspian (last release)

User avatar
DougieLawson
Posts: 36576
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Need Help for a 2.8" USB TFT Display drivers

Mon Sep 15, 2014 8:25 am

https://github.com/notro/fbtft/wiki appears to have support for your device
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

TwinyTwice
Posts: 24
Joined: Mon Sep 15, 2014 7:08 am
Location: France

Re: Need Help for a 2.8" USB TFT Display drivers

Mon Sep 15, 2014 6:24 pm

Thanks a lot DougieLawson !

I will try to install these drivers, but being a newbies and French, it will be a little difficult i think!

I advise you to download an img disk already compiled or install only these drivers?

Knowing that I would like to have the latest version of Raspian.

User avatar
DougieLawson
Posts: 36576
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Need Help for a 2.8" USB TFT Display drivers

Mon Sep 15, 2014 6:27 pm

http://raspberrypi.org/forums/viewtopic ... 68#p607768 I found it easy enough to add Notro's kernel & drivers to an existing copy of Raspbian.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

TwinyTwice
Posts: 24
Joined: Mon Sep 15, 2014 7:08 am
Location: France

Re: Need Help for a 2.8" USB TFT Display drivers

Mon Sep 15, 2014 6:33 pm

Wow, thanks a lot again! Exactly what i need!

TwinyTwice
Posts: 24
Joined: Mon Sep 15, 2014 7:08 am
Location: France

Re: Need Help for a 2.8" USB TFT Display drivers

Tue Sep 16, 2014 12:30 am

Hi DougieLawson, just one question more ;-)


At step 7 : create /etc/modprobe.d/fbtft_device.conf create one line

Code: Select all

options fbtft_device custom name=fb_ili9341 rotate=90 buswidth=8 bgr=1 speed=32000000 gpios=reset:25,dc:24,led:18
I guess my name of display is not the same and that i should put other things as settings? if so could you help me, i'm confused!

The name is "rp_usbdisplay" or "fb_rp_usbdisplay" ?

And for the settings , i suppose i don't need the rotate set...

User avatar
DougieLawson
Posts: 36576
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Need Help for a 2.8" USB TFT Display drivers

Wed Sep 17, 2014 1:51 am

What controller chip does your display have?

Code: Select all

options fbtft_device custom name=fb_ili9341 rotate=90 buswidth=8 bgr=1 speed=32000000 gpios=reset:25,dc:24,led:18
Is using the custom driver to load the fb_ili9341 driver and pass a bunch of parms to it for an unsupported LCD. It's wired using sck, miso, mosi, ce0, gpio25 (reset), gpio24 (d/c) and gpio18 (lite)

If your LCD is on the supported list at: https://github.com/notro/fbtft/wiki/LCD-Modules

You'd use

Code: Select all

options fbtft_device name=supporteddevicenamehere


My display will be supported in the next version of Notro's code

Code: Select all

{
  .name = "adafruit28",
  .spi = &(struct spi_board_info) {
    .modalias = "fb_ili9341",
    .max_speed_hz = 32000000,
    .mode = SPI_MODE_0,
    .platform_data = &(struct fbtft_platform_data) {
      .display = {
        .buswidth = 8,
        .backlight = 1,
      },
      .bgr = true,
      .gpios = (const struct fbtft_gpio []) {
        { "reset", 25 },
        { "dc", 24 },
        { "led", 18 },
        {},
      },
    }
  }
},
So in future I'll use

Code: Select all

options fbtft_device name=adafruit28
and the same wiring scheme I'm using today.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

TwinyTwice
Posts: 24
Joined: Mon Sep 15, 2014 7:08 am
Location: France

Re: Need Help for a 2.8" USB TFT Display drivers

Wed Sep 17, 2014 2:28 pm

Ok Thanks, but, my screen is not supported and not listed !

I've contacted Robopeak and a new img is available to download, the TFT LCD work fine after install of the newest img !

Thanks for your help !

Actually, just one little problem, their new img boot directly on a X Window Login screen, and i wanted boot on console screen !
i've followed this step, as indicated here : http://www.robopeak.com/docs/doku.php?i ... sp_faq#q11

Code: Select all

$ sudo nano /boot/cmdline.txt
and add this

Code: Select all

fbcon=font:ProFont6x11 fbcon=map:1

Code: Select all

$ sudo nano  /etc/init.d/launch_desktop.sh
and comment this

Code: Select all

#su -c startx pi &

But actually, no boot on console, always on X Login window !

Return to “Raspbian”