Jack Hansdampf / MFS_Display_HAL

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

Revision:
3:d5c27c45d24f
Parent:
2:bb43e9b5a54d
Child:
4:49654888d57b
--- a/MFS.cpp	Wed Feb 03 18:07:54 2021 +0000
+++ b/MFS.cpp	Thu Feb 04 08:42:25 2021 +0000
@@ -66,12 +66,12 @@
     }
     void MFS::siebensegment(uint8_t wert)
     {
-        dieSegmente=wert;
+        dieSegmente=~wert;
         send();
     }
     void MFS::siebensegment(uint8_t awert,uint8_t wert)
     {
-        dieSegmente=wert;
+        dieSegmente=~wert;
         dieAuswahl=awert;
         send();
     }
@@ -95,7 +95,7 @@
     
     void MFS::operator=(unsigned int wert)
     {
-        dieSegmente=wert&0xFF;
+        dieSegmente=(~wert)&0xFF;
         dieAuswahl=(wert/0x100);
         send();
     }
\ No newline at end of file