u8g2-integration
/u8g2-integration
Use when integrating, porting, configuring, or debugging U8g2 displays, OLED/LCD drivers, I2C/SPI callbacks, fonts, frame buffers, or monochrome embedded UI
- Author
- easyzoom ↗
- Repository
- aix-skills ↗
- Licence
- MIT
- Last repository change
- 17.07.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 17.07.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when integrating, porting, configuring, or debugging U8g2 displays, OLED/LCD drivers, I2C/SPI callbacks, fonts, frame buffers, or monochrome embedded UI
Original author description
Use when integrating, porting, configuring, or debugging U8g2 displays, OLED/LCD drivers, I2C/SPI callbacks, fonts, frame buffers, or monochrome embedded UI
How it works
- Overview
- When To Use
- First Questions
- Integration Checklist
- Common Failures
- Verification
- Example
SKILL.md preview
--- 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: ```text 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.
Versions
The database has no other skills named u8g2-integration.
Database snapshot: 13.11.2026 · package version a9100c5f1877 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100fatfs-integration
Use when integrating, porting, configuring, or debugging FatFs FAT/exFAT filesystems, diskio drivers, SD cards, SPI flash disks, or embedded file I/O failures - 100nanopb-integration
Use when integrating, porting, configuring, or debugging nanopb Protocol Buffers, .proto generation, pb_encode, pb_decode, callbacks, fixed sizes, or embedded serialization - 100bus-drivers-i2c-spi
I2C and SPI bus driver skill for Linux client drivers. Use when writing i2c_driver or spi_driver, register access over bus, DMA SPI transfers, or ACPI/DT client binding. Activates on queries about i2c_client, spi_driver, regmap I2C, SPI transfer, or Linux I2C SPI subsystem. - 100embedded-firmware
Embedded firmware and device drivers — BSP development, peripheral driver implementation (UART, SPI, I2C, GPIO, DMA, Timer), RTOS integration (FreeRTOS, Zephyr), and system validation. Use when writing chip bring-up firmware, implementing HAL drivers, porting an RTOS, or… - 100esp32c6-lcd147
Firmware development for the Waveshare ESP32-C6-LCD-1.47 board (ESP32-C6FH4, QFN32) — its 1.47" 172x320 ST7789 LCD, WS2812 RGB LED, microSD/TF slot, USB-Serial-JTAG console, Wi-Fi 6/BLE/802.15.4 radio, and the ESP-IDF + PlatformIO setup around them. Use when working on this… - 100platform-port
Guide porting FastLED to new MCU platforms, including int.h types, clockless drivers, SPI implementations, and platform detection. Use when adding support for a new microcontroller family or board.