ZIYI CHEN ml17z4c 201214999

Dependencies:   mbed

Revision:
6:13c43182a848
Parent:
5:f1a193bb84a2
Child:
7:8b6f175fcb0e
--- a/main.cpp	Thu Apr 25 03:13:24 2019 +0000
+++ b/main.cpp	Thu Apr 25 03:28:52 2019 +0000
@@ -10,7 +10,7 @@
 
 #include "mbed.h"
 #include "N5110.h"
-#include "Snake_menu.h"
+//#include "Snake_menu.h"
 
 #include "Gamepad.h"
 
@@ -24,6 +24,7 @@
 
 ///////////// prototypes ///////////////
 void init();
+
 //void update_game(UserInput input);
 void render();
 void welcome();
@@ -32,7 +33,7 @@
 int main()
 {
 
-    int fps = 8;  // frames per second
+  //  int fps = 8;  // frames per second
 
     init();     // initialise and then display welcome screen...
     welcome();  // waiting for the user to start
@@ -46,6 +47,7 @@
 {
     //initialise LCD and Gamepad 
     lcd.init();
+    lcd.setContrast(0.4);
     pad.init();
 }