Jack Hansdampf / MFS_Display_HAL

Dependents:   MFS_ADC MFS-7_Segment-Interrupt MFS_USART_Test_HAL MFS_02-Luftschlange ... more

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