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 FXOS8700CQ mbed-rtos
Diff: Exam/Exam.cpp
- Revision:
- 13:02002658e718
- Parent:
- 11:5a6b9dffd78a
- Child:
- 22:f8f36e88b2ca
--- a/Exam/Exam.cpp Mon Apr 15 01:38:53 2019 +0000
+++ b/Exam/Exam.cpp Wed Apr 17 17:53:56 2019 +0000
@@ -60,6 +60,7 @@
//music.gym(pad, !finished);
switch (currentPage) {
case PAGE_1:
+ pad.init_input();
lcd.clear();
lcd.printString("Question 1",0,0);
lcd.printString("What is the",0,1);
@@ -73,6 +74,7 @@
wait(1.0f/fps);
break;
case PAGE_2:
+ pad.init_input();
lcd.clear();
lcd.printString("formed by a",0,0);
lcd.printString("50k resistor",0,1);
@@ -86,6 +88,7 @@
wait(1.0f/fps);
break;
case PAGE_3:
+ pad.init_input();
lcd.clear();
if (point > 0){
lcd.printString("A. 26.5kHz",0,2);
@@ -114,6 +117,7 @@
wait(1.0f/fps);
break;
case PAGE_4:
+ pad.init_input();
lcd.clear();
lcd.printString("Question 2",0,0);
lcd.printString("What is the",0,1);
@@ -127,6 +131,7 @@
wait(1.0f/fps);
break;
case PAGE_5:
+ pad.init_input();
lcd.clear();
lcd.printString("with respect",0,0);
lcd.printString("to x for ",0,1);
@@ -138,6 +143,7 @@
wait(1.0f/fps);
break;
case PAGE_6:
+ pad.init_input();
lcd.clear();
if(point > 1) {
lcd.printString("A. 0.1354",0,2);
@@ -166,6 +172,7 @@
wait(1.0f/fps);
break;
case PAGE_7:
+ pad.init_input();
lcd.clear();
lcd.printString("Question 3",0,0);
lcd.printString("What is the",0,1);
@@ -179,6 +186,7 @@
wait(1.0f/fps);
break;
case PAGE_8:
+ pad.init_input();
lcd.clear();
lcd.printString("with respect",0,0);
lcd.printString("to x?",0,1);
@@ -189,6 +197,7 @@
wait(1.0f/fps);
break;
case PAGE_9:
+ pad.init_input();
lcd.clear();
if(point > 2) {
lcd.printString("A. -ln|cos(x)|",0,2);
@@ -217,6 +226,7 @@
wait(1.0f/fps);
break;
case PAGE_10:
+ pad.init_input();
lcd.clear();
lcd.printString("EXAM",0,0);
lcd.printString("COMPLETE",0,1);
@@ -451,6 +461,7 @@
//music.gym(pad, !finished);
switch (currentPage) {
case PAGE_1:
+ pad.init_input();
lcd.clear();
if (point > 0){
lcd.printString("Question 1",0,0);
@@ -470,6 +481,7 @@
wait(1.0f/fps);
break;
case PAGE_2:
+ pad.init_input();
lcd.clear();
if (point > 0){
lcd.printString("A. ",0,2);
@@ -498,6 +510,7 @@
wait(1.0f/fps);
break;
case PAGE_3:
+ pad.init_input();
lcd.clear();
if (point > 1){
lcd.printString("Question 2",0,0);
@@ -517,6 +530,7 @@
wait(1.0f/fps);
break;
case PAGE_4:
+ pad.init_input();
lcd.clear();
if (point > 1){
lcd.printString("A. ",0,2);
@@ -545,6 +559,7 @@
wait(1.0f/fps);
break;
case PAGE_5:
+ pad.init_input();
lcd.clear();
if (point > 2){
lcd.printString("Question 3",0,0);
@@ -564,6 +579,7 @@
wait(1.0f/fps);
break;
case PAGE_6:
+ pad.init_input();
lcd.clear();
if (point > 2){
lcd.printString("A. ",0,2);
@@ -592,6 +608,7 @@
wait(1.0f/fps);
break;
case PAGE_7:
+ pad.init_input();
lcd.clear();
lcd.printString("EXAM",0,0);
lcd.printString("COMPLETE",0,1);