shorepine / tulipcc

The Tulip Creative Computer - a portable Python synthesizer for music and graphics
https://tulip.computer/
Other
443 stars 29 forks source link

Touchscreen scale should be guessed from calibrate.py #343

Open bwhitman opened 2 months ago

bwhitman commented 2 months ago

A tulip user reached out to say their tulip's CTP was not responding where they thought it should. I built world.download('paint.py') for them to debug and it looks like the scale is off. We allow touch_delta to be set at runtime, but not touch_scale (which is set at 0.8 for the y-axis). We should allow scale to be a runtime var, and also update calibrate to divine a scale.

bwhitman commented 2 months ago

https://github.com/user-attachments/assets/c38982cb-57ea-4756-a6ea-ae109f85ba8d

bwhitman commented 2 months ago

We now ship with y_scale being settable by touch_delta. What we don't yet have is a version of calibrate that can guess it. I'll have some users try it out for me.