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.
Dependencies: SSD1308_128x64_I2C
Dependents: weather_station_proj weather_station_project weather_station_proj_v1_2
Fork of SSD1306_128x64_I2C by
Revision 3:05989d252f62, committed 2018-07-01
- Comitter:
- daniel_davvid
- Date:
- Sun Jul 01 11:59:16 2018 +0000
- Parent:
- 2:46dcbaa430f4
- Commit message:
- inverted screen
Changed in this revision
| SSD1306.h | Show annotated file Show diff for this revision Revisions of this file |
| SSD1308_128x64_I2C.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/SSD1306.h Sat Aug 06 08:20:09 2016 +0000
+++ b/SSD1306.h Sun Jul 01 11:59:16 2018 +0000
@@ -5,12 +5,12 @@
class SSD1306 : public SSD1308 {
public:
- SSD1306(I2C &i2c, uint8_t address) : SSD1308(i2c,address) {
+ SSD1306(I2C *i2c, uint8_t address) : SSD1308(i2c,address) {
char databytes[4] = {COMMAND_MODE, 0x8d, //charge pump enable
COMMAND_MODE, 0x14 //charge pump ON
};
- i2c.write(address, databytes, 4);
- setDisplayFlip(false, false);
+ i2c->write(address, databytes, 4);
+ setDisplayFlip(true, true);
}
};
#endif
\ No newline at end of file
--- a/SSD1308_128x64_I2C.lib Sat Aug 06 08:20:09 2016 +0000 +++ b/SSD1308_128x64_I2C.lib Sun Jul 01 11:59:16 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/wim/code/SSD1308_128x64_I2C/#df92b0c0cb92 +http://mbed.org/users/wim/code/SSD1308_128x64_I2C/#e564cde8e03e
