Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFrom framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 3:16
Vaclav_23-Apr-18 3:16 
AnswerRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 3:59
professionalJochen Arndt23-Apr-18 3:59 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 4:17
Vaclav_23-Apr-18 4:17 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 4:24
professionalJochen Arndt23-Apr-18 4:24 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 8:08
Vaclav_23-Apr-18 8:08 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 10:28
professionalJochen Arndt23-Apr-18 10:28 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 13:39
Vaclav_23-Apr-18 13:39 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt23-Apr-18 21:21
professionalJochen Arndt23-Apr-18 21:21 
That is what I told you in my first post:

There is the fbtft driver that supports most of the SPI displays. It is part of the kernel tree since 2015 and included with recent Rasbian versions.

It is still maintained but now as part of the kernel. I provided the original GitHub link because it does not only contain the sources (the actual sources can be found in the kernel sources) but also some documentation.

It does not reroute any fb. It creates /dev/fb1 when properly configured for an attached display. But there are options to make it the default display when booting.

So you have the RPi display. The name RPi was initially used by Watterott. If you have that display, see RPi-Display | Watterott electronic[^] and select FBTFT Installation in the menu on the left side.

Use the provided script method or do it manually with a recent Raspbian version. For manual install see the sections FBTFT compiled into Kernel (BRANCH=builtin) (when using such a kernel) and FBTFT Device Tree enabled Kernel (works always with recent Raspbian versions).
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_24-Apr-18 12:16
Vaclav_24-Apr-18 12:16 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt24-Apr-18 21:07
professionalJochen Arndt24-Apr-18 21:07 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_25-Apr-18 3:36
Vaclav_25-Apr-18 3:36 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Jochen Arndt25-Apr-18 4:20
professionalJochen Arndt25-Apr-18 4:20 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_25-Apr-18 9:11
Vaclav_25-Apr-18 9:11 
GeneralRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_25-Apr-18 9:11
Vaclav_25-Apr-18 9:11 
AnswerRe: From framebuffer to SPI via ioctl in Linux Pin
Vaclav_23-Apr-18 5:21
Vaclav_23-Apr-18 5:21 
Questionerror: expected unqualified-id before numeric constant Pin
Vaclav_22-Apr-18 16:49
Vaclav_22-Apr-18 16:49 
AnswerRe: error: expected unqualified-id before numeric constant Pin
Richard MacCutchan22-Apr-18 22:20
mveRichard MacCutchan22-Apr-18 22:20 
AnswerRe: error: expected unqualified-id before numeric constant Pin
Jochen Arndt22-Apr-18 22:58
professionalJochen Arndt22-Apr-18 22:58 
AnswerRe: error: expected unqualified-id before numeric constant Pin
Vaclav_23-Apr-18 3:04
Vaclav_23-Apr-18 3:04 
AnswerRe: error: expected unqualified-id before numeric constant Pin
Vaclav_23-Apr-18 4:57
Vaclav_23-Apr-18 4:57 
GeneralRe: error: expected unqualified-id before numeric constant Pin
Richard MacCutchan23-Apr-18 6:42
mveRichard MacCutchan23-Apr-18 6:42 
GeneralRe: error: expected unqualified-id before numeric constant Pin
Vaclav_23-Apr-18 8:11
Vaclav_23-Apr-18 8:11 
GeneralRe: error: expected unqualified-id before numeric constant Pin
Vaclav_23-Apr-18 13:36
Vaclav_23-Apr-18 13:36 
GeneralRe: error: expected unqualified-id before numeric constant Pin
Richard MacCutchan23-Apr-18 21:05
mveRichard MacCutchan23-Apr-18 21:05 
GeneralRe: error: expected unqualified-id before numeric constant Pin
Vaclav_25-Apr-18 3:42
Vaclav_25-Apr-18 3:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.