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

@ -22,11 +22,12 @@ To use the plugin, include the header, and tell the firmware to use either (or
both!) of the effects: both!) of the effects:
```c++ ```c++
#include <Kaleidoscope-LEDControl.h>
#include <Kaleidoscope-LEDEffect-Rainbow.h> #include <Kaleidoscope-LEDEffect-Rainbow.h>
void setup() { KALEIDOSCOPE_INIT_PLUGINS(LEDRainbowEffect, LEDRainbowWaveEffect);
Kaleidoscope.use(&LEDRainbowEffect, &LEDRainbowWaveEffect);
void setup() {
Kaleidoscope.setup(); Kaleidoscope.setup();
} }
``` ```

Loading…
Cancel
Save