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.
Dependents: MFS_ADC MFS-7_Segment-Interrupt MFS_USART_Test_HAL MFS_02-Luftschlange ... more
Diff: MFS.cpp
- Revision:
- 2:bb43e9b5a54d
- Parent:
- 1:774b96b00aed
- Child:
- 3:d5c27c45d24f
--- a/MFS.cpp Wed Feb 03 16:34:01 2021 +0000
+++ b/MFS.cpp Wed Feb 03 18:07:54 2021 +0000
@@ -72,7 +72,7 @@
void MFS::siebensegment(uint8_t awert,uint8_t wert)
{
dieSegmente=wert;
- dieAuswahl=awert<<4;
+ dieAuswahl=awert;
send();
}
void MFS::bcd(int wert)
@@ -84,18 +84,18 @@
void MFS::bcd(uint8_t awert, int wert)
{
dieSegmente=seg7[wert];
- dieAuswahl=awert<<4;
+ dieAuswahl=awert;
send();
}
void MFS::auswahl(uint8_t wert)
{
- dieAuswahl=wert<<4;
+ dieAuswahl=wert;
send();
}
void MFS::operator=(unsigned int wert)
{
dieSegmente=wert&0xFF;
- dieAuswahl=(wert/0x100)<<4;
+ dieAuswahl=(wert/0x100);
send();
}
\ No newline at end of file