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.
Fork of Muscle_Controlled_Servo by
Diff: LCD.h
- Revision:
- 8:462ce856429b
- Parent:
- 5:11489c0bd020
--- a/LCD.h Fri Apr 20 17:29:05 2018 +0000
+++ b/LCD.h Sun Apr 29 20:12:31 2018 +0000
@@ -5,16 +5,22 @@
//////////////////////////
///////Definitions////////
+ #define TEXT 1<<8
+ #define COMMAND 0<<8
+ #define READ 1<<9
+ #define WRITE 0<<9
+ #define LINE1 0x80
+ #define LINE2 0xC0
+
+ #define LCD_CLR() cmdLCD(0x01)
//////////////////////////
////////Functions/////////
void LCD_INIT(void);
-
- int32_t bar_graph(uint8_t level); //Display a bar graph on the lcd 2nd line scale 0 to 15
-
- int32_t lcd_cls(void); //LCD Functions here, Clear Screen, Locate and Display String
- int32_t lcd_locate(uint8_t line, uint8_t column); //Line Max is 2, Column max is 16
- int32_t lcd_display(char* str); //String str length maximum is 16
+ void writeToLCD(char* str, int line, int pos);
+ void putLCD(unsigned char put);
+ unsigned int findSpace(char* str);
+ void cmdLCD(unsigned char cmd);
//////////////////////////
#endif
