IBR215 User Manual
49
J.
LVDS Test (android not supported)
//Open the file for reading and writing
framebuffer_fd = open("/dev/fb0", O_RDWR);
// Get fixed screen information
ioctl(framebuffer_fd, FBIOGET_FSCREENINFO, &finfo)
// Get variable screen information
ioctl(framebuffer_fd, FBIOGET_VSCREENINFO, &vinfo)
// Figure out the size of the screen in bytes
screensize = vinfo.xres * vinfo.yres * vinfo.bits_per_pixel / 8;
// Map the device to memory
fbp = (char *)mmap(0, screensize, PROT_READ | PROT_WRITE,
MAP_SHARED, framebuffer_fd, 0);
// Figure out where in memory to put the pixel
memset(fbp, 0x00,screensize);
//draw point by fbp
long int location = 0;
location = (x+g_xoffset) * (g_bits_per_pixel/8) +
(y+g_yoffset) * g_line_length;
*(fbp + lo 0) = color_b;
*(fbp + lo 1) = color_g;
*(fbp + lo 2) = color_r;
//close framebuffer fd
close(framebuffer_fd);
Summary of Contents for IBR215
Page 10: ...General Information IBR215 User Manual 5 1 1 5 Product View...
Page 11: ...General Information IBR215 User Manual 6 1 1 6 Dimensions IBR215 Unit mm IBR215 IO...
Page 15: ...General Information IBR215 User Manual 10 1 2 3 Connectors on the IBR215 Main Board...
Page 25: ...General Information IBR215 User Manual 20 1 2 5 Connector Locations on the IBR215 IO Board...
Page 46: ...41 Appendix This section provides the information of reference code...
Page 58: ...IBR215 User Manual 53...