#include #include #include #include #include #include #include static __u16 red16[] = { 0x0000, 0x0000, 0x0000, 0x0000, 0xffff, 0xffff, 0xffff, 0xffff, 0x8888, 0x8888, 0x8888, 0x8888, 0xffff, 0xffff, 0xffff, 0xffff }; static __u16 green16[] = { 0x0000, 0x0000, 0xffff, 0xffff, 0x0000, 0x0000, 0x8888, 0xffff, 0x8888, 0x8888, 0xffff, 0xffff, 0x8888, 0x8888, 0xffff, 0xffff }; static __u16 blue16[] = { 0x0000, 0xffff, 0x0000, 0xffff, 0x0000, 0xffff, 0x0000, 0xffff, 0x8888, 0xffff, 0x8888, 0xffff, 0x8888, 0xffff, 0x8888, 0xffff }; static struct fb_cmap default_16_colors = { 0, 16, red16, green16, blue16, NULL }; int main(int argc, char *argv[]) { FILE *fbcon; int fb; fbcon = fopen("/dev/vc/0", "wt"); fb = open("/dev/fb0", O_RDWR); ioctl(fb, FBIOPUTCMAP, &default_16_colors); fprintf(fbcon, "\033[47;30m\033[9;0]\033[13]\033[2JSuperBird LCD Test"); }