5 Commits

Author SHA1 Message Date
acd028846c Full repo version bump to v2.0.0 2025-08-17 11:04:25 -07:00
ed625e75fc Merge pull request 'Fix Save/Load State' (#28) from fix-save-state into main
Reviewed-on: #28
2025-08-17 17:18:56 +00:00
b60dcc0e68 one more 2025-08-16 11:00:31 -07:00
909d589609 make version consistent 2025-08-16 10:58:42 -07:00
330f5e6ceb improve docstring comments 2025-08-16 10:47:06 -07:00
16 changed files with 32 additions and 30 deletions

View File

@ -2,7 +2,7 @@
* @file Gravity.ino * @file Gravity.ino
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version v2.0.0 - June 2025 awonak - Full rewrite * @version v2.0.0 - August 2025 awonak - Full rewrite
* @version v1.0 - August 2023 Oleksiy H - Initial release * @version v1.0 - August 2023 Oleksiy H - Initial release
* @date 2025-07-04 * @date 2025-07-04
* *
@ -227,11 +227,13 @@ void HandleEncoderPressed() {
case PARAM_MAIN_LOAD_DATA: case PARAM_MAIN_LOAD_DATA:
if (app.selected_sub_param < StateManager::MAX_SAVE_SLOTS) { if (app.selected_sub_param < StateManager::MAX_SAVE_SLOTS) {
app.selected_save_slot = app.selected_sub_param; app.selected_save_slot = app.selected_sub_param;
// Load pattern data into app state.
stateManager.loadData(app, app.selected_save_slot); stateManager.loadData(app, app.selected_save_slot);
// Load global performance settings if they have changed.
if (gravity.clock.Tempo() != app.tempo) { if (gravity.clock.Tempo() != app.tempo) {
gravity.clock.SetTempo(app.tempo); gravity.clock.SetTempo(app.tempo);
} }
// If clock is active, just load the pattern, do not change other global state. // Load global settings only clock is not active.
if (gravity.clock.IsPaused()) { if (gravity.clock.IsPaused()) {
InitGravity(app); InitGravity(app);
} }

View File

@ -2,8 +2,8 @@
* @file app_state.h * @file app_state.h
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version 2.0.1 * @version 2.0.0
* @date 2025-07-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file channel.h * @file channel.h
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version 2.0.1 * @version 2.0.0
* @date 2025-07-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file display.h * @file display.h
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version 2.0.1 * @version 2.0.0
* @date 2025-07-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file euclidean.h * @file euclidean.h
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version 2.0.1 * @version 2.0.0
* @date 2025-07-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -3,7 +3,7 @@
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version 2.0.0 * @version 2.0.0
* @date 2025-07-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -3,7 +3,7 @@
* @author Adam Wonak (https://github.com/awonak/) * @author Adam Wonak (https://github.com/awonak/)
* @brief Alt firmware version of Gravity by Sitka Instruments. * @brief Alt firmware version of Gravity by Sitka Instruments.
* @version 2.0.0 * @version 2.0.0
* @date 2025-07-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -1,5 +1,5 @@
name=libGravity name=libGravity
version=2.0.0 version=2.0.1
author=Adam Wonak author=Adam Wonak
maintainer=awonak <github.com/awonak> maintainer=awonak <github.com/awonak>
sentence=Hardware abstraction library for Sitka Instruments Gravity eurorack module sentence=Hardware abstraction library for Sitka Instruments Gravity eurorack module
@ -7,4 +7,4 @@ category=Other
license=MIT license=MIT
url=https://github.com/awonak/libGravity url=https://github.com/awonak/libGravity
architectures=avr architectures=avr
depends=uClock,RotaryEncoder,U8g2 depends=uClock,RotaryEncoder,U8g2,NeoHWSerial

View File

@ -2,8 +2,8 @@
* @file analog_input.h * @file analog_input.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Class for interacting with analog inputs. * @brief Class for interacting with analog inputs.
* @version 0.1 * @version 2.0.0
* @date 2025-05-23 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file button.h * @file button.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Wrapper class for interacting with trigger / gate inputs. * @brief Wrapper class for interacting with trigger / gate inputs.
* @version 0.1 * @version 2.0.0
* @date 2025-04-20 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file clock.h * @file clock.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Wrapper Class for clock timing functions. * @brief Wrapper Class for clock timing functions.
* @version 0.1 * @version 2.0.0
* @date 2025-05-04 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file digital_output.h * @file digital_output.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Class for interacting with trigger / gate outputs. * @brief Class for interacting with trigger / gate outputs.
* @version 0.1 * @version 2.0.0
* @date 2025-04-17 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file encoder_dir.h * @file encoder_dir.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Class for interacting with encoders. * @brief Class for interacting with encoders.
* @version 0.1 * @version 2.0.0
* @date 2025-04-19 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file libGravity.cpp * @file libGravity.cpp
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Library for building custom scripts for the Sitka Instruments Gravity module. * @brief Library for building custom scripts for the Sitka Instruments Gravity module.
* @version 0.1 * @version 2.0.0
* @date 2025-04-19 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file libGravity.h * @file libGravity.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Library for building custom scripts for the Sitka Instruments Gravity module. * @brief Library for building custom scripts for the Sitka Instruments Gravity module.
* @version 0.1 * @version 2.0.0
* @date 2025-04-19 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *

View File

@ -2,8 +2,8 @@
* @file peripherials.h * @file peripherials.h
* @author Adam Wonak (https://github.com/awonak) * @author Adam Wonak (https://github.com/awonak)
* @brief Arduino pin definitions for the Sitka Instruments Gravity module. * @brief Arduino pin definitions for the Sitka Instruments Gravity module.
* @version 0.1 * @version 2.0.0
* @date 2025-04-19 * @date 2025-08-17
* *
* @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com * @copyright MIT - (c) 2025 - Adam Wonak - adam.wonak@gmail.com
* *