Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SSD1308_128x64_I2C by
Diff: SSD1308.h
- Revision:
- 1:b7e8f5139026
- Parent:
- 0:300d08d9b058
- Child:
- 2:16c84a134393
--- a/SSD1308.h Wed Jul 18 14:10:57 2012 +0000
+++ b/SSD1308.h Sat Jul 21 12:49:33 2012 +0000
@@ -1,8 +1,8 @@
-// SSD1308 I2C device class header file
-// Based on Solomon Systech SSD1308 datasheet, rev. 1, 10/2008
-// The SSD1308 is used for example in the Seeed 128x64 OLED Display
-// http://www.seeedstudio.com/depot/grove-oled-display-12864-p-781.html?cPath=163_167
-//
+/** @file SSD1308 I2C device class header file
+ * Based on Solomon Systech SSD1308 datasheet, rev. 1, 10/2008
+ * The SSD1308 is used for example in the Seeed 128x64 OLED Display
+ * http://www.seeedstudio.com/depot/grove-oled-display-12864-p-781.html?cPath=163_167
+ */
// The original code by Andrew Schamp is using (and has been submitted as a part of) Jeff Rowberg's I2Cdevlib library,
// which should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
// Some parts also mashed up from Graphic Library for driving monochrome displays based on the PCD8544,
@@ -186,6 +186,9 @@
uint8_t start_page=0, uint8_t end_page=MAX_PAGE,
uint8_t start_col=0, uint8_t end_col=MAX_COL);
+
+ void writeProgressBar(uint8_t page, uint8_t col, int percentage);
+
//void setXY(uint8_t, uint8_t y);
// Select inverted or normal text
@@ -242,7 +245,7 @@
void setEntireDisplayRAM();
void setEntireDisplay(bool on);
- // setMultiplexRatio
+ // void setMultiplexRatio();
void setInternalIref();
void setExternalIref();
@@ -306,10 +309,9 @@
// Init the configuration registers in accordance with the datasheet
void _init();
- I2C _i2c; // I2C bus reference
-// uint8_t m_devAddr; // contains the I2C address of the device
- uint8_t _readOpcode;
- uint8_t _writeOpcode;
+ I2C _i2c; // I2C bus reference
+ uint8_t _readOpcode; // contains the I2C address of the device
+ uint8_t _writeOpcode; // contains the I2C address of the device
bool _inverted; // inverted or normal text
};
