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
- Revision:
- 0:5ee0fb58a1c8
- Child:
- 1:d78c639f6b65
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Mar 16 20:55:36 2019 -0500
@@ -0,0 +1,16 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2019 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"
+
+#define WAIT_TIME 500 //msec
+
+DigitalOut led1(LED1);
+
+int main()
+{
+ led1 = !led1;
+ wait_ms( WAIT_TIME );
+}