Nachtgespenst

A night ghost for your keyboard: a Bluetooth LE and USB macro pad built on the M5Stack Core2 and CoreS3. Tap a tile on the touchscreen and the matching key, chord or media command arrives on your computer.

Source on GitHubChangelogSet it up

The Core2 on the left and the CoreS3 on the right in a dark room, both with their LED bars lit blue

What it does

Nachtgespenst turns an M5Stack touchscreen into a programmable HID device. The screen shows one grid of tiles per layer; tapping a tile sends the matching HID report to the host computer. There are 26 layers and a Locks page, shown on both devices.

The two devices

Core2CoreS3
PlatformIO environmentcore2cores3
Host transportsBLEBLE and USB (TinyUSB)
PagingThree capacitive buttons under the screen: A previous, B Locks page, C nextOn-screen bottom bar: previous, Locks (tap the title), next
LED barM5GO base, ten LEDs on GPIO25M5GO base, ten LEDs on GPIO5 (found with the camera test below)
FlashingCP2104 serial bridge, resets automaticallyNative USB; needs a 1200-baud touch to enter the ROM bootloader
Screen320 × 240, touch

Explore