36 #include "altera_avalon_lcd_16207_regs.h"
37 #include "../INC/lcdDOGM162.h"
40 static const uint8_t initCodes[] = {
56 for (j = 0; j <
sizeof(initCodes) /
sizeof(initCodes[0]); j++) {
57 IOWR_ALTERA_AVALON_LCD_16207_COMMAND(lcdBase, initCodes[j]);
58 for (i = 0; i < 50000; i++){
67 for (i = 0; i < 10000; ++i){
void DOGM162lcd_setCursorMode(uint32_t lcdBase, int32_t cursorMode)
function changes cursor mode
#define DDRAM_INC_SHIFT0
Entry Mode Set: Increment DDRAM-Addr, ShiftEntireDisplay off.
#define DISPLAY1_CURSOR1_POS0
Display Set: Display on, Cursor on, Cursor Pos off.
#define BIAS1_2LINES2
Bias Set: Bias = 1/5, 2 lines.
#define CONTRAST2
Contrast Set: Contrast = 2.
#define DATA8_LINES2_TABLE0
Function Set: 8 bit data, 2 lines, instruction table 0.
#define DATA8_LINES2_TABLE1
Function Set: 8 bit data, 2 lines, instruction table 1.
#define FOLLOWER1_RAB6
Follower Control: Follower on, Rab = 6.
#define DISPLAY_CLEAR
Display Clear.
#define ICON0_BOOSTER1_CONTRAST_C4_0_C5_1
Power Control: Icon Display off, Booster on, Internal Contrast C5 off, C4 on.
void DOGM162lcd_init(uint32_t lcdBase)
Initialization function of LCD DOGM162B-A.