Lab 6 for ECE 2036,a lame version of Galiga that needs to have the bullet fixed, but focuses on the concept of polymorphism
Dependencies: mbed 4DGL-uLCD-SE PinDetect
global.h
00001 #ifndef GLOBAL_H 00002 #define GLOBAL_H 00003 00004 // Include all the hardware libraries 00005 #include "mbed.h" 00006 #include "uLCD_4DGL.h" 00007 #include "PinDetect.h" 00008 #include "MMA8452.h" 00009 #include <ctime> 00010 #include <cstdlib> 00011 00012 // Declare the hardware interface objects 00013 /* 00014 This file holds all the global variables that are accessable from all the 00015 different files in this project. You see below most of it looks like hardware. 00016 That's because it is hardware! The uLCD object is how you interact with the LCD 00017 screen. The sd variable is how you interact with the sd card and so on for all 00018 the other variables.*/ 00019 extern uLCD_4DGL uLCD; // LCD Screen 00020 //extern SDFileSystem sd; // SD Card 00021 extern PinDetect buttonA; // Pushbuttons 00022 extern PinDetect buttonB; 00023 extern PinDetect buttonC; 00024 extern MMA8452 acc; 00025 00026 //bullet launch 00027 extern bool loadedBullet; 00028 extern bool loadedRocket; 00029 00030 #endif
Generated on Fri Aug 19 2022 02:30:07 by
1.7.2