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
MFS.h
00001 //#include "stm32f4xx_hal.h" 00002 #include "mbed.h" 00003 00004 #define USART_TX_Pin GPIO_PIN_2 00005 #define USART_TX_GPIO_Port GPIOA 00006 #define USART_RX_Pin GPIO_PIN_3 00007 #define USART_RX_GPIO_Port GPIOA 00008 #define beep_Pin GPIO_PIN_3 00009 #define beep_GPIO_Port GPIOB 00010 #define latch_Pin GPIO_PIN_5 00011 #define latch_GPIO_Port GPIOB 00012 00013 #ifndef GPIO_SPEED_FREQ_VERY_HIGH 00014 #define GPIO_SPEED_FREQ_VERY_HIGH GPIO_SPEED_FREQ_HIGH 00015 #endif 00016 00017 #ifndef GPIO_AF7_USART1 00018 #define GPIO_AF7_USART1 1 00019 #endif 00020 00021 class MFS 00022 { 00023 private: 00024 uint8_t dieAuswahl=0; 00025 uint8_t dieSegmente=0xFF; 00026 char seg7[10]={0xFC,0x60,0xDA, 0xF2, 0x66, 0xB6, 0xBE, 0xE0, 0xFE, 0xF6}; 00027 USART_HandleTypeDef husart1; 00028 public: 00029 void operator=(unsigned int wert); 00030 operator int(void); 00031 MFS(void); 00032 void siebensegment(uint8_t wert); 00033 void siebensegment(uint8_t awert,uint8_t wert); 00034 void bcd(int wert); 00035 void bcd(uint8_t awert, int wert); 00036 void auswahl(uint8_t wert); 00037 private: 00038 void send(void); 00039 };
Generated on Sat Jul 23 2022 13:43:19 by
1.7.2