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:2005b306fab9
diff -r 000000000000 -r 2005b306fab9 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Oct 30 16:50:25 2020 +0000
@@ -0,0 +1,40 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2019 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"
+
+PortOut zustand(PortC,0x80);
+PortOut anzeige(PortC,0x7F);
+#define Eingang 0x00
+#define Halt 0x80
+
+InterruptIn res(PA_1);
+InterruptIn DR(PA_6);
+
+int anz=0;
+
+void zaehlen()
+{
+//Hier Ihr Code
+}
+
+void abfahren()
+{
+//Hier Ihr Code
+}
+
+int main()
+{
+ DR.mode(PullDown);
+ DR.rise(&zaehlen);
+ res.mode(PullDown);
+ res.rise(&abfahren);
+ zustand=Eingang;
+ anzeige=1;
+ while(true)
+ {
+
+ }
+}
\ No newline at end of file