DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
NuttX has supported higher level graphics for some time with the OS's NX graphics subsystem and application oriented NxWidgets and the tiny window manager NxWM. These are higher level in the sensethat the primary graphical function is to support windowing and control of tools and toolbars within windows. These graphics tools often do not meet the needs of developers with very low end graphics and miminal display requirements.
...
The framebuffer character driver, along with the option LCD framebuffer interface, is an optional lighter-weight graphics interface.
http://nuttx.org/Images/GraphicsInterfaces.png![]()
Framebuffer Character Driver
...
| Code Block |
|---|
#include <nuttx/video/fb.h> |
| Code Block |
#ifdef CONFIG_VIDEO_FB
/* Initialize and register the simulated framebuffer driver */
|
| Code Block |
ret = fb_register(0, 0);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: fb_register() failed: %d\n", ret);
}
#endif
|
The fb_register() function takes two parameters:
...
| Code Block |
|---|
FAR void *fbmem; |
| Code Block |
fbmem = mmap(NULL, fblen, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FILE, fd, 0);
if (state.fbmem == MAP_FAILED)
{
/* Handle failure */
...
}
|
| Code Block |
printf("Mapped FB: %p\n", fbmem);
|
...
