I have a Mega sending data to a 4D Studio display and created a very simple program to test communication (below) I am using Genie to write the data to the display. I had this updating normally, but now (not sure what I did), the display now updates at a very slow rate (~1 sec) no matter if I put a delay or other timing loops. It will delay longer if I write a delay more than 1 second. Just looking for some help. I have a video but do not know how to upload it for viewing.
#include<genieArduino.h>
#include<SoftwareSerial.h>
Genie genie;
SoftwareSerial MySerial(2,3);
#define RESETLINE 4
// Variable declarations
int x = 0;
void setup()
{
MySerial.begin(115200);
genie.Begin(MySerial);
pinMode(RESETLINE, OUTPUT);
digitalWrite(RESETLINE,1);
delay(100);
digitalWrite(RESETLINE,0);
delay(1000);
genie.WriteContrast(10);
genie.WriteObject(GENIE_OBJ_CUSTOM_DIGITS,0,0);
}
void loop()
{
for (x = 0; x <= 1000; x ++){
genie.WriteObject(GENIE_OBJ_CUSTOM_DIGITS,0,x);
delay(10);
}
}
1 post - 1 participant