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
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
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
eb342d3d3c
Add custom font preparation
2025-11-21 18:48:27 +01:00
Thomas Farstrike
e56f7f3d22
Remove unused hello_world.c
2025-10-25 19:19:25 +02:00
Thomas Farstrike
58220110ed
Remove useless hello_world.c
2025-10-24 23:19:15 +02:00
Thomas Farstrike
5c81ae4340
Disable webcam stuff on macOS
2025-10-24 23:18:35 +02:00
Thomas Farstrike
8102a74084
Time QR decoding and add kdmukai's speedups
...
240x240 image decoding goes from 1800ms to 406ms. Thanks, @kdmukai!
2025-07-06 00:35:11 +02:00
Thomas Farstrike
c2b3490657
Move from ~/sources to ~/projects
2025-06-15 10:25:38 +02:00
Thomas Farstrike
00f51afd79
Change PiggyOS to MicroPythonOS
2025-06-05 00:02:16 +02:00
Thomas Farstrike
2778c277d6
add c_mpos/micropython.cmake to fix qr decoding in ESP32 build
2025-06-02 17:20:45 +02:00
Thomas Farstrike
e63c9d4040
cleanups
2025-05-19 08:56:26 +02:00
Thomas Farstrike
b70202eabd
QR decode: memory leak on ESP32 is fixed!
2025-05-15 16:48:05 +02:00
Thomas Farstrike
6432b650cc
QR decode: memleak might be fixed
2025-05-15 16:38:53 +02:00
Thomas Farstrike
65fe0ba84a
QR decode: try catching
2025-05-15 16:32:08 +02:00
Thomas Farstrike
c2b7b7628b
webcam: correct buffer size
2025-05-15 16:31:51 +02:00
Thomas Farstrike
2083e47e3d
Use standard 'b' for memoryview
2025-05-15 16:12:18 +02:00
Thomas Farstrike
7239f70442
QR decoding: fix memory leak
2025-05-15 15:42:18 +02:00
Thomas Farstrike
6631b98b48
Add QR code scanning labels
2025-05-15 13:28:04 +02:00
Thomas Farstrike
f982f28f54
camera: add status label, hide buttons until found
2025-05-15 12:49:27 +02:00
Thomas Farstrike
5a05457ef6
add qrdecode_rgb565
2025-05-14 22:38:31 +02:00