Merge pull request #2 from keyboardio/f/plugin-v2

Updated the README to use the new plugin APIs
pull/365/head
Gergely Nagy 7 years ago committed by GitHub
commit 75cb920de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,11 +16,13 @@ Provides a breathing effect for the keyboard. Breathe in, breathe out.
To use the plugin, include the header, and tell the firmware to use it: To use the plugin, include the header, and tell the firmware to use it:
```c++ ```c++
#include <Kaleidoscope-LEDControl.h>
#include <Kaleidoscope-LEDEffect-Breathe.h> #include <Kaleidoscope-LEDEffect-Breathe.h>
void setup() { KALEIDOSCOPE_INIT_PLUGINS(LEDControl,
Kaleidoscope.use(&LEDBreatheEffect); LEDBreatheEffect);
void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
} }
``` ```

Loading…
Cancel
Save