ELEC1620 / Mbed 2 deprecated ELEC1620_ExamTemplate_2019

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
el16ttb
Date:
Tue Apr 16 19:24:23 2019 +0000
Parent:
2:f56d6bd8aa25
Commit message:
Fix typos

Changed in this revision

exam.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/exam.cpp	Tue Mar 26 18:06:06 2019 +0000
+++ b/exam.cpp	Tue Apr 16 19:24:23 2019 +0000
@@ -6,7 +6,7 @@
 void Task1(TestAdmin &tester, PwmOut &r_led, DigitalIn &button_a){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -18,7 +18,7 @@
 void Task2(TestAdmin &tester, PwmOut &r_led, PwmOut &g_led, PwmOut &b_led, DigitalIn &button_a, DigitalIn &button_b, DigitalIn &button_c){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -31,20 +31,20 @@
 void Task3(TestAdmin &tester, PwmOut &b_led, DigitalIn &button_a, DigitalIn &button_b){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
 }
 
 // Task 4
-// Print the temperature measured with the temperature sensor as an integer over serial (using the following formula: 100 V - 50
+// Print the temperature measured with the temperature sensor as an integer over serial (using the following formula: 100 V - 50)
 // Print every value in a new line
 // (3 marks)
 void Task4(TestAdmin &tester, AnalogIn &temp){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -56,7 +56,7 @@
 void Task5(TestAdmin &tester, PwmOut &r_led, PwmOut &g_led, AnalogIn &ldr){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -69,7 +69,7 @@
 void Task6(TestAdmin &tester, PwmOut &r_led, PwmOut &g_led, PwmOut &b_led, AnalogIn &pot_0, AnalogIn &pot_1, AnalogIn &pot_2){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -82,7 +82,7 @@
 void Task7(TestAdmin &tester, PwmOut &r_led, DigitalIn &button_a){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -100,7 +100,7 @@
 void Task8(TestAdmin &tester, BusOut &leds){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -118,7 +118,7 @@
 void Task9(TestAdmin &tester, ShiftReg &shift){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }
@@ -130,7 +130,7 @@
 void Task10(TestAdmin &tester, ShiftReg &shift, AnalogIn &joy_v, AnalogIn &joy_h){
     // Code here that executed at the start of the task
   
-    while(tester.testRunning()){    // Run untill button D is pressed
+    while(tester.testRunning()){    // Run until button D is pressed
         // Code here that executed continously during the task
     
     }