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.
Revision 0:0da78fe0a0de, committed 2020-01-15
- Comitter:
- besam
- Date:
- Wed Jan 15 00:44:13 2020 +0000
- Commit message:
- Letzte Version
Changed in this revision
| Mbed_Dig_IN2.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/Mbed_Dig_IN2.cpp Wed Jan 15 00:44:13 2020 +0000
@@ -0,0 +1,15 @@
+//#define BUTTON1 p14 // push joystick pin
+//#define BUTTON1 A1 // Taster A1 bei online Simulator verwenden
+// Flash an LED while a DigitalIn is true
+#include "mbed.h"
+DigitalIn enable(BUTTON1);
+DigitalOut led(LED1);
+
+int main() {
+ while(1) {
+ if(enable) {
+ led = !led;
+ }
+ wait(0.25);
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jan 15 00:44:13 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file