Template project for University of York ELE00032C Lab 1

Files at this revision

API Documentation at this revision

Comitter:
ajp109
Date:
Tue Aug 25 11:00:34 2020 +0000
Child:
1:ee571cefc13b
Commit message:
Initial commit

Changed in this revision

.gitignore Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitignore	Tue Aug 25 11:00:34 2020 +0000
@@ -0,0 +1,4 @@
+.build
+.mbed
+projectfiles
+*.py*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Aug 25 11:00:34 2020 +0000
@@ -0,0 +1,20 @@
+
+#include "mbed.h"
+
+int main()
+{
+    // Initialise the digital pin LED1 as an output
+    DigitalOut led(LED1);
+
+    // Loop forever...
+    while (true) {
+        // Switch the LED on
+        led = true;
+        // Wait for 200ms
+        thread_sleep_for(200);
+        // Switch the LED off
+        led = false;
+        // Wait for 300ms
+        thread_sleep_for(300);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Aug 25 11:00:34 2020 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#cf4f12a123c05fcae83fc56d76442015cb8a39e9