#include <FreeRTOS.h>
#include <semphr.h> // add the FreeRTOS functions for Semaphores (or Flags).
#include <Otto.h>
Otto Otto;
const char data[] = "VARIABLE#";
unsigned long int matrix;
#define LeftLeg 2 // left leg pin, servo[0]
#define RightLeg 3 // right leg pin, servo[1]
#define LeftFoot 4 // left foot pin, servo[2]
#define RightFoot 5 // right foot pin, servo[3]
#define Buzzer 13 //buzzer pin
#define CLK 7 // Clock pin
#define CS 8 // Chip Select pin
#define DIN 9 // Data In pin
#define Orientation 4// 8x8 LED Matrix orientation Top = 1, Bottom = 2, Left = 3, Right = 4
void setup() {
Otto.init(LeftLeg, RightLeg, LeftFoot, RightFoot, true, Buzzer);
Otto.setTrims(0,0,0,0);
Otto.home();
Otto.initMATRIX( DIN, CS, CLK, Orientation);
Otto.playGesture(OttoMagic);
}
void loop() {
Otto.moonwalker(1, 1000, 25, 1);
Otto.moonwalker(1, 1000, 25, -1);
Otto.crusaito(1, 1000, 25, 1);
Otto.crusaito(1, 1000, 25, -1);
Otto.flapping(1, 1000, 25, 1);
Otto.flapping(1, 1000, 25, -1);
}