|
TB2026-YDS Firmware
|
Macros | |
| #define | GFX_FONT_W 5 |
| #define | GFX_FONT_H 7 |
Functions | |
| const gfx_color_t * | gfx_buffer (void) |
| Read-only access to the framebuffer (GFX_W*GFX_H pixels). | |
| void | gfx_clear (gfx_color_t color) |
| Fill the whole framebuffer with one color. | |
| void | gfx_pixel (int x, int y, gfx_color_t color) |
| Set one pixel; off-canvas coordinates are ignored. | |
| void | gfx_fill_rect (int x, int y, int w, int h, gfx_color_t color) |
| Fill a rectangle, clipped to the canvas. | |
| void | gfx_draw_rect (int x, int y, int w, int h, gfx_color_t color) |
| Draw a 1px rectangle outline. | |
| void | gfx_draw_text (int x, int y, const char *s, gfx_color_t color, int scale) |
| Draw an ASCII string (0x20..0x7E) left to right. | |
| void | gfx_blit_1bpp (int x, int y, int w, int h, const uint8_t *bitmap, gfx_color_t color) |
Draw a 1-bpp bitmap; set bits are drawn in color, clear bits are skipped. | |
| void | gfx_flush (void) |
| Blit the framebuffer to the OLED over SPI. | |
| #define GFX_FONT_H 7 |
| #define GFX_FONT_W 5 |