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.
Diff: Adafruit_SSD1306.h
- Revision:
- 21:e5fd68cfaf3d
- Parent:
- 18:a267f00528be
diff -r 4f1803f9d4e7 -r e5fd68cfaf3d Adafruit_SSD1306.h
--- a/Adafruit_SSD1306.h Thu Feb 13 14:52:59 2020 +0000
+++ b/Adafruit_SSD1306.h Wed Mar 04 22:47:09 2020 +0000
@@ -77,7 +77,7 @@
class Adafruit_SSD1306_I2c : public Adafruit_SSD1306
{
public:
- #define SSD_I2C_ADDRESS 0x78
+ //#define SSD_I2C_ADDRESS 0x78 //->0111 1000 0x7A -> 0111 1010
/** Create a SSD1306 I2C transport display driver instance with the specified RST pin name, the I2C address, as well as the display dimensions
*
* Required parameters
@@ -89,7 +89,7 @@
* @param rawHeight - The vertical number of pixels for the display, defaults to 32
* @param rawWidth - The horizonal number of pixels for the display, defaults to 128
*/
- Adafruit_SSD1306_I2c(I2C &i2c, uint8_t i2cAddress = SSD_I2C_ADDRESS, uint8_t rawHeight = 32, uint8_t rawWidth = 128)
+ Adafruit_SSD1306_I2c(I2C &i2c, uint8_t i2cAddress, uint8_t rawHeight = 32, uint8_t rawWidth = 128)
: Adafruit_SSD1306(rawHeight, rawWidth)
, mi2c(i2c)
, mi2cAddress(i2cAddress)