4949// for the Qwiic OLED driver.
5050
5151// include the underlying SDK implementation headers for the OLED devices
52+ #include " qwiic_oled_1in5.h"
5253#include " qwiic_oled_1in3.h"
5354#include " qwiic_oled_custom.h"
5455#include " qwiic_oledmicro.h"
@@ -83,11 +84,11 @@ typedef QwBitmap QwiicBitmap;
8384
8485// Define the template and fill in the interface methods in-line.
8586
86- template <typename SSD1306DeviceType > class QwiicOLEDBaseClass : public Print // NOTE: implementing Arduino Print
87+ template <typename DeviceType > class QwiicOLEDBaseClass : public Print // NOTE: implementing Arduino Print
8788{
8889 protected:
8990 // our device driver
90- SSD1306DeviceType m_device;
91+ DeviceType m_device;
9192
9293 private:
9394 QwI2C m_i2cBus; // our i2c object
@@ -275,8 +276,8 @@ template <typename SSD1306DeviceType> class QwiicOLEDBaseClass : public Print //
275276 //
276277 // Parameter Description
277278 // --------- -----------------------------
278- // start The start page address of the scroll - valid values are 0 thru 7
279- // stop The stop/end page address of the scroll - valid values are 0 thru 7
279+ // start The start page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
280+ // stop The stop/end page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
280281 // interval The time interval between scroll step - values listed below
281282 //
282283 // Defined values for the interval parameter:
@@ -307,8 +308,8 @@ template <typename SSD1306DeviceType> class QwiicOLEDBaseClass : public Print //
307308 //
308309 // Parameter Description
309310 // --------- -----------------------------
310- // start The start page address of the scroll - valid values are 0 thru 7
311- // stop The stop/end page address of the scroll - valid values are 0 thru 7
311+ // start The start page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
312+ // stop The stop/end page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
312313 // interval The time interval between scroll step - values listed in scrollRight()
313314
314315 void scrollVertRight (uint8_t start, uint8_t stop, uint8_t interval)
@@ -326,8 +327,8 @@ template <typename SSD1306DeviceType> class QwiicOLEDBaseClass : public Print //
326327 //
327328 // Parameter Description
328329 // --------- -----------------------------
329- // start The start page address of the scroll - valid values are 0 thru 7
330- // stop The stop/end page address of the scroll - valid values are 0 thru 7
330+ // start The start page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
331+ // stop The stop/end page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
331332 // interval The time interval between scroll step - values listed in scrollRight()
332333
333334 void scrollLeft (uint8_t start, uint8_t stop, uint8_t interval)
@@ -345,8 +346,8 @@ template <typename SSD1306DeviceType> class QwiicOLEDBaseClass : public Print //
345346 //
346347 // Parameter Description
347348 // --------- -----------------------------
348- // start The start page address of the scroll - valid values are 0 thru 7
349- // stop The stop/end page address of the scroll - valid values are 0 thru 7
349+ // start The start page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
350+ // stop The stop/end page address of the scroll - valid values are 0 thru 15 (only 0 thru 7 valid for most small displays w/ SSD1306)
350351 // interval The time interval between scroll step - values listed in scrollRight()
351352
352353 void scrollVertLeft (uint8_t start, uint8_t stop, uint8_t interval)
@@ -845,6 +846,11 @@ class Qwiic1in3OLED : public QwiicOLEDBaseClass<QwOLED1in3>
845846 // nothing here - see above
846847};
847848
849+ class Qwiic1in5OLED : public QwiicOLEDBaseClass <QwOLED1in5>
850+ {
851+ // nothing here - see above
852+ };
853+
848854class QwiicCustomOLED : public QwiicOLEDBaseClass <QwOLEDCustom>
849855{
850856 public:
0 commit comments