Announcement

Collapse
No announcement yet.

microOLED-160-G1 in Slave mode

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

  • microOLED-160-G1 in Slave mode

    Hi:
    Product: microOLED-160-G1
    Environment: Slave Serial with Arduino

    I am trying to get the hang of your system.
    I connected the microOLED-160-G1 as slave to Arduino and able to send serial command to the display.
    As for as sending strings to the display, it works extremely good.
    I am also able to print integers up to 255. But, if i want to print a number greater than that i can't.
    In addition to this the sensor in my Arduino will output a calculated value of a decimal with a precision of 2 digits (like 7.23);
    Is there a command or function that i am missing.

    Please help.

  • #2
    Hi,

    I've attached an edited goldelox serial arduino library. This now can perform the following:

    char a = 'A';
    char a2 = 'B';
    int b = 1234;
    int b2 = -1234;
    long c = 123456;
    long c2 = -123456;
    String string = "This is string class";
    char charr[30] = "This is const char array";
    float d = 123.456789;
    float d2 = -123.456789;
    float nan = NAN;
    float inf = INFINITY;
    float ovf1 = 5294967040.0;
    float ovf2 = -5294967040.0;

    Display.print(a); Display.print(' ');
    Display.println(a2);
    Display.print(b); Display.print(' ');
    Display.println(b2);
    Display.print(c); Display.print(' ');
    Display.println(c2);
    Display.println("This is String");
    Display.println(F("This is Flashstring"));
    Display.println(string);
    Display.println(charr);
    Display.println(d,6);
    Display.println(d2, 3);
    Display.println(nan);
    Display.println(inf);
    Display.println(ovf1);
    Display.println(ovf2);

    Please refer to the example 'Display_print.ino' that is also included in the example folder of the library.

    Hope this helps
    Attached Files
    Symon

    Comment


    • #3
      Excellent. Thanks a lot.

      Comment

      Working...
      X