Michael Antonucci / Mbed 2 deprecated A3_1_Timer

Dependencies:   mbed

Revision:
2:4224d5ca4f2d
Parent:
1:3cadb8807520
diff -r 3cadb8807520 -r 4224d5ca4f2d main.cpp
--- a/main.cpp	Thu Oct 07 12:04:46 2021 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-//Base code for modification for Assignment 2.2
-//Blinks LED2 every 200ms using a single Timer object.
-//Created: S. Licht, 10/04/2020
-
-#include "mbed.h"
-
-Timer timerLED2;  //creat timer object
-DigitalOut LEDOut2(LED2);
-
-int main()
-{
-    timerLED2.start(); //start timer counting
-
-    while(1) {
-        if (timerLED2.read_ms()>=200) { //check to see if time has been exceeded
-            LEDOut2 = !LEDOut2;
-            timerLED2.reset();  //reset the timer back to zero
-        }  //if timer
-
-        //if you had other code that you wanted to execute faster,
-        //you could put it here!
-        
-    } //while
-}