|
@@ -3,30 +3,30 @@
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
-#define TRUE 1
|
|
|
-#define FALSE 0
|
|
|
+#define TRUE 1
|
|
|
+#define FALSE 0
|
|
|
// Software config
|
|
|
-#define KEY800_FWVERSION 1
|
|
|
-#define KEY800_HWVERSION 101
|
|
|
+#define KEY800_FWVERSION 1
|
|
|
+#define KEY800_HWVERSION 101
|
|
|
|
|
|
// Serial port settings
|
|
|
-#define KEY800_SERIAL_BAUD_RATE 115200
|
|
|
-#define KEY800_SERIALKETBOARD_BAUD_RATE 625
|
|
|
+#define KEY800_SERIAL_BAUD_RATE 115200
|
|
|
+#define KEY800_SERIALKEYBOARD_BAUD_RATE 625
|
|
|
|
|
|
//Logging
|
|
|
#define KEY800_LOGGING_ENABLE_SERIAL
|
|
|
#ifndef KEY800_LOGGING_SERIAL_PORT
|
|
|
-#define KEY800_LOGGING_SERIAL_PORT Serial
|
|
|
+#define KEY800_LOGGING_SERIAL_PORT Serial
|
|
|
#endif
|
|
|
-#define KEY800_LOGGING_VERBOSE_LEVEL 5
|
|
|
+#define KEY800_LOGGING_VERBOSE_LEVEL 5
|
|
|
|
|
|
//WIFI
|
|
|
#ifndef ABC800_WIFI_RETRY_TIMEOUT
|
|
|
-#define ABC800_WIFI_RETRY_TIMEOUT 00
|
|
|
+#define ABC800_WIFI_RETRY_TIMEOUT 00
|
|
|
#endif
|
|
|
|
|
|
#ifndef ABC800_WIFI_TIMEOUT_MS
|
|
|
-#define ABC800_WIFI_TIMEOUT_MS 10000
|
|
|
+#define ABC800_WIFI_TIMEOUT_MS 10000
|
|
|
#endif
|
|
|
|
|
|
#ifndef ABC800_WIFI_RECOVER_TIME_MS
|
|
@@ -36,16 +36,16 @@
|
|
|
#define ABC800_REPLACE_CHAR 0x00
|
|
|
#define ABC800_REPLACE_FUNCTION 0x01
|
|
|
|
|
|
-#define ABC800_KEY_OUT_BUFFER_SIZE 2048
|
|
|
-#define ABC800_KEY_IN_BUFFER_SIZE 256
|
|
|
-#define ABC800_KEY_REPEAT_TIME 100
|
|
|
-#define ABC800_KEY_CHECK_TIME 50
|
|
|
+#define ABC800_KEY_OUT_BUFFER_SIZE 2048
|
|
|
+#define ABC800_KEY_IN_BUFFER_SIZE 256
|
|
|
+#define ABC800_KEY_REPEAT_TIME 100
|
|
|
+#define ABC800_KEY_CHECK_TIME 50
|
|
|
#define ABC800_KEY_REPEAT_TIME_DELAY 500
|
|
|
|
|
|
#define ABC800_KEY_WIFI_SSID "ABC800-KEY800"
|
|
|
-#define ABC800_KEY_WIFI_PSK "key800!!!"
|
|
|
+#define ABC800_KEY_WIFI_PSK "key800!!!"
|
|
|
#define ABC800_KEY_WIFI_HOSTNAME "ABC800-KEY800"
|
|
|
-#define ABC800_KEY_SPIFFS_CONFIG_PART "data"
|
|
|
+#define ABC800_KEY_SPIFFS_CONFIG_PART "data"
|
|
|
|
|
|
#define ABC800_KEY_IN_ABC800 0x00
|
|
|
#define ABC800_KEY_RESET 0x01
|
|
@@ -53,8 +53,8 @@
|
|
|
#define ABC800_KEY_DELAY_LEGACY 50
|
|
|
#define ABC800_KEY_DELAY 4
|
|
|
|
|
|
-#define ABC800_KEY_SPIFFS_PATH "/"
|
|
|
-#define ABC800_KEY_SPIFFS_PARTITION "data"
|
|
|
+#define ABC800_KEY_SPIFFS_PATH "/"
|
|
|
+#define ABC800_KEY_SPIFFS_PARTITION "data"
|
|
|
|
|
|
struct key800config
|
|
|
{
|