// EVShield // Author: William L // // Purpose: // A custom serial communication for Ryersons MECHBOT and EVShield. The Mechbot was made // such that only 2 pins on both Arduinos are available for communication. On the // Mechbot, only pins PC4 and PC5 are available and on the EVShield only PB1 and PB0 are // available. // #include #include #include #include #include // CODE APPENDIX // // 10010 Pick up object on left side // 10100 pick up object on right side // 11000 blink EVShield // 10110 drop object // 11100 set top claw //GLOBAL VARIABLES int data[5]={0,0,0,0,0}; int data_As_Int; int BUT3 = PD5; int lego_In = PB0; int lego_Out = PB1; EVShield evshield(0x34,0x36); int completion(void){ //------FOR WHEN A SCENARIO IS COMPLETED-------- while (PIND & (1<