#include "LCD_DISPLAY.h"
#include "MOTOR_CONTROL.h"
bool online = false;
const int xdirPin = 5, ydirPin = 6, zdirPin = 7;
bool x_state = true, y_state = false, z_state = false;
int T_Developer = 0;
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup() {
Serial.begin(115200);
lcd.begin(20, 4); // 初始化 LCD 显示器
lcd.backlight(); // 打开背光
selectedMode("mode_A", 2, 0);
modeLCD_display("", 2, 1, online, " ", "return", " ");
motion_DIR(xdirPin, x_state, y_state, z_state, '+');
Serial.println("X: " + String(digitalRead(xdirPin)));
}
void loop() {
LCD_Display('A', 0, 1, "- Version : ", NULL);
LCD_Display('A', 3, 2, "New_mode-V2.5t", NULL);
T_Developer++;
if (T_Developer > 7)
T_Developer = 0;
delay(1000);
}