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 0cd6634f95
commit 673fe3c304

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