brewpanel/slcd.c

changeset 426
e54611453d29
parent 415
d9b7e0705f56
child 427
e8e548922e31
equal deleted inserted replaced
425:c51265b518ce 426:e54611453d29
29 #include "sdlgui.h" 29 #include "sdlgui.h"
30 30
31 31
32 #ifdef HAVE_SDL_SDL_H 32 #ifdef HAVE_SDL_SDL_H
33 33
34 // HD44780U Commands
35
36 //#define SLCD_CLEAR 0x01
37 //#define SLCD_HOME 0x02
38 //#define SLCD_ENTRY 0x04
39 //#define SLCD_CTRL 0x08
40 //#define SLCD_CDSHIFT 0x10
41 //#define SLCD_FUNC 0x20
42 //#define SLCD_CGRAM 0x40
43 //#define SLCD_DGRAM 0x80
44
45 // // Bits in the entry register
46 //
47 // #define LCD_ENTRY_SH 0x01
48 // #define LCD_ENTRY_ID 0x02
49 34
50 // Bits in the control register 35 // Bits in the control register
51 #define SLCD_BLINK_CTRL 0x01 36 #define SLCD_BLINK_CTRL 0x01
52 #define SLCD_CURSOR_CTRL 0x02 37 #define SLCD_CURSOR_CTRL 0x02
53 #define SLCD_DISPLAY_CTRL 0x04 38 #define SLCD_DISPLAY_CTRL 0x04

mercurial