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.
Dependencies: MFS_Display_HAL LCD_i2c_GSOE HSAnalogIn_GSOE
vorlageBit.cpp
- Committer:
- lumppi
- Date:
- 2022-07-23
- Revision:
- 0:645e47a5b9db
File content as of revision 0:645e47a5b9db:
//mit if 1=aktivieren, if 0=deaktivieren
#if 0
#include "mbed.h"
#include "LCD.h"
DigitalOut myLed(PC_0);
DigitalIn mySwitch(PB_0);
lcd mylcd;
void init()
{
mylcd.clear();
mylcd.cursorpos(0);
mylcd.printf("Vorlage BIT");
mySwitch.mode(PullDown);
}
int main()
{
init();
while(1)
{
bool onOff = mySwitch;
myLed = onOff;
mylcd.cursorpos(0x40);
if(mySwitch ==true) mylcd.printf("myLed AN ");
else mylcd.printf("myLed AUS");
}
}
#endif