/*! * file Wilson.ino * version V1.0 * date 2021-6-15 */ #include #include #include #include "DFRobot_SerialScreen771.h" SoftwareSerial EEBlue(3,2); // RX | TX SoftwareSerial Serial1(7, 6); //RX, TX DFRobot_SerialScreen771 screen; const char* str = "*"; eMoveMode_t buf[]= {eMove_left,eMove_right,eMove_hold,eMove_down,eMove_up,eMove_flash}; int iBuffIndex = 0; int iMaxBuffIndex = 5; void setup() { /*Initialize communication interface (Serial1) and debug interface (Serial)*/ Serial.begin(9600); Serial1.begin(19200); EEBlue.begin(9600); //Default Baud for comm, it may be different for your Module. screen.begin(Serial1); screen.setDbgSerial(Serial); delay(4); screen.setMessage(str); screen.setMoveMode(eMove_hold); screen.setMoveSpeed(eSpeedLevel_8); Serial.println("The bluetooth gates are open.\n Connect to HC-05 with 1234 as pairing key!."); } void processCommand(String command) { if (iBuffIndex