summaryrefslogtreecommitdiff
path: root/examples/red.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/red.c')
-rw-r--r--examples/red.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/red.c b/examples/red.c
new file mode 100644
index 0000000..3809813
--- /dev/null
+++ b/examples/red.c
@@ -0,0 +1,14 @@
+#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, 0x00FF0000);
+ while (1) {
+ }
+
+ return 0;
+}