Open simon-77 opened 5 months ago
The SSD1306 library has the following #define
directive
"128x64":
{
"init":
[
"#ifdef SDL_EMULATION",
" SDL_LCD_SSD1306, 0x00,",
" 0x00, 0x00,",
"#endif",
which I have modified for SSD1306B to SDL_LCD_SSD1306B, 0x00,",
.
I guess this is why the build test is failing.
I don't know what it is actually used for and if I should have deleted these 4 lines for the new implementation.
Nevertheless, building the library for a micro controller (raspberry pi pico in my case) without the SDL_EMULATION
does work.
Maybe you can have a look and modify this line accordingly to what makes sense.
Cheers Simon
The SSD1306 is already implemented, but not fully compatible with the SSD1306B controller.
I am using the OLEDS102-6 display with the SSD1306B controller. I needed to modify the startup sequence slightly, in order to get the charge pump set up correctly.
I have copied the configuration (for the
lcd_code_generator.py
script) from the SSD1306 and modified the startup sequence.This pull request contains the new json configuration files as well as the newly created source files.
And I have tested the new class successfully with my OLEDS102-6 display. Used testing code snippets: