The code presented on this page can be downloaded or found in the Arduino examples menu under Examples → SpinWearables → SpinWheelStockFirmware
.
This includes a few preloaded animations that can be changed by pressing the button.
#include "SpinWearables.h"
using namespace SpinWearables;
void setup() {
.begin();
SpinWheel.largeLEDs.setBrightness(20);
SpinWheel();
bootAnimation.addAnimationRoutine(largeRainbow);
SpinWheel.addAnimationRoutine(smallWhiteRotating);
SpinWheel.addAnimationRoutine(allBreathing);
SpinWheel.addAnimationRoutine(tiltSensor3);
SpinWheel.addAnimationRoutine(tealLight);
SpinWheel}
void loop() {
.readIMU();
SpinWheel.runAnimationRoutine();
SpinWheel.drawFrame();
SpinWheel}