10 #define GREEN 0, 255, 0
11 #define BLUE 0, 0, 255
12 #define YELLOW 255, 255, 0
13 #define ORANGE 255, 140, 0
14 #define MAGENTA 255, 0, 255
16 #define WHITE_FULL 255, 255, 255
17 #define WHITE 255, 255, 135
18 #define WHITE_MEDIUM 128, 128, 67
19 #define WHITE_LOW 64, 64, 34
20 #define WHITE_VERY_LOW 48, 48, 25
21 #define WHITE_VERY_VERY_LOW 32, 32, 17
90 attachInterrupt(digitalPinToInterrupt(frontDisc.motor->getTachAttachedPin()),
frontDiscISR, RISING);
91 attachInterrupt(digitalPinToInterrupt(backDisc.motor->getTachAttachedPin()),
backDiscISR, RISING);
98 frontDisc.motor->interruptServiceRoutine();
105 backDisc.motor->interruptServiceRoutine();
112 for(
int i = 0; i <= 2; i++){
121 for(
int i = 0; i <=2; i ++){
130 for(
int i = 0; i <= 2; i++){
const int LEFT_MOTOR_PWM_PIN
Definition: Globals.h:50
LEDStrip ledBacklights(BACKLIGHT_RED_PIN, BACKLIGHT_GREEN_PIN, BACKLIGHT_BLUE_PIN)
Disc frontDisc & leftMotor
Definition: Globals.h:60
const int LEFT_MOTOR_DIRECTION_PIN
Definition: Globals.h:49
void frontDiscISR()
Definition: Globals.h:97
void setupGlobals()
Definition: Globals.h:86
const int LED_PIN
Definition: Globals.h:68
const int RIGHT_MOTOR_PWM_PIN
Definition: Globals.h:44
void easterEgg()
Definition: Globals.h:111
const int BACKLIGHT_RED_PIN
Definition: Globals.h:65
const int LEFT_MOTOR_TACHOMETER
Definition: Globals.h:51
const int BACKLIGHT_BLUE_PIN
Definition: Globals.h:67
const int BIT_3_SWITCH_PIN
Definition: Globals.h:36
const int RIGHT_MOTOR_DIRECTION_PIN
Definition: Globals.h:43
Switch bit3Switch(BIT_3_SWITCH_PIN)
const int US_ECHO
Definition: Globals.h:76
const int RIGHT_MOTOR_TACHOMETER
Definition: Globals.h:45
Definition: Ultrasonic.h:10
Disc backDisc & rightMotor
Definition: Globals.h:59
const int BACKLIGHT_GREEN_PIN
Definition: Globals.h:66
Switch bit2Switch(BIT_2_SWITCH_PIN)
void setColor(byte red, byte green, byte blue)
Definition: LEDStrip.h:104
Definition: LEDStrip.h:30
void backDiscISR()
Definition: Globals.h:104
const int US_TRIGGER
Definition: Globals.h:75
Ultrasonic ultrasonicSensor(US_TRIGGER, US_ECHO)
const int BIT_2_SWITCH_PIN
Definition: Globals.h:33
Switch bit1Switch(BIT_1_SWITCH_PIN)
const int BIT_1_SWITCH_PIN
Definition: Globals.h:30