Skip to content
Development
Skill

/u8g2-integration

Use when integrating, porting, configuring, or debugging U8g2 displays, OLED/LCD drivers, I2C/SPI callbacks, fonts, frame buffers, or monochrome embedded UI

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill u8g2-integration --agent claude-code

SKILL.md

u8g2-integration.SKILL.md
name: u8g2-integration
description: Use when integrating, porting, configuring, or debugging U8g2 displays, OLED/LCD drivers, I2C/SPI callbacks, fonts, frame buffers, or monochrome embedded UI

U8g2 Integration

Overview

Use this skill to integrate U8g2 by proving display controller wiring, bus callbacks, reset timing, buffer mode, and font memory before debugging drawing code. Small display failures are usually port or bus issues first.

When To Use

Use this skill when:

  • The user wants U8g2/U8glib-style graphics on OLED/LCD modules.
  • The issue involves blank display, wrong orientation, I2C/SPI failures, font size, page buffer mode, or slow refresh.
  • The target uses SSD1306, SH1106, ST7565, ST7920, or similar small display controllers.

Do not use this skill for full GUI stacks like LVGL. Use `lvgl-integration` when widgets and input devices dominate.

First Questions

Ask for:

  • Display controller, resolution, interface, address/CS/DC/RST pins, and voltage level.
  • MCU, driver/HAL, RTOS/bare-metal model, and U8g2 constructor/setup function.
  • Buffer mode: full buffer, page buffer, or 1-page mode.
  • Font, text language requirements, and flash/RAM budget.
  • Current symptom and whether bus-level signals were measured.

Integration Checklist

1. Confirm hardware path. Check power, reset, I2C/SPI wiring, address, CS/DC pins, and logic levels.

1. Select exact constructor. Controller, resolution, rotation, and interface must match the panel.

1. Implement bus callbacks. Byte and GPIO/delay callbacks must drive I2C/SPI and reset timing correctly.

1. Choose buffer mode. Full buffer is simpler but uses RAM; page mode needs correct drawing loop.

1. Test minimal draw. Draw a box or text with a small font before custom UI.

Common Failures

  • SH1106 panel treated as SSD1306.
  • I2C address shifted incorrectly.
  • Page buffer mode used without first/next page loop.
  • Reset pin not toggled or delay too short.
  • Font tables exceed flash budget.
  • SPI DC/CS pins swapped or not controlled by callbacks.

Verification

Before claiming U8g2 works:

  • State controller, resolution, interface, pins, constructor, and buffer mode.
  • Confirm bus scan or measured bus traffic when possible.
  • Confirm minimal draw and orientation.
  • Confirm RAM/flash impact of chosen buffer and fonts.

Example

User:

U8g2 驱动 OLED 一直黑屏。

Agent:

1. Asks for controller, constructor, I2C/SPI pins, reset pin, address, and buffer mode. 1. Checks hardware and bus callback before drawing code. 1. Tests a minimal box/text draw with the correct page loop.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about u8g2-integration.

Which coding agents can use u8g2-integration?
u8g2-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.