A bicycle direction indicator controlled by the button or Android APP.
Besides, use a buzzer to play music when the indicator is on.
- MPLAB IDE v5(XC8 compiler)
- Write in C language.
SPI
signed char WriteSPI(unsigned char);
max7219
void init_MAX7219(void);
void MAX7219_1Unit(unsigned char , unsigned char);
dot_matrix
void Draw(unsigned short *, int);
void TurnRight(void);
void TurnLeft(void);
void Close(void);
void Stop(int)
void TurnOff()
sound
void delay_ms(unsigned int milliseconds);
void PWM1_Init(long desired_frequency);
int PWM_Max_Duty();
void PWM1_Duty(unsigned int duty);
void PWM1_Mode_On();
void PWM1_Start();
void PWM1_Stop();
void playTone();
hc-05
void HC_05_Init();
void receiveMsg();
uart
void USART_Init(long);
char USART_ReceiveChar(void);
char USART_ReceiveChar_RCREG(void);
dot_matrix
void External_Interrupt_Init();