Skip to content

fix(steami_screen): Improve gauge_demo reactivity and readability. #370

@nedseb

Description

@nedseb

Problem

The gauge_demo.py example has two issues observed on hardware:

  1. Readability: the value text inside the gauge uses scale=2 bold effect which is hard to read on the SSD1327 (related to fix(steami_screen): Improve text scaling beyond bold offset effect. #369)
  2. Reactivity: the arc rendering is slow due to the oversampled _draw_arc() which draws many line segments per frame. The gauge update feels sluggish when moving an object in front of the VL53L1X.

Possible improvements

  • Reduce arc oversampling in _draw_arc() for a speed/quality tradeoff
  • Display value with screen.text() at scale=1 instead of scale=2 for readability
  • Increase the sleep interval to match the actual frame rate (avoid queuing frames)
  • Consider a partial redraw strategy (only redraw the arc delta, not the whole screen)

Observed on

STeaMi Rev A, SSD1327 OLED, VL53L1X distance sensor.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions