12864 GLCD

Dependencies:   mbed GLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers myLCD.h Source File

myLCD.h

00001 #ifndef MYLCD_H
00002 #define MYLCD_H
00003 
00004 #include "mbed.h"
00005 
00006 class myLCD {
00007     public:
00008         myLCD(PinName _DI, PinName _RW, PinName _EN, PinName _CS1, PinName _CS2, BusInOut *BUSLCD);
00009         void pulse_en();
00010         void lcd_on();
00011         void write_byte(unsigned short byte);
00012         short read_byte(unsigned short col, unsigned short page);
00013         void set_col(unsigned short col); //0-127 sets col
00014         void set_row(unsigned short row); //0-7 sets page
00015         void set_xy(unsigned short col, unsigned short page);
00016         void clear();
00017         void draw_point(unsigned short x, unsigned short y, bool color); //true prints white, xy coordinates in 0-127, 0-63
00018         
00019     private:
00020         BusInOut*    LCD_PORT;
00021         DigitalOut   DI;
00022         DigitalOut   RW;
00023         DigitalOut   EN;
00024         DigitalOut   CS1;
00025         DigitalOut   CS2;
00026 };
00027 #endif