summaryrefslogtreecommitdiff
path: root/examples/red.c
diff options
context:
space:
mode:
authorLevent Kaya <42411502+lvntky@users.noreply.github.com>2024-11-25 00:44:07 +0300
committerGitHub <noreply@github.com>2024-11-25 00:44:07 +0300
commit8aed83d2e77c006eebf21776487f788ef12216de (patch)
tree14d7dfd2b4c86dcb3b27912513439b4648145733 /examples/red.c
parentff43c66c491b443b7522a3b3d716905ee9732b60 (diff)
parent8650f5e1d7bb72625ae5d6cda2974f6fafa6362d (diff)
Merge pull request #8 from dario-loi/bugfixes
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..c074143
--- /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;
+}