root / branches / autonomous_recharging / code / projects / colonet / utilities / robot_wireless_relay / oled.h @ 1390
History | View | Annotate | Download (1.78 KB)
1 |
#ifndef _OLED_H_
|
---|---|
2 |
#define _OLED_H_
|
3 |
|
4 |
#ifdef FFPP
|
5 |
|
6 |
#define C_BLUE 0x001f |
7 |
#define C_GREEN 0x07e0 |
8 |
#define C_RED 0xf800 |
9 |
|
10 |
// inialize OLED and SPI
|
11 |
void OLED_init(void); |
12 |
|
13 |
// reset Controller
|
14 |
void Reset_SSD1339(void); |
15 |
|
16 |
// write command or data
|
17 |
void write_c(unsigned char out_command); |
18 |
void write_d(unsigned char out_data); |
19 |
|
20 |
// these write data to the OLED on 8 bit data bus, depends on MCU
|
21 |
void LCD_out(unsigned char cmd); |
22 |
|
23 |
// these functions set / clear pins for OLED control lines. they accecpt a 0 or 1
|
24 |
//void RD(char stat);
|
25 |
//void RW(char stat);
|
26 |
void DC(char stat); |
27 |
void RES(char stat); |
28 |
void CS(char stat); |
29 |
|
30 |
// a stupid delay
|
31 |
//void delay_ms(int count);
|
32 |
|
33 |
// LPC 2138 MCU initialization
|
34 |
//void Initialize(void);
|
35 |
//void feed(void);
|
36 |
|
37 |
void drawcircle(char col, char row, char radius, int lcolor, int fcolor); |
38 |
void drawrect(char scol, char srow, char ecol, char erow, int lcolor, |
39 |
int fcolor);
|
40 |
void drawline(char scol, char srow, char ecol, char erow, int lcolor); |
41 |
void drawcopy(char scol, char srow, char ecol, char erow, char ncol, |
42 |
char nrow);
|
43 |
void drawfill(char fill); |
44 |
void drawclearwindow(char scol, char srow, char ecol, char erow); |
45 |
inline void drawclear(void); |
46 |
void drawscroll(char hoff, char srow, char rows, char speed); |
47 |
inline void drawscrollstart(void); |
48 |
inline void drawscrollstop(void); |
49 |
void drawIR(void); |
50 |
|
51 |
void crazycircle (void); |
52 |
void crazyrect (void); |
53 |
void OLEDtest (void); |
54 |
void OLED_init(void); |
55 |
void Reset_SSD1339(void); |
56 |
|
57 |
void write_c(unsigned char out_command); |
58 |
void write_d(unsigned char out_data); |
59 |
|
60 |
// these functions set / clear pins for LCD control lines. they accecpt a 0 or 1
|
61 |
void DC(char stat); |
62 |
|
63 |
void RES(char stat); |
64 |
void CS(char stat); |
65 |
|
66 |
// send to the LCD
|
67 |
void LCD_out(unsigned char cmd); |
68 |
|
69 |
#endif
|
70 |
#endif
|