Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 5:915bcac4e9b9
- Parent:
- 4:55a0509c4874
- Child:
- 6:3e50f2cf4366
--- a/main.cpp Tue Apr 16 09:48:37 2019 +0000
+++ b/main.cpp Tue Apr 16 10:17:21 2019 +0000
@@ -37,7 +37,10 @@
wait(1.0f/fps);
}
*/
+ float f;
while(1){
+ f= pad.get_mag();
+ printf("MAG %f \n",f);
ball.start(lcd);
draw();
wait(1.0f/fps);
@@ -52,7 +55,6 @@
bat.init(4,5);
ball.init(2,3);
//field.init();
-
lcd.setContrast(0.4);
lcd.normalMode(); // normal colour mode
lcd.setBrightness(0.5);