Announcement

Collapse
No announcement yet.

Questions about Gen4-uLCD-43D-SB Display

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

  • Questions about Gen4-uLCD-43D-SB Display

    Hi Everyone,

    I pulled the trigger on the SB display and had a few questions with my experiences the last few days.

    I did a simple sketch with my teensy using arduino and also just two LED digits just to see if I can get communication going. I was able to successfully get the communication going but I run into the issue of the frame freezing from time to time, it's pretty random. I borrow the code from the forum for now. Sorry if things don't make sense.

    Code:
    #include <genieArduino.h>
    
    #define GENIE_OBJ_LED_DIGITS 15
    #define GENIE_OBJ_GAUGE 11
    
    
    Genie genie;
    
    void setup()
    {
    Serial2.begin(200000);
    genie.Begin(Serial2);
    pinMode(4,OUTPUT);
    digitalWrite(4,0);
    delay(100);
    digitalWrite(4,1);
    
    delay(3000);
    
    }
    void loop()
    {
    Serial.println("Running");
    for(int i = 0; i < 1000; i++)
    {
    genie.WriteObject(GENIE_OBJ_LED_DIGITS, 0x00, i);
    genie.WriteObject(GENIE_OBJ_LED_DIGITS, 0x01, i);
    Serial.println("1");
    Serial.println("2");
    Serial.println(i);
    delay(5);
    }
    }
    Attached Files
    Last edited by S1KRRVoodooMagic; 1 week ago. Reason: Grammer

  • #2
    Click image for larger version

Name:	IMG_20200906_112655.jpg
Views:	14
Size:	2.69 MB
ID:	73516I also added a picture of my setup.

    Comment


    • #3
      Good day,

      You might want to remove the delay() function and replace it with other timing elements like millis(); since all types of blocking delays will interfere with the ViSi-genie functioning. You will also need to add genie.DoEvents(); on the main loop to handle events and messages coming from the display.

      Best Regards,
      Last edited by Jerson; 1 week ago.

      Comment


      • #4
        Thank you Jerson (Awesome name btw) - I will give that a try.

        Comment

        Working...
        X