Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Compatibility problem with ADAFRUIT_SSD1306 library #4

Open
elC0mpa opened this issue Nov 27, 2019 · 1 comment
Open

Compatibility problem with ADAFRUIT_SSD1306 library #4

elC0mpa opened this issue Nov 27, 2019 · 1 comment

Comments

@elC0mpa
Copy link

elC0mpa commented Nov 27, 2019

I am doing a project in which i need to use 4 oled displays. Due to i can have only two of these in the same bus, I need to work with two i2c buses, reason why i decided to use this library. The thing is that the available library to use this displays, receives a pointer to a TwoWire object in the ctor. I had to modify that library in order to use it with your library. Haven't you thought about create a library which inherit from TwoWire library? I think this would be really usefull. Thanks in advance

@bobemoe
Copy link

bobemoe commented Jul 30, 2020

I've just had to do the same with Adafruit_BME280_Library. I had to edit and replace TwoWire with SlowSoftWire like so: adafruit/Adafruit_BME280_Library@master...bobemoe:SoftwareWire

I think the suggestion of inherit from TwoWire library would make a drop in replacement is a great idea. It is possible to pass a TwoWire instance to AdaFruit constructor, I'm no C++ coder but I think this should be possible?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants