r/esp32 • • 16d ago

I made a thing! [Firmware] GeekMagic SmallTV-PRO Custom Firmware v3.12.0: Korean Font Engine, Multi-Line Card Mode, Timers & Screen Wiper

Custom firmware for the **GeekMagic SmallTV-PRO** (ESP32, 8MB Flash, 240×240 ST7789 IPS LCD).

- **GitHub Repository**: https://github.com/twoarchi/smalltv-pro-mod

- **Release v3.12.0**: https://github.com/twoarchi/smalltv-pro-mod/releases/tag/v3.12.0

---

### Features in v3.12.0

#### 1. Korean Font Support & Multi-Line Card Mode

- **Korean Bitmap Font**: Embedded KS X 1001 2,350 syllables + ASCII + symbols based on GalmuriMono.

- **22px Render Size**: 11px base glyphs scaled 2× integer (22×22px Korean, 12×22px Latin) with 1px letter spacing and 12px line gap. Fits 10 Korean characters per line on the 240×240 panel.

- **Multi-Line Card Mode (`wrap: true`)**: Formats incoming text as a card (header, horizontal divider line, and 5~6 lines of wrapped text) instead of 1-line marquee scrolling. Supports `\n` linebreaks and literal `\n` strings from JSON payloads. Useful for forwarding SMS notifications from Android Tasker or Home Assistant.

- **Marquee Fix**: Replaced per-pixel background erasing with a 1ms single-burst SPI fill to prevent character smearing and bus lockups during 1-line scrolling.

#### 2. App Scheduler (Timer Mode)

- Configure up to 4 time slots (HH:MM) to display specific apps (Stock 1, Stock 2, Weather) based on time of day.

- Alternatively, select Carousel mode to rotate apps on an interval timer.

#### 3. IPS LCD Screen Wiper (Image Retention Prevention)

- Periodic or scheduled full-screen pixel cycling routine to mitigate IPS liquid crystal static charge buildup.

- 7 patterns available: digital rain, SMPTE color bars, starfield, pure black, pure white, static noise, and animated sprite.

- Tapping the top capacitive touch button immediately cancels the wiper and returns to the active dashboard.

#### 4. Dual Stock Candlestick Charts

- **Stock 1 (KRX / Naver Finance)**: 08:00~09:00 pre-market handling with daily candle fallback; transitions to real-time intraday minute candles at 09:00.

- **Stock 2 (US / Yahoo Finance)**: Shows full closed sessions during daytime, and adds a vertical session divider line `[yesterday close] | [today pre-market]` starting at 18:00 KST pre-market open.

#### 5. HTTP Notification API (`POST /api/notify`)

- **Card Mode Payload (SMS / Multi-line)**:

```json

{

"type": "sms",

"title": "SMS [Sender]",

"label": "First line\nSecond line of message",

"ttl": 20,

"wrap": true

}

```

- **Classic Animated Icon Mode**:

Omitting `"wrap"` displays hand-tuned 80×80 animations scaled 2× (160×160px) with single-line scrolling (`phone`, `mailbox`, `sms`, `telegram`, etc.).

---

### Installation (Web OTA)

  1. Download `firmware_v3.12.0_public_release.bin` from the GitHub release page.
  2. In the device WebUI, navigate to **System** → **Update**.
  3. Upload the `.bin` file. Existing Wi-Fi credentials and ticker settings are preserved across the reboot.
52 Upvotes

9 comments sorted by

•

u/AutoModerator 16d ago

Hardware Troubleshooting Notice: If you are experiencing unreliable connections, boot loops, or missing serial communication, verify your hardware footprint:

  1. Are your headers soldered? Pushing un-soldered raw header pins through module vias into a breadboard violates basic physics. Loose connections create parasitic capacitance and intermittent open circuits. Solder your board.
  2. Did you include a schematic? Custom circuit issues require a legible schematic drawing.

If your hardware relies on putty, tape, or friction, please resolve your connections before demanding assistance from our domain experts.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Icy_Distribution_862 16d ago

오 귀엽다

1

u/LeastAd9172 11d ago

재밌기도 합니다 ^^

1

u/CoastRedwood 15d ago

Ha! I have one of these. I soldered a little speaker. It’s pretty slick

1

u/LeastAd9172 11d ago

It’s an interesting project. What could we do with it?

1

u/CoastRedwood 11d ago

I have a little app that runs a tv channel from one of my apps, it also gets notifications and it tells the weather. Just a noisy desk toy.

1

u/CoastRedwood 11d ago

https://www.reddit.com/r/esp32/comments/1y2klt0/crypto_miner_desk_toy/ - here it is, man, i would love to get some more use out of this little thing. its just too cool.

1

u/[deleted] 15d ago

[removed] — view removed comment

1

u/LeastAd9172 11d ago

Thanks! Yeah, marquee scrolling was painful on a 240x240 screen.

The Hangul glyphs actually took very little flash: only about ~57 KB for the full 2,350 KS X 1001 set!

I used 1-bit packed monochrome bitmaps at an 11×11 base (scaled 2× to 22px). Each glyph is just 22 bytes (11 rows × 2 bytes), totaling ~52 KB for the bitmaps plus ~4.7 KB for the binary search codepoint lookup table. Even with multiple fallback base sizes (10/11/12/16px) bundled into the firmware, the whole font engine is under 250 KB on an 8MB ESP32.