mirror of
https://github.com/okalachev/flix.git
synced 2026-08-16 00:38:56 +00:00
Utilize Value class in parameters for
Now bool parameters also may be used.
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ Parameters subsystem (`parameters.ino`) uses standard [Preferences.h](https://do
|
||||
|
||||
To add a new parameter:
|
||||
|
||||
1. Define a global variable for the parameter, two types are supported: `float` and `int`.
|
||||
1. Define a global variable for the parameter, three types are supported: `float`, `int`, and `bool`.
|
||||
2. Add an entry to the `parameters` array, with the parameter name, a pointer to the variable, and optionally a callback function to call when the parameter is changed.
|
||||
3. Everything else will be handled automatically.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user