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:16161e5455f6
diff -r 000000000000 -r 16161e5455f6 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jul 14 14:14:59 2021 +0000
@@ -0,0 +1,42 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2019 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"
+#include "platform/mbed_thread.h"
+
+
+DigitalInOut se1InOut(PB_6);
+DigitalIn se1In(PB_6);
+
+DigitalInOut se2InOut(PB_7);
+DigitalIn se2In(PB_7);
+
+DigitalIn eingabeTaste(PA_1);
+DigitalIn eingabeTaste2(PA_10);
+DigitalOut testSE1(PC_0);
+DigitalOut testSE2(PC_1);
+
+int main()
+{
+se1InOut.output();
+se1InOut.mode(OpenDrain);
+se1In.mode(PullUp);
+
+
+se2InOut.output();
+se2InOut.mode(OpenDrain);
+se2In.mode(PullUp);
+
+eingabeTaste.mode(PullDown);
+eingabeTaste2.mode(PullDown);
+
+ while(true)
+ {
+ se1InOut = eingabeTaste;
+ se2InOut = eingabeTaste2;
+ testSE1 = se1In;
+ testSE2 = se2In;
+ }
+}
\ No newline at end of file