u8g2_example.c 334 B

1234567891011121314
  1. #include "u8g2/u8g2.h"
  2. #include <furi.h>
  3. int32_t u8g2_example(void* p) {
  4. // open record
  5. u8g2_t* fb = furi_record_open("u8g2_fb");
  6. u8g2_SetFont(fb, u8g2_font_6x10_mf);
  7. u8g2_SetDrawColor(fb, 1);
  8. u8g2_SetFontMode(fb, 1);
  9. u8g2_DrawStr(fb, 2, 12, "hello world!");
  10. furi_record_close("u8g2_fb");
  11. return 0;
  12. }