/*
Student: Steven Bekasov
Student ID: 300372093
Date of Code: 2022-02-15
ENGR 1190 Midterm File
*/
/*
Logic state HIGH is off for LEDs in this instance while logic state
LOW is on for LEDs in this instance
*/
/*
2 - Button A Red
12 - Button B Green
8 - Button C Blue
7 - Button D Yellow
*/
/*
5 - Orange LED
6 - Blue LED
10 - Green LED
9 - Red LED
11 - Servo PWM
*/
//Including the servo library
#include <Servo.h>
//Declaring the servo pin to 11
int servoPin = 11;
//Creating a servo object called Servo1
Servo Servo1;
void setup() {
//Attaching the servo to pin 11
Servo1.attach(11);
pinMode(2, INPUT); //Button A or red pushbutton
pinMode(12, INPUT); //Button B or green pushbutton
pinMode(8, INPUT); //Button C or blue pushbutton
pinMode(7, INPUT); //Btton D or yellow button
//Setup all the digital output pins to the LED circuits so they can be used
pinMode(5, OUTPUT); //Orange color LED
pinMode(6, OUTPUT); //Blue color LED
pinMode(10, OUTPUT); //Green color LED
pinMode(9, OUTPUT); //Red color LED
Serial.begin(9600); //Setting the baud rate
}
void loop() {
}