This a Library that can be used to make ping pong the Nokia Lcd 5110.
Revision 1:4893a8f7147f, committed 2016-05-05
- Comitter:
- el14jpps
- Date:
- Thu May 05 11:55:56 2016 +0000
- Parent:
- 0:ef8d5a4464a3
- Commit message:
- My ELEC2645 Project Jefferson Sanchez 200883251
Changed in this revision
Paddle.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ef8d5a4464a3 -r 4893a8f7147f Paddle.cpp --- a/Paddle.cpp Wed May 04 23:22:04 2016 +0000 +++ b/Paddle.cpp Thu May 05 11:55:56 2016 +0000 @@ -50,11 +50,11 @@ display.refresh(); } - + /**@code Dr Evans - The joystick code provided on the labs was used to obtain the values to move the paddels and for the menu */ void Paddle::Refresh_pos(AnalogIn &p1)// in this void we can see the uodate of the paddle for player 1 { // - if (p1 < 0.33)//The threshold of potentiometer P1 , the 0.33 value was obtained using Dr Evans code for the joystick and cool term. + if (p1 < 0.33)/**The threshold of potentiometer P1 , the 0.33 value was obtained using Dr Evans code for the joystick and cool term*/ { y1 -= 2; y2 -= 2; @@ -64,7 +64,7 @@ } } - if (p1 > 0.66)//The threshold of potentiometer P2 , the 0.66 value was obtained using Dr Evans code for the joystick and cool term. + if (p1 > 0.66)/**The threshold of potentiometer P2 , the 0.66 value was obtained using Dr Evans code for the joystick and cool term*/ { y1 += 2; y2 += 2;