Improve some doco

This commit is contained in:
inmarket 2016-02-10 13:54:41 +10:00
parent a1ab0a67ba
commit 3847f54dae
2 changed files with 10 additions and 5 deletions

View File

@ -123,7 +123,7 @@
}
if (fb_var.red.offset != LLDCOLOR_SHIFT_R || fb_var.green.offset != LLDCOLOR_SHIFT_G || fb_var.blue.offset != LLDCOLOR_SHIFT_B) {
#if LLDCOLOR_SHIFT_B == 0
fprintf(stderr, "GDISP Framebuffer: THe display pixel format is not RGB\n");
fprintf(stderr, "GDISP Framebuffer: The display pixel format is not RGB\n");
#else
fprintf(stderr, "GDISP Framebuffer: The display pixel format is not BGR\n");
#endif

View File

@ -1,15 +1,20 @@
This directory contains the interface for the Raspberry Pi framebuffer.
This directory contains the interface for the Raspberry Pi direct hardware framebuffer.
This talks directly to the raspberry pi hardware (not via a linux framebuffer driver).
If you are using linux on the Pi then consider using the linux-X or the linux-Framebuffer
board definitions instead of this one. This is really designed for non-Linux platforms
or where there is no linux display driver available. It will still work under linux but
the other solutions might be better.
This graphics interface is software driven - it is not an accelerated interface.
This board definition should work on any operating system that will work on the Raspberry Pi
eg. Linux, FreeRTOS.
The board definition should work on any operating system that will work on the Raspberry Pi
eg. Linux, FreeRTOS, FreeBSD.
On this board uGFX currently supports:
- GDISP via the framebuffer driver
THe following variables may optionally be defined in your gfxconf.h or your makefile...
The following variables may optionally be defined in your gfxconf.h or your makefile...
- GDISP_LLD_PIXELFORMAT default = GDISP_PIXELFORMAT_RGB565
- GDISP_SCREEN_WIDTH default = 800
- GDISP_SCREEN_HEIGHT default = 600