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
- Committer:
- jack1930
- Date:
- 2021-02-03
- Revision:
- 1:774b96b00aed
- Parent:
- 0:92e4253d430a
- Child:
- 4:49654888d57b
File content as of revision 1:774b96b00aed:
#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:
void operator=(unsigned int wert);
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);
};