/* 6/4/24 Connor Quigley and Reuben Poole code for the angry section of the emotions challenge for our robot. */ #define M2A 17//these lines define the motors forad and backords directions and what there connected to #define M2B 16 #define M1A 19 #define M1B 18 void setup() { // put your setup code here, to run once: // angry pinMode(3, OUTPUT);//sets these pins as outputs for the lights pinMode(25, OUTPUT); pinMode(22, OUTPUT); pinMode(1, OUTPUT); pinMode(M1A,OUTPUT);//sets the pins for the motors as outputs pinMode(M1B,OUTPUT); pinMode(M2A, OUTPUT); pinMode(M2B, OUTPUT); } void loop() { // put your main code here, to run repeatedly: digitalWrite(3, HIGH);//sets the pins connected to the red lights to on digitalWrite(25, HIGH); digitalWrite(22, LOW);//sets other lights to off digitalWrite(1, LOW); //makes the robot move fword quickly digitalWrite (M2B, LOW); digitalWrite (M2A, HIGH); digitalWrite (M1B, LOW); digitalWrite (M1A, HIGH); }