Hello,
I am trying to give hexy UART commands from an Arduino Mega 2560 to its RX port.
Here is my code:
#include <string.h>
#include <stdio.h>
#include "Arduino.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("C");
Serial.print("\n");
delay(2000);
Serial.print("#6P1000");
Serial.print("\n");
delay(2000);
Serial.print("#6P2000");
Serial.print("\n");
delay(2000);
Serial.print("C");
Serial.print("\n");
delay(2000);
}
Why doesn’t this work? I get no movement from Hexy. Hexy works fine on PoMoCo so no obvious issues. I also have a UART LCD screen and the Mega can print the commands to that as well.