Gist 346c2d11acdcd8e254fa57489ad5f50f
✓ Published0🌍 Public
UUtopiah
Last edited Dec 1, 2021
Created on Dec 1, 2021
This example shows a QMK-powered macro pad with a 2x4 ortholinear key layout, displaying live status on a built-in OLED screen. The OLED output reads the active layer (“OBS” or “FN”), backlight state, RGB mode number, and current hue, saturation, and value. The code uses QMK’s keyboard APIs, including `oled_write_ln_P`, `rgblight_get_mode`, and `rgblight_get_hue`, along with layer-tap keys like `LT(_FN, KC_ESC)` and mod-tap combinations. RGB lighting is configured via `config.h` with effects like breathing, Christmas, rainbow mood, and snake, while the OLED rotates 180 degrees using `oled_init_user`. The data originates from runtime keyboard state rather than external files.
AI-generated description