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:
- 9:b272864b8355
- Parent:
- 5:e6cb6fda5b37
- Child:
- 10:7ba63530dc04
--- a/main.cpp	Tue Apr 23 16:08:23 2019 +0000
+++ b/main.cpp	Mon Apr 29 13:46:45 2019 +0000
@@ -2,6 +2,8 @@
 #include "Gamepad.h"
 #include "N5110.h"
 #include "Game.h"
+#include "mC.h"
+
 
 struct joystick_val {
     Direction dir;
@@ -11,6 +13,7 @@
 Game game;
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
 Gamepad pad;
+mC col;
 
 void init();
 void inputs(joystick_val input);
@@ -18,6 +21,10 @@
 void start_screen();
 
 int main(){
+    //
+    lcd.setBrightness(1.0);
+    lcd.setContrast(0.4);
+    //
     int fps = 6;
     init();
     start_screen(); 
@@ -27,7 +34,7 @@
     while (1) {
         render();
         game.dirmag(pad);
-        game.movement(pad);
+        game.movement(pad, lcd, col);
         wait(1.0f/fps);
     }