![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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: ball.h
- Revision:
- 1:839d22d423bd
- Parent:
- 0:356124c0bafc
- Child:
- 3:c93d1b51785c
diff -r 356124c0bafc -r 839d22d423bd ball.h --- a/ball.h Tue Jun 17 20:03:41 2014 +0000 +++ b/ball.h Thu Jun 19 21:45:38 2014 +0000 @@ -5,8 +5,16 @@ { public: // Constructors + Ball (); + Ball (float, float, int); + /* For Part 3: + * you need to be able to pass a pin to the + * tempModule object from main, so you should + * add in a PinName argument. + */ Ball(PinName); Ball(PinName, float, float, int); + */ // Set Functions void setBaseVx(float); // This sets the lowest velocity of vx (for Thermal pong) or the constant velocity void setBaseVy(float); // This sets the lowest velocity of vy (for Thermal pong) or the constant velocity @@ -23,7 +31,7 @@ private: // Data members are suggestions, feel free to add/remove - TempModule *tempSensor; + TempModule *tempSensor; // Pointer -- it's recommended to use "new" operator to create this int vxSign; int vySign; float fx;