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
vorlageByte.cpp
- Committer:
- lumppi
- Date:
- 2022-07-23
- Revision:
- 0:645e47a5b9db
File content as of revision 0:645e47a5b9db:
//bibliotheken+programme von jörg veröffentlicht unter
//https://os.mbed.com/users/jack1930/code/?page=1
//mit if 1=aktivieren, if 0=deaktivieren
#if 1
#include "mbed.h"
#include "LCD.h"
lcd mylcd;
PortOut leds(PortC,0xFF);
PortIn dips(PortB,0xFF);
int wert;
void init()
{
mylcd.clear();
mylcd.cursorpos(0);
mylcd.printf("Vorlage BYTE");
dips.mode(PullDown);
}
int main()
{
init();
while(1)
{
wert = dips;
leds = wert;
mylcd.cursorpos(0x40);
mylcd.printf("dips = %3d",wert);
}
}
#endif