First laboratory uses each of the five routines with your modifications. These routines illustrate digital output, PWM output, and Analog input and output.

Revision:
66:0a43d8aeeb76
Parent:
29:0b58d21e87d6
Child:
67:9015fa015c73
diff -r caf630d9c605 -r 0a43d8aeeb76 main.cpp
--- a/main.cpp	Wed May 02 06:30:02 2018 +0100
+++ b/main.cpp	Tue Jun 26 17:52:09 2018 +0000
@@ -6,7 +6,9 @@
 int main() {
     while (true) {
         led1 = !led1;
-        wait(0.5);
+        wait(0.02);
+        led1 = !led1;
+        wait(0.02);
     }
 }