summaryrefslogtreecommitdiff
path: root/samples/dashboard_4884/LCD4884.h
diff options
context:
space:
mode:
Diffstat (limited to 'samples/dashboard_4884/LCD4884.h')
-rw-r--r--samples/dashboard_4884/LCD4884.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/samples/dashboard_4884/LCD4884.h b/samples/dashboard_4884/LCD4884.h
deleted file mode 100644
index 3145601..0000000
--- a/samples/dashboard_4884/LCD4884.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
-Modified by Lauren
-version 0.3
-
-Any suggestions are welcome.
-
-Editors : Lauren from DFRobot <Lauran.pan@gmail.com>
- Stanley Huang <stanleyhuangyc@gmail.com>
-Date : Feb. 11, 2012
-
-* Added LCD_putchar for basic console display
-* Have the back light under control.
-* Update the library and sketch to compatible with IDE V1.0 and earlier
-
-*/
-
-#ifndef LCD4884_h
-#define LCD4884_h
-
-#if defined(ARDUINO) && ARDUINO >= 100
-#include "Arduino.h"
-#else
-#include "WProgram.h"
-#endif
-
-#define SPI_SCK 2
-#define SPI_MOSI 3
-#define LCD_DC 4
-#define SPI_CS 5
-#define LCD_RST 6
-#define LCD_BL 7
-
-
-//display mode -- normal / highlight
-#define MENU_NORMAL 0
-#define MENU_HIGHLIGHT 1
-#define OFF 0
-#define ON 1
-#define FLAG_TITLE 1
-
-class LCD4884
-{
-public:
- LCD4884();
- void LCD_init(void);
- void backlight(unsigned char dat);
- void LCD_write_byte(unsigned char dat, unsigned char dat_type);
- void LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,unsigned char Pix_x,unsigned char Pix_y);
- void LCD_write_string(unsigned char X,unsigned char Y,char *s, char mode = MENU_NORMAL);
- void LCD_write_string(char *s, char mode = MENU_NORMAL);
- void LCD_write_chinese(unsigned char X, unsigned char Y,unsigned char *c,unsigned char ch_with,unsigned char num,unsigned char line,unsigned char row);
- void LCD_write_string_big ( unsigned char X,unsigned char Y, char *string, char mode = MENU_NORMAL);
- void LCD_write_char_big (unsigned char X,unsigned char Y, unsigned char ch, char mode = MENU_NORMAL);
- void LCD_write_char(unsigned char c, char mode = MENU_NORMAL);
- void LCD_set_XY(unsigned char X, unsigned char Y);
- void LCD_clear(void);
- void LCD_write_title(char* title);
- void LCD_putchar(char c);
- unsigned char x;
-private:
- char prev_char;
- char char_mode;
-};
-
-extern LCD4884 lcd;
-
-#endif //