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.h
- Revision:
- 0:92e4253d430a
- Child:
- 1:774b96b00aed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/MFS.h Wed Feb 03 16:22:30 2021 +0000
@@ -0,0 +1,29 @@
+#include "stm32l1xx_hal.h"
+#include "mbed.h"
+
+#define USART_TX_Pin GPIO_PIN_2
+#define USART_TX_GPIO_Port GPIOA
+#define USART_RX_Pin GPIO_PIN_3
+#define USART_RX_GPIO_Port GPIOA
+#define beep_Pin GPIO_PIN_3
+#define beep_GPIO_Port GPIOB
+#define latch_Pin GPIO_PIN_5
+#define latch_GPIO_Port GPIOB
+
+class MFS
+{
+ private:
+ uint8_t dieAuswahl=0;
+ uint8_t dieSegmente=0xFF;
+ char seg7[10]={0x03,0x9F,0x25, 0x0D, 0x99, 0x49, 0x41, 0x1F, 0x01, 0x09};
+ USART_HandleTypeDef husart1;
+ public:
+ MFS(void);
+ void siebensegment(uint8_t wert);
+ void siebensegment(uint8_t awert,uint8_t wert);
+ void bcd(int wert);
+ void bcd(uint8_t awert, int wert);
+ void auswahl(uint8_t wert);
+ private:
+ void send(void);
+};
\ No newline at end of file