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:4e110b1c53fc
- Child:
- 1:531072dae13b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Oct 12 15:41:17 2015 +0000
@@ -0,0 +1,21 @@
+/** Ledblink the other way
+ * Blink the green LED by switching the LED_GREEN (PTB19) pin
+ * between output and input mode. In output mode the pin will sink,
+ * while in the input mode it will be in the tristate (high impedance) mode.
+ *
+ * Platform: RDM-KL25Z board
+ */
+
+#include "mbed.h"
+
+DigitalInOut myled(LED_GREEN);
+
+int main() {
+ while(1) {
+ myled.output();
+ myled = 0;
+ wait(0.2);
+ myled.input();
+ wait(0.2);
+ }
+}