![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Template project for University of York ELE00032C Lab 3 tasks
Diff: main.cpp
- Revision:
- 2:64d80449da6d
- Parent:
- 1:6923dfa9901e
--- 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);