Hi all!
I report a bug for these tiny display In Fc9for a while ago. Do you have FC8, try to make a test in this SW work fine there, But not in FC9.
viewtopic.php?f=3&t=790
Br Jorgen
OLED SSD1306 I2C Address
-
- Posts: 616
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 509 times
- Been thanked: 132 times
Re: OLED SSD1306 I2C Address
I think it's a strange timing problem. And that could be the reason the display is updated very very slowly (like 1 minute to draw a small text on the display or clear the display).
These are screenshots from my logic analyser with several different settings for the I2C baud rate:
Baud rate in SSD1306 I2C properties = 100kHz Baud rate in SSD1306 I2C properties = 400kHz Baud rate in SSD1306 I2C properties = 1MHz Even with a custom baudrate it keeps 490hz...
I hope that with this information Matrix can fix this problem really fast.
These are screenshots from my logic analyser with several different settings for the I2C baud rate:
Baud rate in SSD1306 I2C properties = 100kHz Baud rate in SSD1306 I2C properties = 400kHz Baud rate in SSD1306 I2C properties = 1MHz Even with a custom baudrate it keeps 490hz...
I hope that with this information Matrix can fix this problem really fast.
-
- Posts: 616
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 509 times
- Been thanked: 132 times
Re: OLED SSD1306 I2C Address
Hi MJU
Well spottet So I was rigth viewtopic.php?f=3&t=790
Have you testet in FC8 (Arduino) it works there
Jorgen
Well spottet So I was rigth viewtopic.php?f=3&t=790
Have you testet in FC8 (Arduino) it works there
Jorgen
Re: OLED SSD1306 I2C Address
Not tested in FC8 because this project has to work with an ESP32 and that wasn't supported in this version.
BTW: I think this problem may occur in the SPI version too. I've tested the ESP with the SPI version of the SSD1306 and this also didn't work..
BTW: I think this problem may occur in the SPI version too. I've tested the ESP with the SPI version of the SSD1306 and this also didn't work..
-
- Matrix Staff
- Posts: 1760
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Re: OLED SSD1306 I2C Address
Hello,
With the I2C timing problem you've highlighted. Please can you confirm the target MCU you're using and also the I2C channel you're using and I'll investigate for you.
With the I2C timing problem you've highlighted. Please can you confirm the target MCU you're using and also the I2C channel you're using and I'll investigate for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: OLED SSD1306 I2C Address
Thank you Ben,
I'm using an (NodeMCU) ESP-Wroom-32 (version 1.1).
The I2C channel I'm using is "software" on pin A21 (SDA) and A22 (SCL). (same as the Arduino sketch)
BTW: I2C Channel 1 in FC proposes pin B4 on the board (A36), but this is not available on the board.
I'm using an (NodeMCU) ESP-Wroom-32 (version 1.1).
The I2C channel I'm using is "software" on pin A21 (SDA) and A22 (SCL). (same as the Arduino sketch)
BTW: I2C Channel 1 in FC proposes pin B4 on the board (A36), but this is not available on the board.
-
- Valued Contributor
- Posts: 401
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 73 times
- Been thanked: 218 times
Re: OLED SSD1306 I2C Address
Using software aka bitbang I2C is very much a last resort on ESP32 due to it running an RTOS, hence timings can't be guaranteed and tend to stretch considerably.
Are there any hardware channel I2C remap pins that you can use?
Are there any hardware channel I2C remap pins that you can use?
Re: OLED SSD1306 I2C Address
I will look into remapping the I2C.
Too bad it took a week to read this and meanwhile the display was tested with an Arduino sketch using the same IO's as those I used with FC.
Too bad it took a week to read this and meanwhile the display was tested with an Arduino sketch using the same IO's as those I used with FC.