DeepBlueSky 8 Posted December 7, 2016 Share Posted December 7, 2016 Edit 09.12.2016: I added Arial_16x24.h and Arial_24x40 (really a 24x36, but I had to keep a multiple of 8), digits only, created with GLCD Font Creator (I had to edit the result slightly manually). See images below. So I can confirm that adding any further fonts created with GLCD Font Creator works (I run it on Linux on wine BTW) and is only limited by how much fits into the SSD1306_OLED_5x8_11x16_16x24_24x36_fonts.zip Barcooler, Rei Vilo, Fmilburn and 1 other 4 Quote Link to post Share on other sites
rainbowtable 0 Posted December 17, 2016 Share Posted December 17, 2016 _ Quote Link to post Share on other sites
rainbowtable 0 Posted December 19, 2016 Share Posted December 19, 2016 How can I use this library with Energias Wire.h library? As soon as I add Wire.h the display gets out of sync. But I need Wire.h to use another I2C module. Do you know if replacing every I2C related instruction in the library with a function from Wire.h could help? Is it possible to reduce a font to only support numbers by deleting the unneeded entries in the font header? I am thankful for any help. Quote Link to post Share on other sites
DeepBlueSky 8 Posted December 21, 2016 Author Share Posted December 21, 2016 I didn't try attaching any further I2C devices. I suggest you open a new topic for your problem. The solution will surely be helpful to others too. Yes, you can delete the unneeded entries from the smaller fonts (the bigger fonts only have number already because they won't fit into this IC), but see the code for the bigger fonts and adjust it (basically change to s.charAt(j)-'0'). Quote Link to post Share on other sites
rainbowtable 0 Posted December 21, 2016 Share Posted December 21, 2016 Ok thanks. I opened a new topic: http://forum.43oh.com/topic/10083-msp430g2553-ssd1306-oled-i2c-with-wireh/ Quote Link to post Share on other sites
wangziru 0 Posted June 30, 2020 Share Posted June 30, 2020 I try to use this code in 7 pins OLED and MSP430G2ET launchPad, but it didn't work. Quote Link to post Share on other sites
Rei Vilo 695 Posted July 2, 2020 Share Posted July 2, 2020 Check the I²C port selected, there are two and they differ from non-ET and ET LaunchPad boards. Quote Link to post Share on other sites
wangziru 0 Posted July 14, 2020 Share Posted July 14, 2020 On 2020/7/3 at AM12点35分, Rei Vilo said: 检查所选的I²C端口,有两个,它们与非ET和ET LaunchPad板不同。 thanks for your reply! because I need to use wire.h, I give up this library and find another way to run OLED.But I have another quesetion:what are the difference between Sortware I2C on LaunchPad(P2.1,P2.2) and other GPIOs that use software I2C? I try to use other GPIOs instead of P2.1,P2.2. Does energia has the library about it? Quote Link to post Share on other sites
Rei Vilo 695 Posted July 14, 2020 Share Posted July 14, 2020 I’ve developed the Master I²C Software Library. Please refer to the home page, the GitHub repository and the thread in this very forum. Quote Link to post Share on other sites
wangziru 0 Posted July 15, 2020 Share Posted July 15, 2020 15 hours ago, Rei Vilo said: I’ve developed the Master I²C Software Library. Please refer to the home page, the GitHub repository and the thread in this very forum. Thank you very much indeed!When I try to use SPI.h and Wire.h(even just #include <Wire.h> in the code), my progam has uncertain error while running. And your library help me a lot,I needn't care about limited i2c resource and errors between SPI.h and Wire.h in energia. By the way, I have searched for software I2C library in 43oh search bar, but I can not find satisfied information in the previous page. I should search for this in Energia Libraries FORUMS at first next time.pages 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.