8 years, 8 months ago.

I2C Problems with v2.81

First of all Kudos for making this library happen.

I had a module with the old Firmware and your library was working. The module broke and I order new modules and requested for the new Firmware which includes the commands for Refresh Screen FS0, FS1 and FSx. When I received it, I plug it into Arduino and everything worked perfectly. But when I connect it to the Mbed on the same configuration as the old module, it just wont work.

Sometimes it does send some commands sometimes it wont, it take a couple of minutes to start showing random characters, etc.

My code on the test is pretty simple. Just trying out for clearScreen, displayConfig(0), drawFrame, println and print.

Is there something that I am doing wrong? Do you have a sample project working with I2C? I could import instead of just the library?

Any help would be appreciate it, I know this is an old project of yours, but it would be great if you provide some support.

Again thank you very much for your time.

Code:

  1. include "mbed.h"
  2. include "DigoleSerialDisp.h"
  3. include "PinDetect.h" Digole Serial Display FRDM-KL-25Z DigoleSerialDisp myOLED(p28, p27, 0x27);

DigoleSerialDisp(PinName sda, PinName scl, uint8_t address=0x27);

DigitalOut myled(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); DigitalOut myled4(LED4);

Serial usb(USBTX, USBRX); define USB connection pins

int main() {

wait(1);

myOLED.begin(); myOLED.clearScreen();

wait(1);

myOLED.displayConfig(0); myled4 = 1; wait(1); myled4 = 0; wait(1);

myOLED.drawFrame(0,0,127,63);

myOLED.setPrintPos(1,1, _TEXT_); myOLED.println("Hello"); wait(1);

myOLED.setPrintPos(1,2, _TEXT_); myOLED.println("World"); wait(1);

while(1) { myOLED.setPrintPos(1,3, _TEXT_); wait(1); myOLED.print("Worlds"); wait(1); myled = 1; wait(1); myled = 0; } }

Question relating to:

Driver for the Digole Serial universal LCD display adapter LCD
Be the first to answer this question.