Iain Veitch / Mbed 2 deprecated ME21001_Lab02_Exercise_06

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
iveitch
Date:
Fri Sep 28 09:50:03 2018 +0000
Commit message:
exercise 6

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 28 09:50:03 2018 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut speaker(p26);
+
+int main() {
+    while(1) {
+        speaker = 1;
+        wait(0.001);
+        speaker = 0;
+        wait(0.001);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 28 09:50:03 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file