This a Library that can be used to make ping pong the Nokia Lcd 5110.
Diff: Paddle.cpp
- Revision:
- 1:4893a8f7147f
- Parent:
- 0:ef8d5a4464a3
--- 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;