Andy Pomfret
/
UoY-32C-lab3-exercise
Template project for University of York ELE00032C Lab 3
Diff: main.cpp
- Revision:
- 2:64d80449da6d
- Parent:
- 1:6923dfa9901e
- Child:
- 3:d230011f6c3b
--- 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);