Solution to the blocking task - do not expect this to work well however!

Fork of Task330_blocking by University of Plymouth - Stages 1, 2 and 3

Revision:
6:2050203fd22b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/demo-self-test.cpp	Wed Sep 18 10:49:18 2019 +0000
@@ -0,0 +1,21 @@
+#include "demo-self-test.hpp"
+
+void POST()
+{
+    puts("LEDs ON");
+    red_led    = 1;
+    yellow_led = 1;
+    green_led  = 1;
+    onboardLED = 1;
+    wait(0.5);
+    puts("LEDs OFF");
+    red_led    = 0;
+    yellow_led = 0;
+    green_led  = 0;
+    onboardLED = 0;
+    wait(0.5);
+    puts("Polling Switches");
+    printf("sw1: %d\r\n", (sw1 == 1));    
+    printf("sw2: %d\r\n", (sw2 == 1));
+    printf("Blue Button: %d\r\n", (button == 1));
+}
\ No newline at end of file