Jump to content
43oh

Recommended Posts

Within energia is it possible to change the i2c communication frequency?

With a tiny bit of modification I managed to get the Adafruit_SSD1306 library to compile for Energia. Namely I commented out a big block of SPI stuff that I wasn't using(although really I should get that fixed) and more importantly 2 additional snippets of code. One of the blocks seemed to make a backup of what the current i2c frequency is before setting the AVR to run at 400khz fast i2c, the other then restored the backup once it was done. With these removed I have my little OLED display functioning over i2c however it is at the basic 100khz i2c frequency and it takes quite some time to copy the frame buffer from microcontroller to oled.

Link to post
Share on other sites
  • 2 years later...
On ‎08‎/‎29‎/‎2014 at 0:34 AM, SixSixSevenSeven said:

Within energia is it possible to change the i2c communication frequency?

With a tiny bit of modification I managed to get the Adafruit_SSD1306 library to compile for Energia. Namely I commented out a big block of SPI stuff that I wasn't using(although really I should get that fixed) and more importantly 2 additional snippets of code. One of the blocks seemed to make a backup of what the current i2c frequency is before setting the AVR to run at 400khz fast i2c, the other then restored the backup once it was done. With these removed I have my little OLED display functioning over i2c however it is at the basic 100khz i2c frequency and it takes quite some time to copy the frame buffer from microcontroller to oled.

Can you show me how you modified the library to work with Energia. The links you gave did not give much information...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...