Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:c9d346de3a66
- Parent:
- 0:74eb154adcb3
- Child:
- 2:794ed187ffcd
--- a/main.cpp Mon Mar 18 09:31:04 2019 +0000
+++ b/main.cpp Mon Mar 25 09:27:55 2019 +0000
@@ -1,7 +1,24 @@
-/* ELEC2645 Embedded Systems Project School of Electronic & Electrical Engineering University of Leeds
- Name: Henri Rigby
- Username: henririgby98
- Student ID Number: 201198821
- Date: 18/03/2019
- */
-
\ No newline at end of file
+/* ELEC2645
+Embedded Systems Project
+School of Electronic & Electrical Engineering
+University of Leeds
+
+Name: Henri Rigby
+Username: henririgby98
+Student ID Number: 201198821
+Date: 18/03/2019
+ */
+
+#include "mbed.h"
+
+DigitalOut gpo(D0);
+DigitalOut led(LED_RED);
+
+int main()
+{
+ while (true) {
+ gpo = !gpo; // toggle pin
+ led = !led; // toggle led
+ wait(0.2f);
+ }
+}
\ No newline at end of file