Roqyun KO / Mbed 2 deprecated MeringueCitron

Dependencies:   mbed DHT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ADA326.h Source File

ADA326.h

00001 /**
00002 Author : Roqyun KO
00003 Electronics / Computer Science - Embedded System (EISE)
00004 EISE 4 - Industrial Project 1.
00005 Polytech Paris Sorbonne 
00006 
00007 Version I2C
00008 
00009 Source of reference : SSD1306 Adafruit Arduino Library.
00010 MBED adapted version.
00011 **/
00012 #ifndef _CITRON_MERANGUE_ADA326_H
00013 #define _CITRON_MERANGUE_ADA326_H
00014 
00015 #define _ADA326_VER_I2C_
00016 //#define _ADA326_VER_SPI_
00017 #include "mbed.h"
00018 #include "LCDGraphics.h"
00019 
00020 
00021 #define MAX_PAGE 8 //64 / 8 = 8 pages
00022 #define MAX_SEG 128
00023 
00024 class Ada326 : public LCDGraphics
00025 {
00026     public :
00027     void display_on();
00028     void display_off();
00029     Ada326(); // Constructor
00030     void initialize();
00031     void display();
00032     void clear(bool show = false);
00033     uint16_t getWidth();
00034     uint16_t getHeight();
00035     void serial_display();
00036     private :
00037     //uint8_t screen[MAX_SEG][MAX_PAGE];
00038     void ssd1306_command(uint8_t cmd);
00039     void ssd1306_data(uint8_t cmd);
00040         
00041     protected :
00042     
00043 };
00044 #endif