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.
Revision 2:4672902883bb, committed 2019-06-13
- Comitter:
- TurkishP
- Date:
- Thu Jun 13 09:57:00 2019 +0000
- Parent:
- 1:9bc80b7d947c
- Commit message:
- trying to publish
Changed in this revision
SSD1306-Library.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SSD1306-Library.cpp Thu Jun 13 01:08:07 2019 +0000 +++ b/SSD1306-Library.cpp Thu Jun 13 09:57:00 2019 +0000 @@ -24,7 +24,7 @@ I2C i2c(D14, D15); DigitalOut rst(D9); //D13); //reset pin on D13 - +DigitalOut sa0(D8); // the memory buffer for the LCD static uint8_t buffer[SSD1306_LCDHEIGHT * SSD1306_LCDWIDTH / 8]; @@ -91,7 +91,7 @@ if (isData) { i2c.start(); //pc.printf("%0.2x ", *p); - i2c.write(0x3C<<1); + i2c.write((0x3C+sa0)<<1); //control |= 0x80; i2c.write(control); @@ -110,7 +110,7 @@ for (int32_t i=0; i<len; i++, p++) { i2c.start(); //pc.printf("%0.2x ", *p); - i2c.write(0x3C<<1); + i2c.write((0x3C+sa0)<<1); i2c.write(control); int error = i2c.write(*p); //int error = 1;