|
|
@ -19,8 +19,7 @@ software (except to toggle edit mode on and off).
|
|
|
|
|
|
|
|
|
|
|
|
## Using the plugin
|
|
|
|
## Using the plugin
|
|
|
|
|
|
|
|
|
|
|
|
To use the plugin, just include the header, add it to the list of used plugins,
|
|
|
|
To use the plugin, just include the header, add it to the list of used plugins.
|
|
|
|
and register the `Focus` hooks:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```c++
|
|
|
|
```c++
|
|
|
|
#include <Kaleidoscope.h>
|
|
|
|
#include <Kaleidoscope.h>
|
|
|
@ -28,7 +27,7 @@ and register the `Focus` hooks:
|
|
|
|
#include <Kaleidoscope-LED-Palette-Theme.h>
|
|
|
|
#include <Kaleidoscope-LED-Palette-Theme.h>
|
|
|
|
#include <Kaleidoscope-EEPROM-Settings.h>
|
|
|
|
#include <Kaleidoscope-EEPROM-Settings.h>
|
|
|
|
#include <Kaleidoscope-FingerPainter.h>
|
|
|
|
#include <Kaleidoscope-FingerPainter.h>
|
|
|
|
#include <Kaleidoscope-Focus.h>
|
|
|
|
#include <Kaleidoscope-FocusSerial.h>
|
|
|
|
|
|
|
|
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(LEDControl,
|
|
|
|
KALEIDOSCOPE_INIT_PLUGINS(LEDControl,
|
|
|
|
EEPromSettings,
|
|
|
|
EEPromSettings,
|
|
|
@ -38,10 +37,6 @@ KALEIDOSCOPE_INIT_PLUGINS(LEDControl,
|
|
|
|
|
|
|
|
|
|
|
|
void setup() {
|
|
|
|
void setup() {
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
|
|
|
|
|
|
|
|
EEPROMSettings.seal();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Focus.addHook(FOCUS_HOOK_FINGERPAINTER);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
@ -51,9 +46,6 @@ The plugin provides the `FingerPainter` object, which provides no public methods
|
|
|
|
|
|
|
|
|
|
|
|
## Focus commands
|
|
|
|
## Focus commands
|
|
|
|
|
|
|
|
|
|
|
|
The plugin provides a single `Focus` hook: `FOCUS_HOOK_FINGERPAINTER`, which
|
|
|
|
|
|
|
|
in turn provides the following commands:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `fingerpainter.clear`
|
|
|
|
### `fingerpainter.clear`
|
|
|
|
|
|
|
|
|
|
|
|
> Clears the canvas, so that one can start a new painting.
|
|
|
|
> Clears the canvas, so that one can start a new painting.
|
|
|
@ -65,7 +57,7 @@ in turn provides the following commands:
|
|
|
|
## Dependencies
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
|
|
|
|
* [Kaleidoscope-EEPROM-Settings](https://github.com/keyboardio/Kaleidoscope-EEPROM-Settings)
|
|
|
|
* [Kaleidoscope-EEPROM-Settings](https://github.com/keyboardio/Kaleidoscope-EEPROM-Settings)
|
|
|
|
* [Kaleidoscope-Focus](https://github.com/keyboardio/Kaleidoscope-Focus)
|
|
|
|
* [Kaleidoscope-FocusSerial](https://github.com/keyboardio/Kaleidoscope-FocusSerial)
|
|
|
|
* [Kaleidoscope-LED-Palette-Theme][plugin:l-p-t]
|
|
|
|
* [Kaleidoscope-LED-Palette-Theme][plugin:l-p-t]
|
|
|
|
* [Kaleidoscope-LEDControl](https://github.com/keyboardio/Kaleidoscope-LEDControl)
|
|
|
|
* [Kaleidoscope-LEDControl](https://github.com/keyboardio/Kaleidoscope-LEDControl)
|
|
|
|
|
|
|
|
|
|
|
|