One player pong with seven segment display for score keeping
Dependencies: 4DGL-uLCD-SE PinDetect SDFileSystem mbed-rtos mbed wave_player
Fork of ECE2036Lab2StarterCode by
Diff: tempModule.h
- Revision:
- 3:c93d1b51785c
- Parent:
- 1:839d22d423bd
--- a/tempModule.h Fri Jun 20 15:22:28 2014 +0000 +++ b/tempModule.h Thu Mar 17 20:38:26 2016 +0000 @@ -1,16 +1,8 @@ +#ifndef TEMPMODULE_H +#define TEMPMODULE_H +#include "mbed.h" #include "uLCD_4DGL.h" -/* Recommendation: - * This class doesn't need to be declared outside the Ball class, - * so you can create it inside the Ball class and use it only - * in the Ball class. - * - * If the main function or multiple objects use a piece of hardware - * or a class object (like uLCD or mySpeaker), you should pass a - * pointer into the object rather than creating the object (either - * in the stack or using new). - */ - class TempModule { public: @@ -37,15 +29,4 @@ float basevy; int counter; }; - -TempModule::TempModule (PinName pin) : _sensor(pin) -{ - // Constructor code goes here - // you can ignore initializing _sensor, we've already done that -} - -TempModule::TempModule (PinName pin, float vx, float vy) : _sensor(pin) -{ - // Constructor code goes here - // you can ignore initializing _sensor, we've already done that -} \ No newline at end of file +#endif \ No newline at end of file