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.
main.cpp
- Committer:
- friedrichalicia
- Date:
- 2021-07-14
- Revision:
- 0:16161e5455f6
File content as of revision 0:16161e5455f6:
/* 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;
}
}