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 Skool_wkshp_lib2015 by
serial_lcd.h
00001 #ifndef SERIAL_LCD_H 00002 #define SERIAL_LCD_H 00003 00004 #include "mbed.h" 00005 00006 #define PCF8574_ADDR 0x4E 00007 #define ST7032I_ADDR 0x7C 00008 00009 #define FUNC_SET 0x28 00010 #define CLEAR_DISP 0x01 00011 #define RET_HOME 0x02 00012 #define ENTRY_MODE 0x06 // Increment; no Shift 00013 #define DISPLAY_ON_OFF 0x0F // Display ON; Cursor ON; Blink ON 00014 #define CG_ADDR 0x40 // add ACG5:ACG0 00015 #define DD_ADDR 0x80 // add ADD6:ADD0 00016 00017 #define BL_ON 0x08 00018 #define BL_OFF 0x00 00019 #define ENABLE 0x04 00020 #define DISABLE 0x00 00021 #define READ 0x02 00022 #define WRITE 0x00 00023 #define DATA 0x01 00024 #define INSTRUCTION 0x00 00025 00026 #define BL BL_ON 00027 00028 int init_ser_lcd(void); 00029 int write_ser_lcd(char data, bool mode); 00030 void write_ser_text(const char* text, uint32_t len); 00031 00032 #endif
Generated on Thu Jul 14 2022 17:13:24 by
1.7.2
