Hi Rob,
On 06/09/2020 10:01, Rob CJ wrote:
I could set it FALSE by default in the SSD1306 library. I could also
remove the include of the IIC library at all from the SSD1306 library
so that it has to be included by the main program and the user can set
it there. I tried to make life simpler by including the required IIC
or SPI libraries in the SSD1306 library.
I am not sure what the best practice is, suggestions are welcome.
With I2C you can have the choices:
- idle state of CLK signal high or low
- data capture on first or second clock transition (either can be
falling or rising)
It depends on the implementation of the slave which combination is
appropriate.
So I would think that the choices should be made in the SSDD1306 library.
However, the datasheet of the SSD1306 (fig 8-6) shows that data capture
is on the rising CLK signal, but it seems not to care about the CLK idle
state. When CLK-idle is low then data capture is on the first CLK
transition, when CLK-idle is high then it is on the second transition.
So it is somewhat difficult to decide which are the right choices!
Regards, Rob.
--
*Rob H*amerling, Vianen, NL
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jallib/d557b65f-61ee-9fd2-7da6-6ae1d0ab69ef%40gmail.com.