Template project for University of York ELE00032C Lab 3

Dependencies:   UoY-serial

Files at this revision

API Documentation at this revision

Comitter:
ajp109
Date:
Tue Jan 12 15:24:52 2021 +0000
Parent:
1:6923dfa9901e
Child:
3:d230011f6c3b
Commit message:
Initial commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jan 11 14:21:49 2021 +0000
+++ b/main.cpp	Tue Jan 12 15:24:52 2021 +0000
@@ -1,9 +1,17 @@
 #include "mbed.h"
 
+void test() {
+    int count = 3;
+    printf("In test(), count = %d\r\n", count);
+}
+
 int main()
 {
+    int count = 5;
     
-    // Your code should go here
+    test();
+    
+    printf("In main(), count = %d\r\n", count);
     
     // Do nothing, forever...
     while (true);