mXlab / xenolalia

Xenolalia is an art-science project involving autoencoders and euglena microscopic cells
GNU General Public License v3.0
0 stars 0 forks source link

Run the OLED Mono using I2C instead of SPI #20

Closed sofian closed 3 years ago

sofian commented 4 years ago

In the process I believe we fried our device. Ordering an alternative i2c screen.

sofian commented 4 years ago

We had many problems with this. See the following discussion about running it from a RPi: https://github.com/rm-hull/luma.oled/issues/276

tezgit commented 4 years ago

I have been running two different I2C scanner sketches on Arduino Nano and on ESP32 with no success in detecting an address for the 128x128 I2C (only) display >> https://www.tinytronics.nl/shop/en/display/oled/1.5-inch-oled-display-128*128-pixels-white-i2c

After trying various HW I2C constructors with the U8g2lib I finally decided to give the SW I2C a try and managed to get the screen to work and run the page-buffer GraphicTest with this definition for 96x96 pixels

U8G2_SSD1327_SEEED_96X96_1_SW_I2C u8g2(U8G2_R0, / clock=/ SCL, / data=/ SDA, / reset=/ U8X8_PIN_NONE); // Seeedstudio Grove OLED 96x96

SD1327-96px

This one actually worked too but the sketch seems to stop after displaying the first screen in full 128 x 128 resolution

U8G2_SSD1327_EA_W128128_1_SW_I2C u8g2(U8G2_R0, / clock=/ SCL, / data=/ SDA, / reset=/ U8X8_PIN_NONE);

SD1327-128px

and this is the backside of the display board

SD1327-I2C-back
sofian commented 3 years ago

Because of all the difficulties explained here we are falling back to work in SPI.