Minikombajn Pomiarowy
20
Main Page
Files
File List
Globals
All
Files
Functions
Variables
Macros
lcd132x64.h
Go to the documentation of this file.
1
/******************************************************************/
14
#define SCREEN_WIDTH 132
15
#define SCREEN_HEIGHT 64
16
#define PIXELS_PER_PAGE 8
17
18
#include<avr/pgmspace.h>
19
20
#define SPLC501C_DISPLAY_ON 0xAF
21
#define SPLC501C_DISPLAY_OFF 0xAE
22
23
#define SPLC501C_START_LINE 0x40
24
25
#define SPLC501C_PAGE_ADDRESS 0xB0
26
27
#define SPLC501C_COLUMN_ADDRESS_HI 0x10
28
#define SPLC501C_COLUMN_ADDRESS_LO 0x00
29
30
#define SPLC501C_ADC_NORMAL 0xA0
31
#define SPLC501C_ADC_REVERSE 0xA1
32
33
#define SPLC501C_DISPLAY_NORMAL 0xA6
34
#define SPLC501C_DISPLAY_REVERSE 0xA7
35
36
#define SPLC501C_DISPLAY_ALL_ON 0xA5
37
#define SPLC501C_DISPLAY_ALL_OFF 0xA4
38
39
#define SPLC501C_BIAS_19 0xA2
40
#define SPLC501C_BIAS_15 0xA3
41
42
#define SPLC501C_RMW_START 0xE0
43
#define SPLC501C_RMW_END 0xEE
44
45
#define SPLC501C_RESET 0xE2
46
47
#define SPLC501C_COM0 0xC0
48
#define SPLC501C_COM63 0xC8
49
50
#define SPLC501C_POWERON 0x2F
51
52
#define SPLC501C_VOLTAGE_RATIO 0x20
53
54
#define SPLC501C_VOLUME_MODE 0x81
55
#define SPLC501C_VOLUME_SET 0x00
56
57
#define SPLC501C_PAGE_BLINKING_MODE 0xD5
58
#define SPLC501C_PAGE_BLINKING_0 0x01
59
#define SPLC501C_PAGE_BLINKING_1 0x02
60
#define SPLC501C_PAGE_BLINKING_2 0x04
61
#define SPLC501C_PAGE_BLINKING_3 0x08
62
#define SPLC501C_PAGE_BLINKING_4 0x10
63
#define SPLC501C_PAGE_BLINKING_5 0x20
64
#define SPLC501C_PAGE_BLINKING_6 0x40
65
#define SPLC501C_PAGE_BLINKING_7 0x80
66
67
void
LCDOff
(
void
);
68
uint8_t
LCDBright
(int8_t step);
69
uint8_t
LCDContrast
(int8_t step);
70
void
LCDWriteData
(
unsigned
char
dataToWrite);
71
void
LCDGoTo
(
unsigned
char
,
unsigned
char
);
72
void
LCDWriteChar
(uint8_t charCode);
73
void
LCDWriteCharNeg
(uint8_t charCode);
74
//void LCDWriteString(char* string);
75
void
LCDText_p
(
const
char
*
string
);
76
void
LCDTextNeg_p
(
const
char
*
string
);
77
void
LCDInit
(
void
);
78
void
LCDClearScreen
(
void
);
79
void
lcd_String_neg(uint8_t val);
80
//void GLCD_Bitmap(char *, unsigned char, unsigned char, unsigned char, unsigned char);
81
Generated on Tue Feb 19 2013 21:18:48 for Minikombajn Pomiarowy by
1.8.1.2