Announcement

Collapse
No announcement yet.

uOLED-128-G2 connection problems

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • uOLED-128-G2 connection problems

    Hello all,

    I have been trying to send out serial commands to my 128-g2 from my arduino uno board. Unfortunately, it seems that the 128-g2 is not seeing them. I am using jumper wires and the correct 1k resistor for the reset pin. Baud rates are matched (9600) and I have made sure the SPE has been uploaded and the PmmC updated.

    My arduino code is below:

    Code:
    #include "Goldelox_Const4D.h"
    #include "Goldelox_Serial_4DLib.h"
    #include <SoftwareSerial.h>
    
    SoftwareSerial DisplaySerial1(2,3) ;
    Goldelox_Serial_4DLib Display(&DisplaySerial1);
    
    void setup() {
      DisplaySerial1.begin(9600);
    
      pinMode(4, OUTPUT);
      digitalWrite(4, 0);
      delay(100);
      digitalWrite(4, 1);
      delay(5000);
    
      Display.gfx_Cls();
      Display.putstr("TEXT");
     
    }
    
    void loop() {
    
    }
    I have also tried running the example goldelox arduino code and that does not work at all either.

    Could softwareserial be causing an issue? To me everything looks correct, and I'm running out of ideas to try. Would appreciate any advice.

    Thanks

  • #2
    Hi,

    Try adding the timelimit parameter in there as it seems you have missed it.

    Code:
    //5 second timeout on all commands  
    Display.TimeLimit4D = 5000 ;
    Also are you sure RX/TX are the correct way around? have you tried reversing them to double check?

    Try both of those (1 at a time) and see how you go.

    Regards
    James

    Comment


    • #3
      RX/TX are now correctly wired (lol) and the display works. Thank you for your reply.

      Comment

      Working...
      X