#include <Arduino.h>
#include <FastLED.h>
#include "ProtogenHead.h"
#include "AnimationBook.h"
#include "config.h"
#include "loop.h"
ProtogenHead head;
// AnimationBook *book;
uint8_t loop_count = 0;
void setup()
{
Serial.begin(115200); // Any baud rate should work
Serial.println("=======Proto-proto-proto-gen!=======");
// initialize FastLED
Serial.println("LED initialization...");
FastLED.addLeds<NEOPIXEL, DATA_PIN_LEFT>(head.left_leds, LEDS_PER_DISPLAY);
FastLED.setBrightness(BRIGHTNESS);
Serial.println("LED initializaion done.");
// initialize animations
Serial.println("AnimationBook initialization...");
// book = makeAnimationBook();
Serial.println("AnimationBook initialization done.");
Serial.println("=======Setup finshed=======");
}
void loop()
{
Serial.print("=======Loop ");
Serial.print(loop_count);
Serial.println("=======");
head.left_leds[loop_count].b = 255;
// FastLED.delay(10
delay(10);
Serial.println("After loop");
head.left_leds[loop_count].b = 0;
loop_count = (loop_count + 1) % 256;
// animation_frame(&head, *book);
}