Hi,
The following code control an LCD I can make it work on a arduino uno with the default pin rx(0)-tx(1):
How to use the aux-1 on my RAMPS to do the same program?
#include
void setup() {
// put your setup code here, to run once:
pinMode(13,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
//envoyer image 0 à p0: 2 seconde :
digitalWrite(13,HIGH);
Serial.print("p0.pic=");
Serial.print(0);
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
delay(2000);
//envoyer image 1 à p0: 2 seconde...
digitalWrite(13,LOW);
Serial.print("p0.pic=");
Serial.print(1);
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
delay(2000);
}