fix(steami_screen): Improve gauge reactivity and readability.#421
fix(steami_screen): Improve gauge reactivity and readability.#421MatteoCnda1 wants to merge 5 commits intomainfrom
Conversation
|
Good work on this improvement pass. There are however a few points that should be addressed before merging: 1.
|
d8117e1 to
e9891b6
Compare
8689897 to
4e44adc
Compare
4e44adc to
13cb662
Compare
Summary
Improve
gauge_demo.pyreactivity and readability on hardware. Closes #370Changes
arc_widthoptional parameter togauge()indevice.pymax(5, radius // 9)if not provided — no breaking change_draw_arc()oversampling fromx2tox1.5for faster renderinggauge_demo.py:REDRAW_THRESHOLD)screen.value()withscreen.text()at scale=1 for readabilitytry/finallyto clear display on exitChecklist
ruff checkpassespython -m pytest tests/ -k mock -vpasseslib/steami_screen/examples/gauge_demo.py)<scope>: <Description.>format