Commit Graph

13 Commits

Author SHA1 Message Date
ab71ac9c37 Add copyright license information 2025-07-04 14:05:58 -07:00
dd1228be00 Vendorize uClock (#10)
Add copy of uClock to the repo including memory optimization changes.

Also add user config setting for changing Pulse Out resolution.

Reviewed-on: https://git.pinkduck.xyz/adam/libGravity/pulls/10
Co-authored-by: Adam Wonak <adam.wonak@gmail.com>
Co-committed-by: Adam Wonak <adam.wonak@gmail.com>
2025-07-02 02:45:39 +00:00
d56355a94b refactor encoder. no need for Dir enum. 2025-06-28 09:45:50 -07:00
54999d6525 Separate display into its own file. 2025-06-17 20:40:51 -07:00
d12764313b Introduce StateManager to persist state between power cycles (#6)
- add reset state menu option to return all settings back to default values.
- add reverse encoder menu option and save state
- make saving to EEPROM safer by wrapping put calls with noInterrupts()
- improve save state behavior by using a mutex flag and update check with debounce in main loop
- refactor gravity.h global const definitions to be static and more readable.
- improve usage of EncoderDir in ISR with pointer to instance and static isr() method.
- reduce u8g2 memory usage by using single page buffer

Reviewed-on: https://git.pinkduck.xyz/adam/libGravity/pulls/6
Co-authored-by: Adam Wonak <adam.wonak@gmail.com>
Co-committed-by: Adam Wonak <adam.wonak@gmail.com>
2025-06-16 02:47:25 +00:00
01bf09d4f5 Consistent clock behavior for ext cv and midi. 2025-06-02 21:56:17 -07:00
20f65d9bdf Full rewrite of graphics lib. Replace adafruit with u8g2. Overhaul UI. 2025-06-01 19:18:59 -07:00
edd7df1cd6 Revert pointer change. not worth the few bytes it saved. 2025-05-31 20:28:17 -07:00
18e53e90c1 Fuck it, we're doing pointers for everything! 2025-05-31 17:35:04 -07:00
7f9ad7e00d basic implementation of analog inputs and test script 2025-05-23 21:36:18 -07:00
6762549b4a main process method should not have any logic. 2025-05-23 17:13:15 -07:00
90f94c3077 Add a trivial example script and some formatting. 2025-05-04 12:00:46 -07:00
32a23b7bf9 Initial commit of mostly working library. 2025-05-04 10:43:15 -07:00