summaryrefslogtreecommitdiff
path: root/example/red.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/red.c')
-rw-r--r--example/red.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/example/red.c b/example/red.c
new file mode 100644
index 0000000..274bc31
--- /dev/null
+++ b/example/red.c
@@ -0,0 +1,13 @@
+#define FBGL_IMPLEMENTATION
+#include "../fbgl.h"
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ fbgl_t fb;
+ fbgl_init("/dev/fb0", &fb);
+ fbgl_set_bg(&fb, 0xFF0000);
+ while(1){}
+
+ return 0;
+}