TB2026-YDS Firmware
Loading...
Searching...
No Matches
gfx.c File Reference
#include "gfx.h"
#include "display_oled.h"
#include "esp_attr.h"

Macros

#define GFX_FONT_W   5
#define GFX_FONT_H   7

Functions

const gfx_color_tgfx_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.

Detailed Description

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Macro Definition Documentation

◆ GFX_FONT_H

#define GFX_FONT_H   7

◆ GFX_FONT_W

#define GFX_FONT_W   5