Commit Graph
934 Commits
Author SHA1 Message Date
jacqueline 7d5536e2ab Generalise the lvgl input driver in preparation for more input methods 2023-10-03 10:37:29 +11:00
jacqueline f2bad894cd Show battery voltage in top bar 2023-10-03 09:52:30 +11:00
jacqueline 3df4cc9e3d Make accessors in RelativeWheel const 2023-10-03 09:36:28 +11:00
jacqueline 95618239e6 Fix tasks config flag guarding 2023-09-29 15:35:00 +10:00
jacqueline ba940baa0a Add a lock around the SPI bus
This seems to have been the cause of recurring deadlocks that have been
difficult to repo.
2023-09-29 15:17:32 +10:00
jacqueline c53802f308 Add a core dump command 2023-09-29 12:34:27 +10:00
jacqueline c876c00654 add a fun and cute little loading state :) 2023-09-29 10:40:16 +10:00
jacqueline 6a47edcd35 Use databinding for the top bar. It's so nice now! 2023-09-28 10:43:48 +10:00
jacqueline f09ba5ffd5 Use bindey for databinding instead of hand rolling ui updates 2023-09-28 08:29:55 +10:00
jacqueline f168bfab76 Don't post events from ISRs 2023-09-27 14:39:19 +10:00
jacqueline ce57b236c4 Move every alloc over 256 bytes into PSRAM 2023-09-26 21:46:05 +10:00
jacqueline 252f685ef1 Make NVS access synchronous again
Everything relevant is back in internal ram, and likely to stay there.
2023-09-26 21:07:44 +10:00
jacqueline 96252973d9 Make task tracing tools conditionally compiled 2023-09-26 20:47:07 +10:00
jacqueline c36bbe4e7d Claw back some more IRAM from unused components 2023-09-26 20:36:17 +10:00
jacqueline abc626c1da Place a2dp stream callback into IRAM 2023-09-26 20:36:05 +10:00
jacqueline 8608f9367f Tune buffer sizes and locations for I2S 2023-09-26 17:23:34 +10:00
jacqueline 4d99d22e10 std::string -> std::pmr::string in psram 2023-09-26 13:36:07 +10:00
jacqueline f6d0642109 Prepare for PMR with a memory_resource that understands heap_caps_malloc 2023-09-26 11:23:53 +10:00
jacqueline 2849399d54 Force large c++ arrays into PSRAM
This is mostly targetted at leveldb_ which is rude and does not support
custom allocators
2023-09-26 10:18:33 +10:00
jacqueline a87790a424 Add basic leak detection tooling 2023-09-26 10:14:07 +10:00
jacqueline a2eb0e8961 Fix incorrect default theme 2023-09-25 22:37:46 +10:00
jacqueline 5a20b0bc1a Move UI task back to internal stack
It really is *so* fast
2023-09-25 22:34:30 +10:00
jacqueline dd13a234d2 Place LVGL's memory pool into PSRAM 2023-09-25 15:26:05 +10:00
jacqueline 0802b4e528 Unpin decoder task 2023-09-25 15:25:32 +10:00
jacqueline cd44e0daa1 Move a few task stacks into internal ram for better speed 2023-09-25 15:23:58 +10:00
jacqueline c00e7e37d9 Fix incorrect palette introduced by hardware screen rotation 2023-09-25 15:23:06 +10:00
jacqueline 7ffeea4009 Don't acquire the spi bus in the display driver
Interrupt-based transactions don't need it, and it causes issues.
2023-09-25 15:22:37 +10:00
jacqueline 41c4dce79a Split heap stats and task stats into different functions 2023-09-25 15:22:05 +10:00
jacqueline 2f626f6224 Bump up nvs writer task size for safety 2023-09-25 09:47:01 +10:00
jacqueline f57a9688c9 Allocate display spi buffers statically
It works okay now :)
2023-09-22 21:19:19 +10:00
jacqueline 96944f088f Reclaim some internal ram 2023-09-22 21:19:19 +10:00
jacqueline ca75507146 Make esp-idf bluetooth logging less chatty 2023-09-22 21:19:19 +10:00
jacqueline 972edd7468 Rotate the display in hardware instead of software 2023-09-22 21:19:19 +10:00
jacqueline b192975cb1 make bluetooth pairing ui functional 2023-09-22 21:19:19 +10:00
jacqueline cbd99b2134 Increase sample buffer sizes 2023-09-22 21:19:19 +10:00
jacqueline 022c222e85 Add heap stats to the task stats output 2023-09-22 21:19:19 +10:00
jacqueline 59e0de1fe2 Add super basic readme for the sourcehut project 2023-09-20 15:16:26 +10:00
jacqueline 4a686fee7e README.md -> BUILDING.md 2023-09-20 15:07:58 +10:00
jacqueline 13047fe22d actually keep the build instructions as README bc idk what to write lol 2023-09-20 14:34:10 +10:00
jacqueline 7827873e16 Freshed up building instructions, move to a better-named file. 2023-09-20 14:28:06 +10:00
jacqueline 0ea358ab81 Make the onboarding flow basically work. Much still to do! 2023-09-13 10:09:04 +10:00
jacqueline b0aa9ab391 Fix ui nits for playback screen
The top bar now updates properly when starting playback, and the
upcoming list items no longer marquee.
2023-09-12 14:43:28 +10:00
jacqueline ad74a45921 Use only one buffer for lvgl's display driver
We weren't actually making use of the double buffering, and it's a pain
to implement properly.
2023-09-12 14:30:28 +10:00
jacqueline 86296c187f Use interrupt-based spi for the display
This solves our "audio stutters while scrolling" problem better! Turns
out the real root cause was the polling SPI driver blocking a whole CPU
during playback.
2023-09-12 14:18:04 +10:00
jacqueline b0d745d02d Flesh out onboarding a little, and add a way to get into it 2023-09-08 16:58:30 +10:00
jacqueline 64d9cec8b0 fix some leveldb errors on transition to standby
turns out you gotta free the iterators. wow!!
2023-09-08 15:19:13 +10:00
jacqueline e8a972cc7f Just wait for touchwheel reboot instead of being clever 2023-09-08 15:15:10 +10:00
jacqueline 6b9fb9edac Support retries for samd and touchwheel i2c 2023-09-08 13:45:05 +10:00
jacqueline 493a70b07c Adjust partition table for 4MiB app size + fill the rest of the space 2023-09-08 13:22:41 +10:00
jacqueline 4b627acee6 Reset the touchwheel during boot 2023-09-08 10:24:18 +10:00