跳转至

CFBD_OLED

The generic OLED device object exposed to application code. More...

#include <oled.h>

Detailed Description

struct CFBD_OLED;

The generic OLED device object exposed to application code.

Note: The oled_internal_handle is opaque and device-specific. Do not access it directly; all device interaction must occur through the ops table.

This is the primary interface through which application code interacts with OLED displays. It encapsulates the operation table, device type, and backend-specific state into a single, transport-agnostic interface.

Typical usage pattern:

  1. Call CFBD_GetOLEDHandle() to obtain and initialize an instance
  2. Call ops->open() to enable the device
  3. Use rendering operations (setPixel, setArea, etc.) to draw
  4. Call ops->update() to push changes to the display
  5. Call ops->close() when done

Updated on 2026-02-03 at 13:21:55 +0000