Jack Hansdampf / MFS_Display_HAL

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

Files at this revision

API Documentation at this revision

Comitter:
jack1930
Date:
Tue Mar 02 13:11:25 2021 +0000
Parent:
4:49654888d57b
Child:
6:c7907f21fe02
Commit message:
Operator int

Changed in this revision

MFS.cpp Show annotated file Show diff for this revision Revisions of this file
MFS.h Show annotated file Show diff for this revision Revisions of this file
--- a/MFS.cpp	Thu Feb 04 12:55:05 2021 +0000
+++ b/MFS.cpp	Tue Mar 02 13:11:25 2021 +0000
@@ -98,4 +98,9 @@
         dieSegmente=(~wert)&0xFF;
         dieAuswahl=(wert/0x100);
         send();
+    }
+    
+    MFS::operator int(void)
+    {
+        return dieAuswahl*0x100+dieSegmente;
     }
\ No newline at end of file
--- a/MFS.h	Thu Feb 04 12:55:05 2021 +0000
+++ b/MFS.h	Tue Mar 02 13:11:25 2021 +0000
@@ -19,6 +19,7 @@
     USART_HandleTypeDef husart1;
     public:
     void operator=(unsigned int wert);
+    operator int(void);
     MFS(void);
     void siebensegment(uint8_t wert);
     void siebensegment(uint8_t awert,uint8_t wert);