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.
Diff: main.cpp
- Branch:
- TestBranch
- Revision:
- 5:9ca5e2a69411
- Parent:
- 4:de5cf6b1e96b
diff -r de5cf6b1e96b -r 9ca5e2a69411 main.cpp
--- a/main.cpp Sun May 13 20:03:40 2018 +0000
+++ b/main.cpp Wed Nov 07 09:40:14 2018 +0000
@@ -1,16 +1,15 @@
-/* Copyright (c) 2018 Aconno. All Rights Reserved.
- *
- * Licensees are granted free, non-transferable use of the information. NO
- * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
- * the file.
- *
- */
-
#include "mbed.h"
-DigitalOut led(p23);
+#define RED_LED_PIN (p12)
+
+DigitalOut redLed(RED_LED_PIN);
-int main(){
- led = !led;
- wait_ms(250);
-}
\ No newline at end of file
+int main()
+{
+ while(true)
+ {
+ redLed = !redLed;
+ wait_ms(500);
+ }
+ }
+
\ No newline at end of file