Updated the README to use the new plugin APIs

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 7 years ago
parent 77a3f9a611
commit 8e2721a1b0

@ -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