609
/* * Serial-LCD.h * Author: Marwen Maghrebi */ #ifndef INC_SERIAL_LCD_H_ #define INC_SERIAL_LCD_H_ #include "main.h" #include <stdio.h> #include <string.h> extern UART_HandleTypeDef huart1; // Function prototypes void Delay_10ms(void); void Delay_500ms(void); void LCD_UART_Transmit(uint8_t *pData, uint16_t Size); void LCD_sendCommand(uint8_t command); void LCD_sendData(uint8_t data); void LCD_setCursor(uint8_t row, uint8_t col); void LCD_scroll_left(uint8_t num_chars); void LCD_scroll_right(uint8_t num_chars); void LCD_home(); void LCD_blinking_cursor_ON(); void LCD_blinking_cursor_OFF(); void LCD_clearScreen(void); void Move_cursor_left(uint8_t num_chars); void Move_cursor_right(uint8_t num_chars); void LCD_underline_cursor_ON(); void LCD_Blank(); void LCD_print(const char *str); void LCD_printInt(int value); void LCD_printFloat(float value, int decimalPlaces); #endif /* INC_SERIAL_LCD_H_ */