TB2026-YDS Firmware
Loading...
Searching...
No Matches
display_oled.h File Reference

SSD1333 OLED driver (NHD-1.91-176176UBC3, 176x176, 4-wire SPI). More...

#include "esp_err.h"
#include "driver/spi_master.h"

Go to the source code of this file.

Macros

#define DISPLAY_OLED_BRIGHTNESS_MAX   15

Functions

esp_err_t display_oled_init (spi_device_handle_t spi)
 Reset the panel and run the SSD1333 init sequence (gamma, contrast, display on).
esp_err_t display_oled_draw (const uint8_t *buf, size_t len)
 Blit a full framebuffer to the panel.
esp_err_t display_oled_clear (void)
 Clear the panel to black directly, without a framebuffer.
esp_err_t display_oled_set_brightness (uint8_t level)
 Set the global panel brightness (SSD1333 Master Current, cmd 0xC7).
esp_err_t display_oled_sleep (void)
 Put the panel to sleep (SSD1333 Display OFF, cmd 0xAE).
esp_err_t display_oled_wake (void)
 Wake the panel from sleep (SSD1333 Display ON, cmd 0xAF).

Detailed Description

SSD1333 OLED driver (NHD-1.91-176176UBC3, 176x176, 4-wire SPI).

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.