aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gdisp/gdisp_fonts_cyrillic/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gdisp/gdisp_fonts_cyrillic/main.c')
-rw-r--r--demos/modules/gdisp/gdisp_fonts_cyrillic/main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/demos/modules/gdisp/gdisp_fonts_cyrillic/main.c b/demos/modules/gdisp/gdisp_fonts_cyrillic/main.c
new file mode 100644
index 00000000..dd39a5d5
--- /dev/null
+++ b/demos/modules/gdisp/gdisp_fonts_cyrillic/main.c
@@ -0,0 +1,20 @@
+#include "gfx.h"
+
+int main(void) {
+ font_t font1;
+
+ // Initialize uGFX and the underlying system
+ gfxInit();
+
+ // Get the fonts we want to use
+ font1 = gdispOpenFont("Archangelsk Regular 12");
+
+ // Demonstrate our other fonts
+ gdispDrawString(10, 10, "привет мир", font1, Yellow);
+
+ // Wait forever
+ while(TRUE) {
+ gfxSleepMilliseconds(500);
+ }
+}
+