Hi Rob, Mike, I fixed the SSD1306 library with the following changes:
1) When the device is initialized, the display is turned on AFTER the screen is cleared. 2) You can select a display using 128 x 32 instead of the default of 128 x 64 by setting: const SSD1306_Y_32_PIXELS = TRUE 3) About the SMB levels, if the main program defines: const bit _i2c_level = FALSE then it will use the SMB levels, if nothing is defined it or the variable is set to TRUE uses the IIC levels. I updated this version and the updated sample files to GitHub so it should be in the next bee package. I do not have a 128 x 32 display but when I select that, the resolution is half so I assume it works OK. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens Rob Hamerling <[email protected]> Verzonden: zondag 6 september 2020 10:36 Aan: [email protected] <[email protected]> Onderwerp: Re: [jallib] Re: JAL Library for SSD1306 graphic display module. 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 Hamerling, 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]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/d557b65f-61ee-9fd2-7da6-6ae1d0ab69ef%40gmail.com<https://groups.google.com/d/msgid/jallib/d557b65f-61ee-9fd2-7da6-6ae1d0ab69ef%40gmail.com?utm_medium=email&utm_source=footer>. -- 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/AM0PR07MB6241A6622E6273F0525CD564E62B0%40AM0PR07MB6241.eurprd07.prod.outlook.com.
