From 6c2d5bc37d258c19bc01fb2c9aa2fc99c70f9833 Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Wed, 22 Jun 2022 15:31:17 +0800 Subject: [PATCH] Use ESP3D Configurator format but display all options commented --- esp3d/configuration.h | 793 +++++++++++++++++++++++++++--------------- 1 file changed, 508 insertions(+), 285 deletions(-) diff --git a/esp3d/configuration.h b/esp3d/configuration.h index 269ad74e..4bea8738 100644 --- a/esp3d/configuration.h +++ b/esp3d/configuration.h @@ -19,253 +19,539 @@ */ #ifndef _CONFIGURATION_H #define _CONFIGURATION_H - -//FEATURES - comment to disable ////////////////////////////////////////////////////////// - -//WiFi setup station as default, use AP mode first if not done -//Note: need both defined to enable it +/* Setup station as default, use AP mode first if not done +* Note: need both defined to enable it +* Uncomment and edit them to define +*/ //#define STATION_WIFI_SSID "*********" //#define STATION_WIFI_PASSWORD "*********" -//you can also use a different config file for SSID/password -//this file is ignored by github + +/* You can also use a different config file for SSID/password +* Just save it in same location as this configuration.h +* This file is ignored by github +*/ #if defined __has_include # if __has_include ("myconfig.h") # include "myconfig.h" # endif #endif -//SERIAL_COMMAND_FEATURE: allow to send command by serial -#define SERIAL_COMMAND_FEATURE +/************************************ +* +* Serial Communications +* +* Settings and protocols +* +************************************/ -//COMMUNICATION_PROTOCOL: to communicate with printer or TFT -//RAW_SERIAL standard serial -//MKS_SERIAL Mks protocol -#define COMMUNICATION_PROTOCOL RAW_SERIAL +/* Serial Communication protocol +* RAW_SERIAL // Basic serial protocol, without data change +* MKS_SERIAL // This is a MakerBase communication protocol, used with MKS printers and TFT, it encapsulated data in a custom protocol +*/ +#define COMMUNICATION_PROTOCOL MKS_SERIAL -//AUTHENTICATION_FEATURE: protect pages by login password -//#define AUTHENTICATION_FEATURE +/* Serial port +* which serial ESP use to communicate to printer (ESP32 has 3 serials available, ESP8266 only 2) +* USE_SERIAL_0 //for ESP8266/32, also used by bootloader output, so consider to make it quiet +* USE_SERIAL_1 //for ESP8266/32 +* USE_SERIAL_2 //for ESP32 Only +*/ +#define ESP_SERIAL_OUTPUT USE_SERIAL_0 -//WIFI_FEATURE : enable WIFI function +/* Serial buffer size +* Maximum size of the serial buffer +*/ +#define SERIAL_RX_BUFFER_SIZE 512 + +/************************************ +* +* Target firmware +* +* Targeted firmware that ESP3D will communicate with +* +************************************/ +/* Target firmware (default UNKNOWN_FW can be changed later in settings) +* UNKNOWN_FW +* GRBL +* MARLIN +* SMOOTHIEWARE +* REPETIER +*/ +#define DEFAULT_FW UNKNOWN_FW + +/************************************ +* +* Radio mode of ESP3D +* +* The radio mode ESP3D communicate with the network +* +************************************/ + +/* Use WiFi +* Enable wifi communications +*/ #define WIFI_FEATURE -//ETH_FEATURE : enable Ethernet function +/* Use Ethernet +* Enable ethernet communications +*/ //#define ETH_FEATURE -//BLUETOOTH_FEATURE : enable BT Serial function +/* Use Bluetooth +* Enable serial bluetooth communications +*/ //#define BLUETOOTH_FEATURE -//HTTP_FEATURE : enable HTTP function +/************************************ +* +* Channels of ESP3D +* +* The way ESP3D communicate +* +************************************/ + +/* Use Web server +* Enable http server +*/ #define HTTP_FEATURE -//TELNET_FEATURE : enable Telnet function +/* Use telnet server +* Enable telnet light (raw tcp) communications +*/ #define TELNET_FEATURE -//WS_DATA_FEATURE: allow to connect serial from Websocket +/* Use Websocket server +* Enable websocket communications +*/ //#define WS_DATA_FEATURE -//DISPLAY_DEVICE: allow screen output -//OLED_I2C_SSD1306_128X64 1 -//OLED_I2C_SSDSH1106_132X64 2 -//TFT_SPI_ST7789_240X240 5 -//TFT_SPI_ST7789_135X240 6 -//#define DISPLAY_DEVICE TFT_SPI_ST7789_240X240 - -//#define DISPLAY_I2C_ADDR 0x3c -//#define DISPLAY_I2C_PIN_RST 16 //comment if not applicable -//#define DISPLAY_FLIP_VERTICALY 1 -//#define DISPLAY_TOUCH_DRIVER XPT2046_SPI -//#define DISPLAY_LED_PIN 27 //-1 if none - -//BUZZER_DEVICE: allow to connect passive buzzer -//#define BUZZER_DEVICE - -//Printer has display and can show message using `M117 ` -//#define PRINTER_HAS_DISPLAY - -//INPUT_DEVICE: allow input -//ROTARY_ENCODER 1 -//#define INPUT_DEVICE ROTARY_ENCODER - -//SENSOR_DEVICE: send info based on defined sensor -//DHT11_DEVICE 1 -//DHT22_DEVICE 2 -//ANALOG_DEVICE 3 -//BMP280_DEVICE 4 -//BME280_DEVICE 5 -//#define SENSOR_DEVICE BMP280_DEVICE - -#ifdef BUZZER_DEVICE -#define ESP3D_BUZZER_PIN 15 -#endif //BUZZER_DEVICE - -#ifdef SENSOR_DEVICE -//pin -#define ESP3D_SENSOR_PIN 22 -#define SENSOR_ADDR 0x76 -//Conversion coefficient -#define SENSOR_CONVERTER(v) v*0.588 -//Unit to use, if not applicaple for sensor will use default one -//it is used also for the output format -//C for Celsius / F for Fahrenheit / V for volt -#define SENSOR__UNIT "C" -#endif //SENSOR_DEVICE - -//PIN_RESET_FEATURE : allow to reset settings by setting low a pin -//#define PIN_RESET_FEATURE -//#define ESP3D_RESET_PIN 0 - - -//SD_DEVICE: to access SD Card files directly instead of access by serial using printer Board FW -//ESP_SD_NATIVE 1 //esp32 / esp8266 -//ESP_SDIO 2 //esp32 only -//ESP_SDFAT 3 //esp8266 / esp32 -//ESP_SDFAT2 4 //esp8266 / esp32 -//#define SD_DEVICE ESP_SDFAT2 - -#if defined(SD_DEVICE) -//SDIO mode -//SD_ONE_BIT_MODE -//SD_FOUR_BIT_MODE -//#define SDIO_BIT_MODE SD_ONE_BIT_MODE - -//SD Device Connection type (default is ESP_NO_SD if not defined) -//ESP_NO_SD -//ESP_DIRECT_SD -//ESP_SHARED_SD -#define SD_DEVICE_CONNECTION ESP_SHARED_SD - - -#if SD_DEVICE_CONNECTION == ESP_SHARED_SD -//Pin used by multiplexer or hardware switch to select SD device -#define ESP_FLAG_SHARED_SD_PIN 0 -//value to enable SD device on ESP -#define ESP_FLAG_SHARED_SD_VALUE 0 -#endif //SD_DEVICE_CONNECTION ESP_SHARED_SD - -//pin if reader has insert detection feature -//let -1 or comment if none -#define ESP_SD_DETECT_PIN 4 -//value expected for ESP_SD_DETECT_PIN (0 or 1) -#define ESP_SD_DETECT_VALUE 0 - -#define ESP_SD_CS_PIN 5 -#endif //SD_DEVICE - -//FILESYSTEM_FEATURE: to host some files on flash -//ESP_SPIFFS_FILESYSTEM 0 -//ESP_FAT_FILESYSTEM 1 -//ESP_LITTLEFS_FILESYSTEM 2 -#define FILESYSTEM_FEATURE ESP_LITTLEFS_FILESYSTEM - -//Allows to mount /FS and /SD under / for FTP server -//#define GLOBAL_FILESYSTEM_FEATURE - -//WEBDAV_FEATURE : enable WebDav feature -//FS_ROOT mount all FS -//FS_FLASH mount Flash FS -//FS_SD mount SD FS -//FS_USBDISK mount USB disk FS - -//#define WEBDAV_FEATURE FS_FLASH - -//FTP_FEATURE : enable FTP feature -//FS_ROOT mount all FS -//FS_FLASH mount Flash FS -//FS_SD mount SD FS -//FS_USBDISK mount USB disk FS -//#define FTP_FEATURE FS_ROOT - -//DIRECT_PIN_FEATURE: allow to access pin using ESP201 command -#define DIRECT_PIN_FEATURE - -//TIMESTAMP_FEATURE: set time system -#define TIMESTAMP_FEATURE - -//FILESYSTEM_TIMESTAMP_FEATURE: display last write time from Flash files -//#define FILESYSTEM_TIMESTAMP_FEATURE - -//FILESYSTEM_TIMESTAMP_FEATURE:display last write time from SD files -#define SD_TIMESTAMP_FEATURE - -//MDNS_FEATURE: this feature allow type the name defined -//in web browser by default: http:\\esp8266.local and connect -//need `bonjour` protocol on windows -#define MDNS_FEATURE - -//SSDP_FEATURE: this feature is a discovery protocol, supported on Windows out of the box -#define SSDP_FEATURE - -//CAPTIVE_PORTAL_FEATURE: In SoftAP redirect all unknow call to main page -#define CAPTIVE_PORTAL_FEATURE - -//OTA_FEATURE: this feature is arduino update over the air -//#define OTA_FEATURE - -//WEB_UPDATE_FEATURE: allow to flash fw using web UI -#define WEB_UPDATE_FEATURE - -//SD_UPDATE_FEATURE: allow to flash/configure fw using SD -//#define SD_UPDATE_FEATURE - -//NOTIFICATION_FEATURE : allow to push notifications +// Enable notifications +// Allows to send notifications to the user #define NOTIFICATION_FEATURE -//Notifications messages +/* Notification message when online +* The message that will be sent when the ESP is online +*/ #define NOTIFICATION_ESP_ONLINE "Hi, %ESP_NAME% is now online at %ESP_IP%" + +/* Notification title message +* The title of notification +*/ #define ESP_NOTIFICATION_TITLE "ESP3D Notification" -//CAMERA_DEVICE: Enable the support of connected camera (Only Camera with PSRAM are supported) -//CAMERA_MODEL_CUSTOM 0 //Edit the pins in include/pins.h -//CAMERA_MODEL_ESP_EYE 1 -//CAMERA_MODEL_M5STACK_PSRAM 2 -//CAMERA_MODEL_M5STACK_V2_PSRAM 3 -//CAMERA_MODEL_M5STACK_WIDE 4 -//CAMERA_MODEL_AI_THINKER 7 e.g. used by ESP32-CAM -//CAMERA_MODEL_WROVER_KIT 8 -//CAMERA_MODEL_ESP32_CAM_BOARD 10 -//CAMERA_MODEL_ESP32S2_CAM_BOARD 11 -//CAMERA_MODEL_ESP32S3_CAM_LCD 12 -//CAMERA_MODEL_ESP32S3_EYE 13 +/************************************ +* +* Discovery methods of ESP3D +* +* The discovery methods of ESP3D +* +************************************/ + +/* Use captive portal +* Enable captive portal in AP mode +*/ +#define CAPTIVE_PORTAL_FEATURE + +/* Use mDNS discovery +* This method need `bonjour` protocol on windows, or `avahi` on linux +*/ +#define MDNS_FEATURE + +/* Use Simple Service Discovery Protocol +* It is supported on Windows out of the box +*/ +#define SSDP_FEATURE + +/************************************ +* +* SSDP Customization settings +* +* Customize your ESP3D +* +************************************/ + +/* Model name +* Modele name of device +*/ +#define ESP_MODEL_NAME "ESP Board" + +/* Model number +* Modele number of device +*/ +#define ESP_MODEL_NUMBER "ESP3D 3.0" + +/* Model url +* Modele url of device +*/ +#define ESP_MODEL_URL "https://www.espressif.com/en/products/devkits" + +/* Manufacturer name +* Manufacturer name of device +*/ +#define ESP_MANUFACTURER_NAME "Espressif Systems" + +/* Manufacturer url +* Manufacturer url of device +*/ +#define ESP_MANUFACTURER_URL "https://www.espressif.com" + +/************************************ +* +* Flash filesystem +* +* Filesystem on flash +* +************************************/ + +/* File system type used by ESP3D +* Type of file system used by ESP3D to store files +* ESP_SPIFFS_FILESYSTEM (Deprecated) +* ESP_FAT_FILESYSTEM (ESP32 only with large partitions) +* ESP_LITTLEFS_FILESYSTEM (Default) +*/ +#define FILESYSTEM_FEATURE ESP_LITTLEFS_FILESYSTEM + +/* Enable date/time on files +* Set date/time on files using SNTP or last webui connection +*/ +//#define FILESYSTEM_TIMESTAMP_FEATURE + +/************************************ +* +* SD filesystem +* +* Filesystem on SD card +* +************************************/ + +/* SD card connection +* ESP_NO_SD //(default) +* ESP_DIRECT_SD //Only your ESP board is connected to SDCard +* ESP_SHARED_SD //Printer SD Card is also connected to ESP3D +* Does your system has SD card and how it is connected to your ESP3D +*/ +#define SD_DEVICE_CONNECTION ESP_DIRECT_SD + +/* SD card library +* ESP_SD_NATIVE //esp32 / esp8266 +* ESP_SDIO //esp32 only +* ESP_SDFAT //esp8266 / esp32 +* ESP_SDFAT2 //esp8266 / esp32 +*/ +#define SD_DEVICE ESP_SDFAT2 + +/* Sdio bit mode +* Mode used by SDIO library 1 bit / 4bits +* SD_ONE_BIT_MODE +* SD_FOUR_BIT_MODE +*/ +//#define SDIO_BIT_MODE SD_ONE_BIT_MODE + +/* Enable date/time on files +* Set date/time on files using SNTP or last webui connection +*/ +//#define SD_TIMESTAMP_FEATURE + +/************************************ +* +* SD card pins +* +************************************/ + +/* SD card detect pin +* The pin used to detect SD card +*/ +//#define ESP_DETECT_PIN 4 + +/* SD card detect pin value +* State of SD card detect pin when card is present +*/ +//#define ESP_SD_DETECT_VALUE 0 + +/* SD shared flag pin +* The pin used to enable SD card for ESP board +*/ +//#define ESP_FLAG_SHARED_SD_PIN -1 + +/* SD shared flag pin value +* State of SD card shared pin for ESP board +*/ +//#define ESP_FLAG_SHARED_SD_VALUE 0 + +/* SD card CS pin +* The pin used to select SD card in SPI mode +*/ +//#define ESP_SD_CS_PIN 5 + +/************************************ +* +* Remote access +* +* Remote filesystem access +* +************************************/ + +/* Enable global filesystem +* Allows to access to all filesystems from same location +*/ +//#define GLOBAL_FILESYSTEM_FEATURE + +/* WebDav access +* Use WebDav to access to your filesystem +* FS_ROOT //mount all FS, need GLOBAL_FILESYSTEM_FEATURE +* FS_FLASH //mount Flash FS +* FS_SD mount SD FS +*/ +//#define WEBDAV_FEATURE FS_ROOT + +/* FTP access +* Use FTP to access to your filesystem (1 connection only) +* FS_ROOT //mount all FS, need GLOBAL_FILESYSTEM_FEATURE +* FS_FLASH //mount Flash FS +* FS_SD //mount SD FS +*/ +//#define FTP_FEATURE FS_ROOT + +/************************************ +* +* Reset ESP3D +* +* Reset ESP3D settings +* +************************************/ + +/* Enable pin reset feature +* Use a pin to reset ESP3D settings +*/ +#define PIN_RESET_FEATURE + +/* Reset pin +* The pin used to reset ESP3D setting if set to low for more than 1 second at start +*/ +#define ESP3D_RESET_PIN 0 + +/************************************ +* +* Update ESP3D +* +* Update ESP3D firmware +* +************************************/ + +/* Enable OTA +* Over The Air Update (OTA) +*/ +//#define OTA_FEATURE + +/* Enable Web Update +* Update firmware using WebUI, need 4MB of flash +*/ +#define WEB_UPDATE_FEATURE + +/* Enable SD card Update +* Update firmware and settings using file on SDCard +*/ +//#define SD_UPDATE_FEATURE + +/************************************ +* +* Display settings +* +* Rendering screens +* +************************************/ + +/* Printer screen +* If your printer has a display +*/ +#define PRINTER_HAS_DISPLAY + +/* ESP3D screen +* Screen connected to ESP board +* OLED I2C SSD1306 128X64 +* OLED_I2C_SSDSH1106_132X64 +* TFT_SPI_ST7789_240X240 +* TFT_SPI_ST7789_135X240 +*/ +//#define DISPLAY_DEVICE OLED_I2C_SSD1306_128X64 + +/* Flip screen +* Flip/rotate screen +*/ +//#define DISPLAY_FLIP_VERTICALY + +/* Display i2C address +* Wire address of display +*/ +//#define DISPLAY_I2C_ADDR 0x3c + +/* Display reset pin +* The pin used to reset the screen (optional) +*/ +//#define DISPLAY_I2C_PIN_RST 22 + +/* TFT led pin +* The pin used for the backlight +* +//#define DISPLAY_LED_PIN -1 + +/************************************ +* +* Audio settings +* +* Buzzer feature +* +************************************/ + +/* Enable buzzer +* Your esp board has a passive buzzer +*/ +//#define BUZZER_DEVICE + +/* Buzzer pin +* The pin used for the passive buzzer +*/ +#define ESP3D_BUZZER_PIN 33 + +/************************************ +* +* Sensor settings +* +* Sensor feature +* +************************************/ +/* Sensor pin +* The pin used for the sensor +*/ +#define ESP3D_SENSOR_PIN 34 + +/* Sensor Unit +* Unit of the sensor result +*/ +#define SENSOR__UNIT "C" + +/************************************ +* +* Camera settings +* +* Connected camera +* +************************************/ + +/* Camera type +* CAMERA_MODEL_CUSTOM //Edit the pins in include/pins.h +* CAMERA_MODEL_ESP_EYE +* CAMERA_MODEL_M5STACK_PSRAM +* CAMERA_MODEL_M5STACK_V2_PSRAM +* CAMERA_MODEL_M5STACK_WIDE +* CAMERA_MODEL_AI_THINKER //ESP32-CAM +* CAMERA_MODEL_WROVER_KIT +* CAMERA_MODEL_ESP32_CAM_BOARD +* CAMERA_MODEL_ESP32S2_CAM_BOARD +* CAMERA_MODEL_ESP32S3_CAM_LCD +* CAMERA_MODEL_ESP32S3_EYE +* Camera connected to ESP board, only ones with PSRAM are supported +*/ //#define CAMERA_DEVICE CAMERA_MODEL_AI_THINKER -//#define USE_BOARD_HEADER 1 //CAMERA_MODEL_ESP32_CAM_BOARD /CAMERA_MODEL_ESP32S2_CAM_BOARD -//#define CAMERA_DEVICE_FLIP_VERTICALY //comment to disable -//#define CAMERA_DEVICE_FLIP_HORIZONTALY//comment to disable -//#define CUSTOM_CAMERA_NAME "ESP32-CAM" +/* Flip vertically +* Flip camera vertically +*/ +//#define CAMERA_DEVICE_FLIP_VERTICALY -//Allow remote access by enabling cross origin access -//check https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS -//this should be enabled only in specific cases -//like show the camera in web page different than device web server -//if you do not know what is that then better left it commented +/************************************ +* +* Levels of security +* +* How commands are allowed to be sent to ESP3D +* +************************************/ + +/* Enable serial commands +* Allow commands to be sent to ESP3D via serial port +*/ +#define SERIAL_COMMAND_FEATURE + +/* Allow remote access by enabling cross origin access +* check https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS +* this should be enabled only in specific cases +* like show the camera in web page different than device web server +* /if you do not know what is that then better left it commented +* Allow to show the camera in web page different than device web server +*/ //#define ESP_ACCESS_CONTROL_ALLOW_ORIGIN -//GCODE_HOST_FEATURE : allow to send GCODE with ack -#define GCODE_HOST_FEATURE +/* Enable authentication +* Force usage of authentication for commands +*/ +//#define AUTHENTICATION_FEATURE -//ESP_AUTOSTART_SCRIPT : to do some actions / send GCODE at start, need ESP_GCODE_HOST_FEATURE enabled -//can be a line od several GCODES separated by `\n` e.g. "M21\nM117 SD mounted\n" -//can be a file name, if exists, commands inside will be processed, e.g "/FS:/autostart.esp" +/************************************ +* +* Additional features +* +* Extra settings +* +************************************/ + +/* Enable direct control pin +* Controls pins using [ESP201] +* +#define DIRECT_PIN_FEATURE + +/************************************ +* +* Scripting settings +* +* Scripting on ESP3D +* +************************************/ +/* Enable Autostart +* Commands to run on startup +* Separate commands with ';' or use file +*/ //#define ESP_AUTOSTART_SCRIPT "M117 Mounting SD;M21" //#define ESP_AUTOSTART_SCRIPT_FILE "autoscript.gco" -//ESP_LUA_INTERPRETER_FEATURE : add lua scripting feature +/* Enable lua interpreter +* Allow to use lua interpreter on ESP3D +*/ //#define ESP_LUA_INTERPRETER_FEATURE -//Extra features ///////////////////////////////////////////////////////////////////////// +/* Gcode Host Feature +* This feature allows to process Gcode files like macros. +*/ +#define GCODE_HOST_FEATURE + +/* Settings location +* SETTINGS_IN_EEPROM //ESP8266/ESP32 +* SETTINGS_IN_PREFERENCES //ESP32 only +* Location where ESP3D will save settings +*/ +#define ESP_SAVE_SETTINGS SETTINGS_IN_EEPROM + +/* Add serial task +* ESP32 need to add a task to handle serial communication +*/ +#define SERIAL_INDEPENDANT_TASK + + + /************************************ - * - * DEBUG - * - * **********************************/ +* +* Development setting +* Do not modify them for production +************************************/ + +//Enable debug mode //Do not do this when connected to printer !!! //be noted all upload may failed if enabled -//DEBUG_OUTPUT_SERIAL0 1 -//DEBUG_OUTPUT_SERIAL1 2 -//DEBUG_OUTPUT_SERIAL2 3 -//DEBUG_OUTPUT_TELNET 4 -//DEBUG_OUTPUT_WEBSOCKET 5 +//DEBUG_OUTPUT_SERIAL0 +//DEBUG_OUTPUT_SERIAL1 +//DEBUG_OUTPUT_SERIAL2 +//DEBUG_OUTPUT_TELNET +//DEBUG_OUTPUT_WEBSOCKET //#define ESP_DEBUG_FEATURE DEBUG_OUTPUT_SERIAL0 #ifdef ESP_DEBUG_FEATURE @@ -273,86 +559,32 @@ #define DEBUG_ESP3D_OUTPUT_PORT 8000 #endif //ESP_DEBUG_FEATURE -/************************************ - * - * Serial Communications - * - * **********************************/ -//which serial ESP use to communicate to printer (ESP32 has 3 serials available, ESP8266 only 2) -//USE_SERIAL_0 for ESP8266/32 -//USE_SERIAL_1 for ESP8266/32 -//USE_SERIAL_2 for ESP32 Only -#define ESP_SERIAL_OUTPUT USE_SERIAL_0 - -//Serial rx buffer size is 256 but can be extended -#define SERIAL_RX_BUFFER_SIZE 512 - -/************************************ - * - * Benchmark report - * - * **********************************/ +//Enable benchmark report in dev console //#define ESP_BENCHMARK_FEATURE -//Serial need speed up on esp32 -#define SERIAL_INDEPENDANT_TASK - -/************************************ - * - * Settings - * - * **********************************/ -//SETTINGS_IN_EEPROM 0 -//SETTINGS_IN_PREFERENCES 1 -#define ESP_SAVE_SETTINGS SETTINGS_IN_EEPROM - -/************************************ - * - * SSL Client - * - * **********************************/ -//Using BearSSL need to decrease size of packet to not be OOM on ESP8266 -#define BEARSSL_MFLN_SIZE 512 -#define BEARSSL_MFLN_SIZE_FALLBACK 4096 - -/************************************ - * - * Disable sanity check - * - * **********************************/ +//Disable sanity check at compilation //#define ESP_NO_SANITY_CHECK -/************************************ - * - * Target Firmware (default is UNKNOWN_FW) - * - * **********************************/ -//UNKNOWN_FW 0 -//GRBL 10 -//MARLIN 20 -//SMOOTHIEWARE 40 -//REPETIER 50 -///REPRAP 70 - -//#define DEFAULT_FW UNKNOWN_FW /************************************ - * - * Customize ESP3D - * - * **********************************/ -#if defined( ARDUINO_ARCH_ESP8266) -#define ESP_MODEL_NAME "ESP8266" -#endif //ARDUINO_ARCH_ESP8266 -#if defined( ARDUINO_ARCH_ESP32) -#define ESP_MODEL_NAME "ESP32" -#endif //ARDUINO_ARCH_ESP32 -#define ESP_MODEL_URL "https://www.espressif.com/en/products" -#define ESP_MODEL_NUMBER "ESP3D 3.0" -#define ESP_MANUFACTURER_NAME "Espressif Systems" -#define ESP_MANUFACTURER_URL "http://espressif.com" +* +* Sanity checks +* Do not modify +************************************/ +#if defined (SD_TIMESTAMP_FEATURE) || defined (FILESYSTEM_TIMESTAMP_FEATURE) +#define TIMESTAMP_FEATURE +#endif //SD_TIMESTAMP_FEATURE || FILESYSTEM_TIMESTAMP_FEATURE +#if defined(PRINTER_HAS_DISPLAY) +#define HAS_SERIAL_DISPLAY "" +#endif // PRINTER_HAS_DISPLAY + +#if defined(CAMERA_DEVICE) +#if CAMERA_DEVICE==CAMERA_MODEL_ESP32_CAM_BOARD || CAMERA_DEVICE==CAMERA_MODEL_ESP32S2_CAM_BOARD +#define USE_BOARD_HEARDER 1 +#endif // CAMERA_DEVICE==CAMERA_MODEL_ESP32_CAM_BOARD || CAMERA_DEVICE==CAMERA_MODEL_ESP32S2_CAM_BOARD +#endif // CAMERA_DEVICE #if !defined(WIFI_FEATURE) && !defined(ETH_FEATURE) #undef HTTP_FEATURE @@ -366,13 +598,4 @@ #undef NOTIFICATION_FEATURE #endif -/************************************ - * - * Printer display (M117 support) - * - * **********************************/ -#if defined(PRINTER_HAS_DISPLAY) -#define HAS_SERIAL_DISPLAY "" -#endif //PRINTER_HAS_DISPLAY - #endif //_CONFIGURATION_H