|
TB2026-YDS Firmware
|
Framebuffer drawing primitives for the 176x176 RGB565 OLED. More...
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | GFX_W 176 |
| #define | GFX_H 176 |
| #define | GFX_BLACK ((gfx_color_t)0x0000) |
| #define | GFX_WHITE ((gfx_color_t)0xFFFF) |
| #define | GFX_CHAR_W 6 |
| #define | GFX_CHAR_H 8 |
Typedefs | |
| typedef uint16_t | gfx_color_t |
Functions | |
| 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. | |
| const gfx_color_t * | gfx_buffer (void) |
| Read-only access to the framebuffer (GFX_W*GFX_H pixels). | |
Framebuffer drawing primitives for the 176x176 RGB565 OLED.