X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/4e77ea11432512f2d68ebce798f4e1d66da2c48d..0b162010a8ae6d401564797c5122394857965ab9:/badge/ui/font.h diff --git a/badge/ui/font.h b/badge/ui/font.h index 12b43a1..f54b9a9 100644 --- a/badge/ui/font.h +++ b/badge/ui/font.h @@ -4,11 +4,13 @@ #include "display.h" enum { - BADGE_FONT_WIDTH = 6, - BADGE_FONT_HEIGHT = 8 + BADGE_FONT_GLYPH_WIDTH = 5, + BADGE_FONT_WIDTH = 6, + BADGE_FONT_HEIGHT = 8 }; uint8_t badge_framebuffer_render_char(badge_framebuffer *fb, int8_t pos_x, int8_t pos_y, char c); uint8_t badge_framebuffer_render_text(badge_framebuffer *fb, int8_t pos_x, int8_t pos_y, char const *text); +uint8_t badge_framebuffer_render_number(badge_framebuffer *fb, int8_t pos_x, int8_t pos_y, uint8_t number); #endif