#include <Servo.h>
#include <Wire.h>
#include <FastLED.h>
#define THROTTLE_CHANNEL A0
bool gearDown = false;
unsigned long currentMillis;
uint8_t throttle = 0;
void setup() {
// put your setup code here, to run once:
//Serial.begin(9600);//full speed but can be any other speed
pinMode(THROTTLE_CHANNEL, INPUT);
setupAvoidanceLights();
attachServos();
//setupRingsV1();
setupRingsV2();
}
void loop() {
//Serial.println(throttle);
gearDown = getGearPosition();
currentMillis = millis();
// put your main code here, to run repeatedly:
throttle = readAnalogChannel(THROTTLE_CHANNEL, 0, 254, 0);
avoidanceLights();
updateServoPositions();
//loopRingsV1();
//
loopRingsV2();
//Serial.println(throttle);
}