adafruit / Adafruit_SH110x

Arduino library for SH110x based monochrome OLEDs
Other
67 stars 30 forks source link

abstract-fix: Make Adafruit_SH110X not abstract #5

Closed pinecat closed 3 years ago

pinecat commented 3 years ago

Added an override function for Print::write(uint8_t) in class Adafruit_SH110X so that the class is not abstract (in Adafruit_SH110X.h and Adafruit_SH110X.cpp).

Created Adafruit_SH110X::write(uint8_t) which simply returns the overridden write(uint8_t) from a base/parent class (Adafruit_GFX).

The changes have been tested on an Adafruit 128x64 OLED FeatherWing, running the example code from the following page on an Adafruit Feather HUZZAH ESP8266: https://learn.adafruit.com/adafruit-128x64-oled-featherwing/arduino-code.

Fixes #4

ladyada commented 3 years ago

hi this library was refactored, can you use Adafruit_SH1107 display = Adafruit_SH1107(64, 128, &Wire); ?

pinecat commented 3 years ago

Hi,

Sorry I missed this somehow. I'm not longer getting the error with the refactored library. Thanks for the help!