我是按数据手册中默认的参数来设置的:
{
/* 320x240 @ 60 Hz , pixel clk @ 6.4MHz */
"TM-QVGA", 60, 320, 240, 156250, 70, 17, 13, 9, 1, 1,
FB_SYNC_CLK_LAT_FALL,
FB_VMODE_NONINTERLACED,
0,},
我在用户空间:
ioctl(fd_fb0, FBIOGET_VSCREENINFO, &screen_info);
printf("x = %d, y = %d, bpp = %d\r\n", screen_info.xres, screen_info.yres, screen_info.bits_per_pixel);
这里打印出320,240,32
|