
player 1
Dependencies: 4DGL-uLCD-SE PinDetect SparkfunAnalogJoystick mbed-rtos mbed SDFileSystem
Fork of 4180FinalLab by
Wireless 2 Player Pong game
Diff: tempModule.h
- Revision:
- 1:839d22d423bd
- Parent:
- 0:356124c0bafc
--- a/tempModule.h Tue Jun 17 20:03:41 2014 +0000 +++ b/tempModule.h Thu Jun 19 21:45:38 2014 +0000 @@ -1,5 +1,16 @@ #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: