SSD1306 Display SLOW

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

SSD1306 Display SLOW

Post by Alan_37 »

Hi

I am trying to use SSD1306 I2c Display component , But it takes about 5 seconds to print "1234567890".

Is this a bug ? I'm Using Arduino 2560 R3

Thanks

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SSD1306 Display SLOW

Post by Benj »

Hello Alan,

Thanks for letting us know. Here is an updated version of the component which allows access to the stop delay property. This was previously set to on Yes which explains the slow operation of the display. Simply copy the file into your "Flowcode 7/Components" directory and restart Flowcode.
gLCD_SSD1306_i2c.fcpx
(11.66 KiB) Downloaded 352 times

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

Re: SSD1306 Display SLOW

Post by Alan_37 »

HI Benj

Yes I can confirm that fiexs the problem .

If i can make a suggestion , this lcd can work on 2 Addresses 0x78 and 0x7A
would be nice if we can choose the address so we can have 2 displays on the same bus .

Thanks very much for your fast support .

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SSD1306 Display SLOW

Post by Benj »

Hi Alan,

Thanks for the suggestion. I have now added a new property to control the I2C address.
gLCD_SSD1306_i2c.fcpx
(11.7 KiB) Downloaded 442 times
Let me know how you get on.

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

Re: SSD1306 Display SLOW

Post by Alan_37 »

It Works .

Thanks very much :)

damstech8888
Posts: 14
Joined: Wed Mar 05, 2014 11:43 am
Has thanked: 1 time
Contact:

Re: SSD1306 Display SLOW

Post by damstech8888 »

Re: SSD1306 Display SLOW


Dear Benj
about gLCD_SSD1306_i2c.fcpx

could you do the same non-delay update for V6?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SSD1306 Display SLOW

Post by Benj »

I'm away from my computer at the moment but you can workaround the problem in v6 like this.

Editing the right CAL I2C file for the microcontroller family your using.

http://www.matrixtsl.com/mmforums/viewt ... 799#p69801

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: SSD1306 Display SLOW

Post by bercioiu »

Benj wrote:Hi Alan,

Thanks for the suggestion. I have now added a new property to control the I2C address.
gLCD_SSD1306_i2c.fcpx
Let me know how you get on.
This is for FC7. There is an file for FC6 ? I can`t change the address for my ssd1306 i2c in FC6.
Thanks!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SSD1306 Display SLOW

Post by Benj »

Hello,

In v6 you can fix as shown in the link above by editing the CAL C file.

Or you can do the following.

Click View -> Component Debugger
Check the Expose Full Component Tree tick box
In the properties window click the drop down at the top
Choose the cal_i2c1 inside the SSD1306 component
Change the Stop Delay property to No
Untick the Expose Full Component Tree tick box
Close the component debugger window

The slowness problem should now be fixed in your project.

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: SSD1306 Display SLOW

Post by bercioiu »

OK, thank you for reply, but my problem is that I don`t know what`s the default i2C address for the gLCD_SSD1306_i2c1 component in FC6.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SSD1306 Display SLOW

Post by Benj »

The default 7-bit I2C address is = 0x3C or 0b00111100

Which makes the 7-bit address + Write bit = 0x78 or 0b01111000

And hence the 7-bit address + Read bit = 0x79 or 0b01111001

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: SSD1306 Display SLOW

Post by bercioiu »

Thank you!
Problem solved with 0x78.
Attachments
test.jpg
test.jpg (143.37 KiB) Viewed 8902 times

Post Reply