Commit Graph

1436 Commits

Author SHA1 Message Date
Thomas Farstrike 7679db3607 Refactor camera code: DRY, fix memory leak, improve error handling
- Extract RGB conversion helper to eliminate duplication
  - Unify save functions
  - Fix buffer cleanup on error (memory leak)
  - Move retry logic into init_internal_cam()
  - Add error handling for failed camera reinitialization
  - Consolidate button sizing with class variables
  - Remove redundant initialization and unnecessary copies
2025-11-25 14:28:09 +01:00
Thomas Farstrike 385d551f3d Fix camera_app R128x128 vs R128X128 2025-11-25 13:46:47 +01:00
Thomas Farstrike de35a9dd39 Camera app: tweak layout 2025-11-25 09:45:39 +01:00
Thomas Farstrike b0592f8e22 Webcam: only supported resolutions 2025-11-25 09:30:55 +01:00
Thomas Farstrike 01f7a1f84f Improve camera 2025-11-25 09:25:36 +01:00
Thomas Farstrike f8da36b630 camera: fix crash and other bugs 2025-11-25 09:05:56 +01:00
Thomas Farstrike 858df97372 Default to 320x240 2025-11-25 08:23:07 +01:00
Thomas Farstrike 5bf790ed61 Simplify: no scaling 2025-11-25 08:19:11 +01:00
Thomas Farstrike 31e61e7d88 Improve camera 2025-11-25 07:59:48 +01:00
Thomas Farstrike 7e4585e91e Camera: support more resolutions
It's a bit unstable, as it crashes if the settings button is clicked after startup,
but not when closing and then re-opening. Seems to work for 640x480, including QR decoding.
2025-11-24 23:35:50 +01:00
Thomas Farstrike 1ab4970dc7 Work towards changing camera resolution 2025-11-24 22:54:26 +01:00
Thomas Farstrike fa80b7ce13 Add showbattery app for testing 2025-11-24 22:12:44 +01:00
Thomas Farstrike 142c23256c AppStore app: remove unnecessary scrollbar over publisher's name 2025-11-24 22:12:27 +01:00
Thomas Farstrike 4732e4f80f scripts/install.sh: disable wifi first 2025-11-24 22:08:35 +01:00
Thomas Farstrike cccfe320d2 Fix tests/test_battery_voltage.py 2025-11-24 22:08:00 +01:00
Thomas Farstrike 60b68efd79 Fri3d Camp 2024 Badge: improve battery monitor calibration 2025-11-24 22:07:18 +01:00
Thomas Farstrike 54b0aa04ac Update CHANGELOG 2025-11-24 19:50:03 +01:00
Thomas Farstrike 51e8977b12 battery_voltage: slow refresh for ADC2 because need to disable wifi 2025-11-24 19:49:03 +01:00
Thomas Farstrike 69386509e2 OSUpdate: improve wifi handling 2025-11-24 19:04:57 +01:00
Thomas Farstrike 7d722f7f4a Add tests/test_battery_voltage.py 2025-11-24 18:53:00 +01:00
Thomas Farstrike f4bd4d0a2b Improve wifi handling 2025-11-24 18:52:49 +01:00
Thomas Farstrike 61379985e9 OSUpdate app: resume when wifi reconnects 2025-11-24 18:20:06 +01:00
Thomas Farstrike ce8b36e3a8 OSUpdate: pause when wifi goes away, then redownload 2025-11-24 18:03:02 +01:00
Thomas Farstrike 28147fb312 Disable wifi when reading ADC2 voltage 2025-11-24 16:32:41 +01:00
Thomas Farstrike e5d7a11444 ignore apps 2025-11-24 11:29:46 +01:00