Multiple I2C libraries

Posts: 1684
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Multiple I2C libraries

Post by zmemw16 » Wed Dec 20, 2017 4:05 pm

definitely daft ideas mode
just how slow can we clock i2c ? set timeouts in seconds?
replace resistors with led and resistor, really, really slow the clock.
record video and then playback frame by frame ;)
not nearly enough really's in that line
maybe trying a bit-bang i2c would help in slowing it down
kevin someone has a lovely video on youtube of controlling a stepper motor with switches.


Posts: 21
Joined: Mon Dec 04, 2017 8:45 pm

Re: Multiple I2C libraries

Post by tfried » Wed Dec 20, 2017 9:39 pm

Grasping for straws, but...

What happens, if you move "vl.begin();" (and the associated debug lines) above "display.begin()"?

Posts: 2067
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Multiple I2C libraries

Post by stevestrong » Sat Dec 23, 2017 5:29 pm

Just thinking...

You start first library (let's say) First.begin(), which will call Wire.begin().
The you call other "First" functions:

Then, you start "Second" library (let's say): Second.begin(), which also calls same default (!) object Wire.begin();

Will this maybe clear (or conflict) the previous library variables/instances and reset the default Wire object?

Post Reply