Merge pull request #6 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 a7fae41a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,11 +17,13 @@ over and over again. Playful colors they are.
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-Chase.h> #include <Kaleidoscope-LEDEffect-Chase.h>
void setup() { KALEIDOSCOPE_INIT_PLUGINS(LEDControl,
Kaleidoscope.use(&LEDChaseEffect); LEDEffect-Chase);
void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
} }
``` ```

Loading…
Cancel
Save