Skip to content

Raw hid improvements - #32

Draft
Cloveian wants to merge 8 commits into
mctechnology17:mainfrom
Cloveian:raw-hid-improvements
Draft

Raw hid improvements#32
Cloveian wants to merge 8 commits into
mctechnology17:mainfrom
Cloveian:raw-hid-improvements

Conversation

@Cloveian

@Cloveian Cloveian commented Jun 27, 2026

Copy link
Copy Markdown

Add media widget and support for stuff in this PR waiting on that, blablabla, to lazy to finish writing good discription on draft pr

Adds ability to specify text size for the raw hid stuff
Adds 3 fonts specifically made for 5,6, and 7px as the normal font generation is bad at those levels
and uhh... stuff

TODO: finish this pr description
TODO: make epaper media widget
TODO: update readme with config values
TODO: update gallary
TODO: remember the rest of the TODOs

assisted by claude-sonnet-4.6 and deepseek-v4-pro

Cloveian and others added 8 commits June 26, 2026 17:22
Adds a new CONFIG_NICE_OLED_WIDGET_RAW_HID_MEDIA_PLAYER_LINUX flag that
enables receiving compact media title data from a Linux host companion app
via HID byte 0xB0 (MediaPlayerLinux). The packet format is:
  [0xB0, char1..charN]  (no length prefix, no padding, max 32 chars)

Changes:
- hid.h: new media_player_linux_notification event struct + ZMK_EVENT_DECLARE
- hid.c: _MEDIA_PLAYER_LINUX = 0xB0 enum value, event impl, case handler
- util.h: media_player field now gated on SPOTIFY_MACOS || LINUX, sized 33
- Kconfig: MEDIA_PLAYER_LINUX bool; MEDIA_PLAYER_FONT_SIZE int (default 7)
  for a separate per-line font distinct from the main HID font; scroll
  Kconfigs (SCROLL, SCROLL_SPEED_MS, SCROLL_START_PAUSE_MS, SCROLL_END_PAUSE_MS)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant