00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "FBlib.h"
00017 #include <stdio.h>
00018 #include <stdlib.h>
00019 #include <time.h>
00020
00021 #define MAX_SECS 30
00022 #define UPDATE_INTERVAL 5
00023
00024 int update;
00025
00026 void sig_alarm(int sig)
00027 {
00028 update=1;
00029
00030 }
00031
00032 int main()
00033 {
00034 FB_initlib("/dev/fb0");
00035 FB_clear_screen(FB_makecol(0,0,0,0));
00036 FB_rectfill(10, 12, 100, 120, FB_makecol(255,0,0,0));
00037 FB_rectfill(90, 12, 300, 120, FB_makecol(0,255,0,0));
00038 FB_rectfill(20, 100, 120, 400, FB_makecol(0,0,255,0));
00039 FB_rectfill(90, 100, 300, 400, FB_makecol(213,31,125,0));
00040 getchar();
00041 FB_clear_screen(FB_makecol(0,0,0,0));
00042 FB_exit();
00043 return 0;
00044 }