summaryrefslogtreecommitdiff
path: root/example/red.c
diff options
context:
space:
mode:
authordario-loi <loi.1940849@studenti.uniroma1.it>2024-11-24 20:21:45 +0100
committerdario-loi <loi.1940849@studenti.uniroma1.it>2024-11-24 20:21:45 +0100
commita3bfd065071e2dd4e772fae9da7908ce523148c6 (patch)
tree68b062d79a1b5e59c2bcba2ca8df1cef9852f656 /example/red.c
parent274cacc5fadb3c3a220b833f027eee47cbda824c (diff)
parentcd0a47245a54c249eca7ef1c0d86bc4aa3489e9b (diff)
Merge branch 'master' into bugfixes
Diffstat (limited to 'example/red.c')
-rw-r--r--example/red.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/example/red.c b/example/red.c
new file mode 100644
index 0000000..7f64dbd
--- /dev/null
+++ b/example/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, 0xFF0000);
+ while (1) {
+ }
+
+ return 0;
+}