EA Dog LCD screen library

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcd.h Source File

lcd.h

00001 #ifndef lcd_h
00002 #define lcd_h
00003 
00004 #include "mbed.h"
00005 
00006 class EADogLcd {
00007 public:
00008     EADogLcd(PinName RS_LCD,PinName SCK,PinName MOSI,PinName CS);
00009     void init_LCD(void);
00010     void writeStr_LCD(char c[], char ligne, char colonne);
00011     void write_LCD(char c);
00012 private:
00013     void init_SPI(void);
00014     void writeCmd_LCD(char c);
00015     void setPosition(char ligne, char colonne);
00016     SPI spi; // mosi, miso, sclk
00017     DigitalOut CS;
00018     DigitalOut RS_LCD;
00019 };
00020 
00021 #endif