SixSixSevenSeven 23 Posted August 28, 2014 Share Posted August 28, 2014 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. Quote Link to post Share on other sites
Rei Vilo 695 Posted August 28, 2014 Share Posted August 28, 2014 Please have a look at Allow I²C 400-kHz Fast-mode (Fm) #282 https://github.com/energia/Energia/issues/282 and http://forum.stellarisiti.com/topic/1592-energia-library-i2c-api-on-energia/ SixSixSevenSeven 1 Quote Link to post Share on other sites
NipunaMohotti 0 Posted March 31, 2017 Share Posted March 31, 2017 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... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.