diff --git a/astyle.bat b/astyle.bat new file mode 100644 index 00000000..bd71600b --- /dev/null +++ b/astyle.bat @@ -0,0 +1,7 @@ + +cd %~dp0esp3d +astyle --recursive --style=otbs *.h *.cpp *.ino +del /S *.ori +dir +cd .. +pause diff --git a/docs/Commands.txt b/docs/Commands.txt new file mode 100644 index 00000000..f81c9dec --- /dev/null +++ b/docs/Commands.txt @@ -0,0 +1,140 @@ +Note: +1 - add space to separate parameters +2 - if parameter has space add \ in front of space to not be seen as separator + +* Set/Get STA SSID +[ESP100]pwd= + +* Set STA Password +[ESP101]pwd= + +* Set/Get STA IP mode (DHCP/STATIC) +[ESP102]pwd= + +* Set/Get STA IP/Mask/GW +[ESP103]IP= MSK= GW= pwd= + +* Set/Get AP SSID +[ESP105]pwd= + +* Change AP Password +[ESP106]pwd= + +* Set/Get AP IP +[ESP107]pwd= + +* Set/Get AP channel +[ESP108]pwd= + +* Set/Get radio state which can be WIFI-STA, WIFI-AP, BT, ETH-STA, ETH-AP, OFF +[ESP110]pwd= + +* Get current IP +[ESP111]
+ +* Get/Set hostname +[ESP112] pwd= + +* Get/Set immediate network(WiFi/BT/Ethernet) state which can be ON, OFF +[ESP115]pwd= + +* Get/Set HTTP state which can be ON, OFF +[ESP120]pwd= + +* Get/Set HTTP port +[ESP121]pwd= + +* Get/Set Telnet state which can be ON, OFF +[ESP130]pwd= + +* Get/Set Telnet port +[ESP131]pwd= + +* Init / Get current time +[ESP140] pwd= + +*Get/Set pin value +[ESP201]P V [PULLUP=YES RAW=YES]pwd= +if no V get P value +if V 0/1 set INPUT_PULLUP value, but for GPIO16(ESP8266) INPUT_PULLDOWN_16 +if PULLUP=YES set input pull up (for GPIO16(ESP8266) INPUT_PULLDOWN_16), if not set input +if RAW=YES do not set pinmode just read value +Flash pins (6~11) cannot be used + +* Get full EEPROM settings content +but do not give any passwords +[ESP400] pwd= + +*Set EEPROM setting +position in EEPROM, type: B(byte), I(integer/long), S(string), A(IP address / mask) +[ESP401]P= T= V= pwd= +Description: Positions: +ESP_RADIO_MODE 0 //1 byte = flag +ESP_STA_SSID 1 //33 bytes 32+1 = string ; warning does not support multibyte char like chinese +ESP_STA_PASSWORD 34 //65 bytes 64 +1 = string ;warning does not support multibyte char like chinese +ESP_STA_IP_MODE 99 //1 byte = flag +ESP_STA_IP_VALUE 100 //4 bytes xxx.xxx.xxx.xxx +ESP_STA_MASK_VALUE 104 //4 bytes xxx.xxx.xxx.xxx +ESP_STA_GATEWAY_VALUE 108 //4 bytes xxx.xxx.xxx.xxx +ESP_BAUD_RATE 112 //4 bytes = int +ESP_STA_PHY_MODE 116 //1 byte = flag +ESP_SLEEP_MODE 117 //1 byte = flag +ESP_AP_CHANNEL 118 //1 byte = flag +ESP_AP_AUTH_TYPE 119 //1 byte = flag +ESP_SSID_VISIBLE 120 //1 byte = flag +ESP_HTTP_PORT 121 //4 bytes = int +ESP_TELNET_PORT 125 //4 bytes = int +ESP_OUTPUT_FLAG 129 //1 bytes = flag +ESP_HOSTNAME 130 //33 bytes 32+1 = string ; warning does not support multibyte char like chinese +ESP_DHT_INTERVAL 164 //4 bytes = int +ESP_SETTINGS_VERSION 168 //8 bytes = 7+1 = string ESP3D + 2 digits +ESP_ADMIN_PWD 176 //21 bytes 20+1 = string ; warning does not support multibyte char like chinese +ESP_USER_PWD 197 //21 bytes 20+1 = string ; warning does not support multibyte char like chinese +ESP_AP_SSID 218 //33 bytes 32+1 = string ; warning does not support multibyte char like chinese +ESP_AP_PASSWORD 251 //65 bytes 64 +1 = string ;warning does not support multibyte char like chinese +ESP_AP_IP_VALUE 316 //4 bytes xxx.xxx.xxx.xxx + +ESP_HTTP_ON 328 //1 byte = flag +ESP_TELNET_ON 329 //1 byte = flag +ESP_AP_PHY_MODE 330 //1 byte = flag +ESP_SD_SPEED_DIV 331 //1 byte = flag + +ESP_DHT_TYPE 460//1 bytes = flag +ESP_TARGET_FW 461 //1 bytes = flag +ESP_TIMEZONE 462//1 bytes = flag +ESP_TIME_IS_DST 463//1 bytes = flag +ESP_TIME_SERVER1 464//129 bytes 128+1 = string ; warning does not support multibyte char like chinese +ESP_TIME_SERVER2 593 //129 bytes 128+1 = string ; warning does not support multibyte char like chinese +ESP_TIME_SERVER3 722 //129 bytes 128+1 = string ; warning does not support multibyte char like chinese +ESP_IS_DIRECT_SD 850//1 bytes = flag +ESP_PRIMARY_SD 851//1 bytes = flag +ESP_SECONDARY_SD 852//1 bytes = flag +ESP_DIRECT_SD_CHECK 853//1 bytes = flag +ESP_SD_CHECK_UPDATE_AT_BOOT 854//1 bytes = flag + +*Get available AP list (limited to 30) +output is JSON or plain text according parameter +[ESP410] + +*Get current settings of ESP3D +output is plain text +[ESP420] + +* Set ESP State +cmd are RESTART / RESET +[ESP444] + +* Change admin password +[ESP550]pwd= + +* Change user password +[ESP555]pwd= + +* Format ESP Filesystem +[ESP710]FORMAT pwd= + +* List ESP Filesystem +[ESP720] pwd= + +* FW Informations +[ESP800] pwd= diff --git a/docs/Files/favicon.ico b/docs/Files/favicon.ico new file mode 100644 index 00000000..6794fd9f Binary files /dev/null and b/docs/Files/favicon.ico differ diff --git a/embedded/build.bat b/embedded/build.bat index 77957010..71939f7d 100644 --- a/embedded/build.bat +++ b/embedded/build.bat @@ -4,6 +4,7 @@ cmd.exe /c bin2c -o embedded.h -m tool.html.gz cat header.txt > out.h cat embedded.h >> out.h cat footer.txt >> out.h +sed -i "s/] =/] PROGMEM =/g" out.h cat out.h > embedded.h cat out.h > ../esp3d/src/modules/http/embedded.h rm -f out.h diff --git a/embedded/embedded.h b/embedded/embedded.h index 31ad3b91..adff641c 100644 --- a/embedded/embedded.h +++ b/embedded/embedded.h @@ -25,377 +25,383 @@ /* Generated by bin2c, do not edit manually */ /* Contents of file tool.html.gz */ -#define tool_html_gz_size 5916 -const unsigned char tool_html_gz[5916] = { - 0x1F, 0x8B, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xED, 0x3C, 0x69, 0x73, 0xDB, 0x46, - 0x96,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EC, 0x0B, 0x44, 0x00, 0xE8, - 0x47, 0x28, 0x12, 0x88, 0x23, 0xD7, 0x31, 0x7A, 0xD6, 0x85, 0xD1, 0x31, 0x09, 0x62, 0x81, 0x18, - 0x20, 0x02, 0x3D, 0x94, 0x89, 0x8B, 0x78, 0x02, 0x40, 0x58, 0xDA, 0x45, 0x44, 0x7A, 0x04, 0x51, - 0xB7, 0x49, 0x27, 0x14, 0xEB, 0x02, 0xFD, 0x46, 0x87, 0xB8, 0x40, 0x67, 0x07, 0xD8, 0x0D, 0xF4, - 0xC3, 0xC2, 0x70, 0x07, 0x2C, 0x12, 0x9D, 0x21, 0x0C, 0xBC, 0xB0, 0x1C, 0x04, 0x2B, 0x67, 0x3A, - 0x44, 0x72, 0x16, 0x49, 0x76, 0xBB, 0x04, 0x08, 0x86, 0x95, 0xC4, 0x6A, 0x16, 0xCC, 0x84, 0x9E, - 0x10, 0xB1, 0x84, 0x95, 0x60, 0x3D, 0x89, 0x23, 0xF4, 0x86, 0x82, 0x02, 0x68, 0x46, 0x36, 0x23, - 0x4D, 0xDF, 0x84, 0xA0, 0x7B, 0xC0, 0xD0, 0x0B, 0xA3, 0xD7, 0x47, 0x4A, 0x05, 0xAB, 0x3B, 0x0E, - 0x87, 0xAF, 0x60, 0x48, 0xB3, 0xCD, 0x8B, 0xBB, 0xAC, 0x13, 0xAF, 0x70, 0x81, 0x0E, 0xD9, 0x6E, - 0x14, 0x77, 0xB2, 0xEB, 0x1B, 0xE8, 0x52, 0x0B, 0x95, 0x09, 0x2E, 0x73, 0xF8, 0x82, 0xF2, 0x8E, - 0xC9, 0x09, 0xA4, 0x36, 0x51, 0x6E, 0x1F, 0x59, 0x05, 0x47, 0xC7, 0xAF, 0x82, 0x64, 0xB9, 0x81, - 0x14, 0x08, 0x86, 0xC1, 0x00, 0x18, 0xED, 0xC1, 0x17, 0x8D, 0xE9, 0x8F, 0x1B, 0x94, 0xF1, 0xE1, - 0xE5, 0xCF, 0xEF, 0x4F, 0x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0x3E, 0xFD, 0xFD, 0xF9, 0xD9, 0xD9, 0x87, 0xB7, 0xEF, 0x5E, 0xEC, 0x1F, 0xC2, - 0x71, 0xC8, 0xD9, 0xFB, 0x9F, 0xDF, 0x9C, 0x9E, 0x8F, 0xAE, 0x71, 0x5B, 0x2E, 0xD8, 0x17, 0x11, - 0x82, 0xBB, 0xB7, 0x86, 0x83, 0x9D, 0xAD, 0xE1, 0x27, 0xD0, 0xA6, 0xEA, 0x02, 0x51, 0x25, 0x04, - 0xD5, 0x2A, 0x21, 0x2F, 0x03, 0x2A, 0xF9, 0x56, 0x90, 0x97, 0x0A, 0x83, 0xAC, 0xE2, 0x07, 0x51, - 0x07, 0xE5, 0x32, 0x21, 0x12, 0x61, 0x28, 0xC8, 0xCA, 0x84, 0x4D, 0x10, 0xF9, 0xF1, 0x66, 0x8F, - 0xE3, 0xCE, 0xE6, 0xDF, 0x0E, 0x4F, 0x5A, 0xEA, 0xDD, 0xCF, 0x93, 0x96, 0x7A, 0xE5, 0x5C, 0xFC, - 0xCF, 0x02, 0xFF, 0x0F, 0x90, 0xD3, 0xC8, 0x0C, 0x33, 0x50, 0x00, 0x00 +#define tool_html_gz_size 6005 +const unsigned char tool_html_gz[6005] PROGMEM = { + 0x1F, 0x8B, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xED, 0x3C, 0x69, 0x77, 0xDB, 0xB6, + 0x96, 0x7F, 0x85, 0x41, 0x4F, 0x2D, 0x71, 0x4C, 0x4A, 0xDC, 0xB4, 0x5B, 0xCA, 0x4B, 0x9B, 0xA4, + 0xF5, 0x9C, 0xA4, 0xC9, 0x89, 0x9D, 0x97, 0x99, 0x93, 0xE4, 0xE4, 0x50, 0x22, 0x24, 0x71, 0x42, + 0x91, 0x32, 0x09, 0x59, 0x76, 0x1C, 0xCF, 0x6F, 0x9F, 0x7B, 0x01, 0x90, 0x04, 0xB5, 0x79, 0x69, + 0xDE, 0xBC, 0x7E, 0x68, 0x15, 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 0x76, 0xDD, 0x07, 0xC6, 0x05, 0x34, 0xCE, 0x51, 0x5F, 0xA6, 0x33, 0xB1, 0x24, + 0xBF, 0x81, 0x04, 0x91, 0x67, 0x69, 0x5C, 0x29, 0x25, 0x08, 0x48, 0xEE, 0x52, 0xF1, 0xDD, 0x21, + 0xBF, 0x7D, 0xAC, 0x93, 0x72, 0x17, 0x99, 0x5E, 0x1E, 0x33, 0xB8, 0x4A, 0x3E, 0x84, 0x15, 0x15, + 0xBA, 0x7F, 0x4D, 0x16, 0x0B, 0xC8, 0x62, 0xEB, 0xB5, 0x28, 0xCC, 0x58, 0xCD, 0xA8, 0xF9, 0x51, + 0x54, 0x53, 0xD8, 0xF0, 0x8E, 0x4E, 0x01, 0xDB, 0xB9, 0xA2, 0xF4, 0xEA, 0xAA, 0x88, 0x67, 0x01, + 0xED, 0xD7, 0x94, 0x42, 0x00, 0x0A, 0xC2, 0xB4, 0xAE, 0x93, 0x8D, 0x88, 0x59, 0x89, 0x71, 0x9E, + 0x55, 0x86, 0x38, 0xBC, 0xAF, 0x44, 0x38, 0x0F, 0xFF, 0xC1, 0xF8, 0x14, 0xF4, 0x40, 0x83, 0xB6, + 0x16, 0xD1, 0xAE, 0x91, 0x77, 0x24, 0x9F, 0xED, 0x2A, 0xB3, 0x1D, 0xB8, 0x4F, 0x61, 0x90, 0x03, + 0x97, 0x6B, 0x7E, 0x01, 0x29, 0x46, 0x43, 0x22, 0x77, 0x04, 0x48, 0xB3, 0x84, 0x83, 0x43, 0xAF, + 0x39, 0xB8, 0x3C, 0xD2, 0xB6, 0x94, 0x40, 0xDB, 0xBA, 0x13, 0x0E, 0xDA, 0x38, 0xC2, 0xB1, 0x05, + 0x42, 0x0E, 0x5C, 0x8A, 0x7D, 0x10, 0x68, 0xED, 0xCA, 0xC7, 0xB5, 0x84, 0xD8, 0x05, 0x61, 0x4B, + 0x20, 0x7C, 0x4B, 0x85, 0x8C, 0x8E, 0x81, 0x81, 0x00, 0x43, 0xFA, 0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B, 0x88, 0xF8, + 0xAA, 0xE4, 0xA3, 0x20, 0xF1, 0xA8, 0x30, 0xB8, 0x23, 0xE0, 0x46, 0xA5, 0xA3, 0x90, 0x3B, 0xC8, + 0x20, 0xB8, 0xFD, 0xA3, 0x97, 0x5B, 0xA3, 0xF1, 0xD5, 0x45, 0x8E, 0xC4, 0xD3, 0xF7, 0x67, 0x2F, + 0xDE, 0xA9, 0xC5, 0x2E, 0x3A, 0x59, 0x40, 0x21, 0x66, 0xE0, 0x7C, 0x8F, 0xC9, 0xD1, 0xDB, 0x67, + 0x67, 0x67, 0x1F, 0xDE, 0xBC, 0x7B, 0xBE, 0x7B, 0x08, 0xC3, 0x21, 0x67, 0xEF, 0x7F, 0x79, 0x7D, + 0x7A, 0x3E, 0xBC, 0xC6, 0x6D, 0xB9, 0x70, 0x57, 0x44, 0x08, 0xEF, 0xDE, 0x1A, 0x0E, 0xB7, 0xB6, + 0x86, 0x9F, 0x40, 0x9B, 0xAC, 0x0B, 0x78, 0x95, 0x10, 0x56, 0xAB, 0x84, 0xA2, 0x0C, 0xA8, 0xE4, + 0x5B, 0x61, 0x51, 0x2A, 0xF4, 0xF3, 0x8A, 0x1F, 0x44, 0x1D, 0xAA, 0x65, 0x42, 0xCC, 0xC3, 0x50, + 0x98, 0x97, 0x09, 0xEB, 0x30, 0x0E, 0x92, 0xF5, 0x0E, 0xC7, 0x9D, 0xCF, 0xBF, 0x1D, 0x9C, 0x34, + 0xE5, 0xFB, 0xAC, 0x27, 0x4D, 0xF9, 0x1A, 0x3D, 0xFF, 0x1F, 0x2E, 0xFE, 0x1F, 0xE4, 0x44, 0x87, + 0x45, 0x77, 0x51, 0x00, 0x00 }; #endif //__embedded_h \ No newline at end of file diff --git a/embedded/tool.html.gz b/embedded/tool.html.gz index 353c1720..3e1e785f 100644 Binary files a/embedded/tool.html.gz and b/embedded/tool.html.gz differ diff --git a/embedded/www/js/script.js b/embedded/www/js/script.js index f565dabd..98e870b9 100644 --- a/embedded/www/js/script.js +++ b/embedded/www/js/script.js @@ -77,6 +77,7 @@ jsonresponse.files.sort(function(a, b) { if (currentpath=="/") { display_message = true; } +var display_time =false; for (var i1=0;i1 "; + content +=""; + if (jsonresponse.files[i1].hasOwnProperty('time')){ + display_time = true; + content +=""; + content += jsonresponse.files[i1].time; + content +=""; + } else { + content +=""; + } + content +="
"; content +=trash_icon(); content +="
"; } @@ -103,11 +113,19 @@ if (String(jsonresponse.files[i2].size) == "-1") content+=""; content +=""; content +=jsonresponse.files[i2].name; - content +=""; - content +="
"; + content +=""; + if (typeof jsonresponse.files[i2].hasOwnProperty('time')){ + display_time = true; + } + content +="
"; content +=trash_icon(); content +="
"; } +} +if(display_time){ + document.getElementById('FS_time').innerHTML = ""; +} else { + document.getElementById('FS_time').innerHTML = "Time"; } if (display_message) { diff --git a/embedded/www/tool.html b/embedded/www/tool.html index cdaa4f15..8dbe8343 100644 --- a/embedded/www/tool.html +++ b/embedded/www/tool.html @@ -19,7 +19,7 @@ - Interface + Interface

@@ -53,6 +53,7 @@ Type Name Size + Time diff --git a/esp3d/data/tool.html b/esp3d/data/tool.html new file mode 100644 index 00000000..2c427d4c --- /dev/null +++ b/esp3d/data/tool.html @@ -0,0 +1 @@ +ESP3D tool page

It seems you do not have any index.html neither index.html.gz

Flash Filesystem
  

+
 
TypeNameSize
Firmware Update
\ No newline at end of file diff --git a/esp3d/src/configuration.h b/esp3d/src/configuration.h index 83002c2c..4a461566 100644 --- a/esp3d/src/configuration.h +++ b/esp3d/src/configuration.h @@ -45,21 +45,47 @@ //WS_DATA_FEATURE: allow to connect serial from Websocket //#define WS_DATA_FEATURE -//ESP_OLED_FEATURE: allow oled screen output -//#define ESP_OLED_FEATURE +//DISPLAY_DEVICE: allow screen output +//OLED_I2C_SSD1306 1 +//OLED_I2C_SSDSH1106 2 +//#define DISPLAY_DEVICE OLED_I2C_SSDSH1106 +#if defined (DISPLAY_DEVICE) +#define DISPLAY_I2C_PIN_SDA 4 +#define DISPLAY_I2C_PIN_SCL 15 +#define DISPLAY_I2C_PIN_RST 16 //comment if not applicable +#define DISPLAY_I2C_ADDR 0x3c +//#define DISPLAY_FLIP_VERTICALY 1 //comment to disable +#endif //DISPLAY_DEVICE +//DHT_DEVICE: send update of temperature / humidity based on DHT 11/22 +//#define DHT_DEVICE +#ifdef DHT_DEVICE +#define ESP3D_DHT_PIN 22 +//USE_CELSIUS +//USE_FAHRENHEIT +#define DHT_UNIT USE_CELSIUS +#endif //DHT_DEVICE + +//PIN_RESET_FEATURE : allow to reset settings by setting low a pin +#define PIN_RESET_FEATURE +#if defined (PIN_RESET_FEATURE) +#define ESP3D_RESET_PIN 4 +#endif //PIN_RESET_FEATURE //SDCARD_FEATURE: to access SD Card files directly instead of access by serial using printer Board FW //#define SDCARD_FEATURE //FILESYSTEM_FEATURE: to host some files on flash -// 0 is SPIFFS -// 1 is FAT -// 2 is LittleFS //Not Yet implemented -#define FILESYSTEM_FEATURE 0 +//ESP_SPIFFS_FILESYSTEM 0 +//ESP_FAT_FILESYSTEM 1 +//ESP_LITTLEFS_FILESYSTEM 2 //Not Yet implemented +#define FILESYSTEM_FEATURE ESP_SPIFFS_FILESYSTEM //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: allow to get last write time from FILESYSTEM files //#define FILESYSTEM_TIMESTAMP_FEATURE @@ -80,6 +106,10 @@ //WEB_UPDATE_FEATURE: allow to flash fw using web UI #define WEB_UPDATE_FEATURE +//NOTIFICATION_FEATURE : allow to push notifications +//ESP_PUSHOVER_NOTIFICATION 1 +//ESP_EMAIL_NOTIFICATION 2 +//#define NOTIFICATION_FEATURE ESP_PUSHOVER_NOTIFICATION //Extra features ///////////////////////////////////////////////////////////////////////// /************************************ @@ -89,9 +119,10 @@ * **********************************/ //Do not do this when connected to printer !!! //be noted all upload may failed if enabled -//#define DEBUG_OUTPUT_SERIAL0 -//#define DEBUG_OUTPUT_SERIAL1 -//#define DEBUG_OUTPUT_SERIAL2 +//DEBUG_OUTPUT_SERIAL0 0 +//DEBUG_OUTPUT_SERIAL1 1 +//DEBUG_OUTPUT_SERIAL2 2 +//#define ESP_DEBUG_FEATURE DEBUG_OUTPUT_SERIAL0 /************************************ * @@ -99,11 +130,10 @@ * * **********************************/ //which serial ESP use to communicate to printer (ESP32 has 3 serials available, ESP8266 only 2) -//Uncomment one only -#define USE_SERIAL_0 -//#define USE_SERIAL_1 -//For ESP32 Only -//#define USE_SERIAL_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 @@ -123,9 +153,9 @@ * Settings * * **********************************/ -#define SETTINGS_IN_EEPROM -//#define SETTINGS_IN_PREFERENCES - +//SETTINGS_IN_EEPROM 0 +//SETTINGS_IN_PREFERENCES 1 +#define ESP_SAVE_SETTINGS SETTINGS_IN_EEPROM /************************************ * diff --git a/esp3d/src/core/commands.cpp b/esp3d/src/core/commands.cpp index e24a5c78..e7243ad1 100644 --- a/esp3d/src/core/commands.cpp +++ b/esp3d/src/core/commands.cpp @@ -119,7 +119,7 @@ const char * Commands::get_param (const char * cmd_params, const char * label) if (strlen(label) > 0) { start = tmp.indexOf(slabel); if (start == -1) { - return res.c_str(); + return ""; } start+=slabel.length(); end = get_space_pos(tmp.c_str(),start); @@ -190,7 +190,7 @@ bool Commands::execute_internal_command (int cmd, const char* cmd_params, level_ //override if parameters #ifdef AUTHENTICATION_FEATURE - //do not overwrite previous authetication level + //do not overwrite previous authetic ation level if (auth_type == LEVEL_GUEST) { String pwd=get_param (cmd_params, "pwd="); auth_type = AuthenticationService::authenticated_level(pwd.c_str()); @@ -286,7 +286,7 @@ bool Commands::execute_internal_command (int cmd, const char* cmd_params, level_ case 121: response = ESP121(cmd_params, auth_type, output); break; -#endif HTTP_FEATURE +#endif //HTTP_FEATURE #ifdef TELNET_FEATURE //Set TELNET state which can be ON, OFF //[ESP130]pwd= @@ -299,7 +299,13 @@ bool Commands::execute_internal_command (int cmd, const char* cmd_params, level_ response = ESP131(cmd_params, auth_type, output); break; #endif //TELNET_FEATURE - +#ifdef TIMESTAMP_FEATURE + //Init / Get current time + //[ESP140] pwd= + case 140: + response = ESP140(cmd_params, auth_type, output); + break; +#endif //TIMESTAMP_FEATURE #ifdef DIRECT_PIN_FEATURE //Get/Set pin value //[ESP201]P V [PULLUP=YES RAW=YES]pwd= @@ -307,7 +313,13 @@ bool Commands::execute_internal_command (int cmd, const char* cmd_params, level_ response = ESP201(cmd_params, auth_type, output); break; #endif //DIRECT_PIN_FEATURE - +#ifdef DHT_DEVICE + //Get DHT Value / type/Set DHT type + //[ESP210] + case 210: + response = ESP210(cmd_params, auth_type, output); + break; +#endif //#ifdef DHT_DEVICE //Get full ESP3D settings //[ESP400] case 400: @@ -350,6 +362,13 @@ bool Commands::execute_internal_command (int cmd, const char* cmd_params, level_ response = ESP555(cmd_params, auth_type, output); break; #endif //AUTHENTICATION_FEATURE +#if defined( WIFI_FEATURE) || defined (ETH_FEATURE) + //Send Notification + //[ESP600][pwd=] + case 600: + response = ESP600(cmd_params, auth_type, output); + break; +#endif //WIFI_FEATURE || ETH_FEATURE+ #ifdef FILESYSTEM_FEATURE //Format ESP Filesystem //[ESP710]FORMAT pwd= diff --git a/esp3d/src/core/commands.h b/esp3d/src/core/commands.h index dd8d3b33..37dc99e9 100644 --- a/esp3d/src/core/commands.h +++ b/esp3d/src/core/commands.h @@ -67,9 +67,15 @@ public: bool ESP130(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); bool ESP131(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); #endif //TELNET_FEATURE +#if defined(TIMESTAMP_FEATURE) + bool ESP140(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); +#endif //TIMESTAMP_FEATURE #ifdef DIRECT_PIN_FEATURE bool ESP201(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); #endif //DIRECT_PIN_FEATURE +#ifdef DHT_DEVICE + bool ESP210(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); +#endif //DHT_DEVICE bool ESP400(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); bool ESP401(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); #if defined (WIFI_FEATURE) @@ -81,6 +87,9 @@ public: bool ESP550(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); bool ESP555(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); #endif //AUTHENTICATION_FEATURE +#if defined( WIFI_FEATURE) || defined (ETH_FEATURE) + bool ESP600(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); +#endif //WIFI_FEATURE || ETH_FEATURE #if defined(FILESYSTEM_FEATURE) bool ESP710(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); bool ESP720(const char* cmd_params, level_authenticate_type auth_level, ESP3DOutput * output); diff --git a/esp3d/src/core/debug_esp3d.cpp b/esp3d/src/core/debug_esp3d.cpp index f6bce210..faa0998e 100644 --- a/esp3d/src/core/debug_esp3d.cpp +++ b/esp3d/src/core/debug_esp3d.cpp @@ -20,8 +20,7 @@ #include "../include/esp3d_config.h" -#if defined(ARDUINO_ARCH_ESP8266) && (defined(DEBUG_OUTPUT_SERIAL0) || defined(DEBUG_OUTPUT_SERIAL1) || defined(DEBUG_OUTPUT_SERIAL2)) -#include +#if defined(ARDUINO_ARCH_ESP8266) && defined(ESP_DEBUG_FEATURE) const char * pathToFileName(const char * path) { size_t i = 0; @@ -36,4 +35,4 @@ const char * pathToFileName(const char * path) } return path+pos; } -#endif //ARDUINO_ARCH_ESP8266 + DEBUG SERIAL0/1/2 +#endif //ARDUINO_ARCH_ESP8266 && ESP_DEBUG_FEATURE diff --git a/esp3d/src/core/debug_esp3d.h b/esp3d/src/core/debug_esp3d.h index f3a3243c..3a01b187 100644 --- a/esp3d/src/core/debug_esp3d.h +++ b/esp3d/src/core/debug_esp3d.h @@ -25,29 +25,27 @@ #define log_esp3d(format, ...) #define log_esp3dS(format, ...) #define DEBUG_ESP3D_INIT -#undef DEBUG_ESP3D - +#if defined(ESP_DEBUG_FEATURE) //Serial -#if defined(DEBUG_OUTPUT_SERIAL0) || defined(DEBUG_OUTPUT_SERIAL1) || defined(DEBUG_OUTPUT_SERIAL2) +#if (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL0) || (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL1) || (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL2) #if defined(ARDUINO_ARCH_ESP8266) extern const char * pathToFileName(const char * path); #endif //ARDUINO_ARCH_ESP8266 #undef DEBUG_ESP3D_INIT #undef log_esp3d #undef log_esp3dS -#define DEBUG_ESP3D -#ifdef DEBUG_OUTPUT_SERIAL0 +#if ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL0 #define DEBUG_OUTPUT_SERIAL Serial #endif //DEBUG_OUTPUT_SERIAL0 -#ifdef DEBUG_OUTPUT_SERIAL1 +#if ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL1 #define DEBUG_OUTPUT_SERIAL Serial1 #endif //DEBUG_OUTPUT_SERIAL1 -#ifdef DEBUG_OUTPUT_SERIAL2 +#if ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL2 #define DEBUG_OUTPUT_SERIAL Serial2 #endif //DEBUG_OUTPUT_SERIAL2 #define DEBUG_ESP3D_INIT DEBUG_OUTPUT_SERIAL.begin(115200); #define log_esp3d(format, ...) DEBUG_OUTPUT_SERIAL.printf("[ESP3D][%s:%u] %s(): " format "\r\n", pathToFileName(__FILE__), __LINE__, __FUNCTION__, ##__VA_ARGS__) #define log_esp3dS(format, ...) DEBUG_OUTPUT_SERIAL.printf(format "\r\n", ##__VA_ARGS__) -#endif //defined(DEBUG_OUTPUT_SERIAL0) || defined(DEBUG_OUTPUT_SERIAL1) || defined(DEBUG_OUTPUT_SERIAL2) - +#endif //DEBUG_OUTPUT_SERIAL0 || DEBUG_OUTPUT_SERIAL1 || DEBUG_OUTPUT_SERIAL2 +#endif //ESP_DEBUG_FEATURE #endif //_DEBUG_ESP3D_H diff --git a/esp3d/src/core/esp3d.cpp b/esp3d/src/core/esp3d.cpp index a83f36c4..4bb730a9 100644 --- a/esp3d/src/core/esp3d.cpp +++ b/esp3d/src/core/esp3d.cpp @@ -34,6 +34,12 @@ #if defined(FILESYSTEM_FEATURE) #include "../modules/filesystem/esp_filesystem.h" #endif //FILESYSTEM_FEATURE +#ifdef CONNECTED_DEVICES_FEATURE +#include "../modules/devices/devices_services.h" +#endif //CONNECTED_DEVICES_FEATURE +#ifdef DISPLAY_DEVICE +#include "../modules/display/display.h" +#endif //DISPLAY_DEVICE #include "esp3doutput.h" @@ -52,14 +58,22 @@ Esp3D::~Esp3D() } //Begin which setup everything -bool Esp3D::begin(uint16_t startdelayms, uint16_t recoverydelayms) +bool Esp3D::begin(uint16_t startdelayms) { Hal::begin(); + DEBUG_ESP3D_INIT + + bool res = true; +#if defined(CONNECTED_DEVICES_FEATURE) + if (!DevicesServices::begin()) { + log_esp3d("Error setup connected devices"); + res = false; + } +#endif //CONNECTED_DEVICES_FEATURE //delay() to avoid to disturb printer delay(startdelayms); - (void)recoverydelayms; - DEBUG_ESP3D_INIT log_esp3d("Mode %d", WiFi.getMode()); + if (!Settings_ESP3D::begin()) { log_esp3d("Need reset settings"); reset(); @@ -72,23 +86,27 @@ bool Esp3D::begin(uint16_t startdelayms, uint16_t recoverydelayms) //Serial service if (!serial_service.begin()) { log_esp3d("Error with serial service"); - return false; + res = false; } //Setup Filesystem #if defined(FILESYSTEM_FEATURE) if (!ESP_FileSystem::begin()) { log_esp3d("Error with filesystem service"); - return false; + res = false; } #endif //FILESYSTEM_FEATURE //Setup Network #if defined(WIFI_FEATURE) || defined(ETH_FEATURE) if (!NetConfig::begin()) { log_esp3d("Error setup network"); - return false; + res = false; } #endif //WIFI_FEATURE - return true; +#ifdef DISPLAY_DEVICE + esp3d_display.show_screenID(MAIN_SCREEN); + log_esp3d("Main screen"); +#endif //DISPLAY_DEVICE + return res; } //Process which handle all input @@ -102,11 +120,17 @@ void Esp3D::handle() #if defined(WIFI_FEATURE) || defined(ETH_FEATURE) NetConfig::handle(); #endif //WIFI_FEATURE || ETH_FEATURE +#if defined(CONNECTED_DEVICES_FEATURE) + DevicesServices::handle(); +#endif //CONNECTED_DEVICES_FEATURE } //End ESP3D bool Esp3D::end() { +#if defined(CONNECTED_DEVICES_FEATURE) + DevicesServices::end(); +#endif //CONNECTED_DEVICES_FEATURE #if defined(WIFI_FEATURE) || defined(ETH_FEATURE) NetConfig::end(); #endif //WIFI_FEATURE || ETH_FEATURE diff --git a/esp3d/src/core/esp3d.h b/esp3d/src/core/esp3d.h index 72210d2e..d3847252 100644 --- a/esp3d/src/core/esp3d.h +++ b/esp3d/src/core/esp3d.h @@ -30,7 +30,7 @@ class Esp3D public: Esp3D(); ~Esp3D(); - bool begin(uint16_t startdelayms = 500, uint16_t recoverydelayms = 0); + bool begin(uint16_t startdelayms = 500); void handle(); bool end(); static bool reset(); diff --git a/esp3d/src/core/esp3doutput.cpp b/esp3d/src/core/esp3doutput.cpp index 868b1bff..d9525e5b 100644 --- a/esp3d/src/core/esp3doutput.cpp +++ b/esp3d/src/core/esp3doutput.cpp @@ -125,16 +125,16 @@ void ESP3DOutput::flush() case ESP_SERIAL_CLIENT: serial_service.flush(); break; - case ESP_HTTP_CLIENT: #ifdef HTTP_FEATURE + case ESP_HTTP_CLIENT: if (_webserver) { if (_headerSent && !_footerSent) { _webserver->sendContent(""); _footerSent = true; } } -#endif //HTTP_FEATURE break; +#endif //HTTP_FEATURE #if defined (BLUETOOTH_FEATURE) case ESP_BT_CLIENT: bt_service.flush(); @@ -158,13 +158,24 @@ size_t ESP3DOutput::printLN(const char * s) if (!isOutput(_client)) { return 0; } - if (_client == ESP_TELNET_CLIENT) { + switch(_client) { + case ESP_HTTP_CLIENT: + if(strlen(s) > 0) { + println(s); + return strlen(s) + 1; + } else { + println(" "); + return strlen(s) + 2; + } + return 0; + case ESP_TELNET_CLIENT: print(s); println("\r"); return strlen(s)+2; - } else { - return println(s); + default: + break; } + return println(s); } size_t ESP3DOutput::printMSG(const char * s) @@ -173,8 +184,9 @@ size_t ESP3DOutput::printMSG(const char * s) return 0; } String display; - if (_client == ESP_HTTP_CLIENT) { #ifdef HTTP_FEATURE + if (_client == ESP_HTTP_CLIENT) { + if (_webserver) { if (!_headerSent && !_footerSent) { _webserver->sendHeader("Cache-Control","no-cache"); @@ -186,7 +198,6 @@ size_t ESP3DOutput::printMSG(const char * s) } return 0; } - #endif //HTTP_FEATURE if (_client == ESP_PRINTER_LCD_CLIENT) { display = "M117 "; @@ -219,9 +230,10 @@ size_t ESP3DOutput::printERROR(const char * s, int code_error) if (!isOutput(_client)) { return 0; } +#ifdef HTTP_FEATURE _code = code_error; if (_client == ESP_HTTP_CLIENT) { -#ifdef HTTP_FEATURE + if (_webserver) { if (!_headerSent && !_footerSent) { _webserver->sendHeader("Cache-Control","no-cache"); @@ -231,10 +243,11 @@ size_t ESP3DOutput::printERROR(const char * s, int code_error) return strlen(s); } } - -#endif //HTTP_FEATURE return 0; } +#else + (void)code_error; +#endif //HTTP_FEATURE String display; switch(Settings_ESP3D::GetFirmwareTarget()) { case GRBL: @@ -275,8 +288,9 @@ int ESP3DOutput::availableforwrite() case ESP_ALL_CLIENTS: return serial_service.availableForWrite(); default : - return 0; + break; } + return 0; } size_t ESP3DOutput::write(uint8_t c) { @@ -319,8 +333,9 @@ size_t ESP3DOutput::write(const uint8_t *buffer, size_t size) return 0; } switch (_client) { - case ESP_HTTP_CLIENT: #ifdef HTTP_FEATURE + case ESP_HTTP_CLIENT: + if (_webserver) { if (!_headerSent && !_footerSent) { _webserver->setContentLength(CONTENT_LENGTH_UNKNOWN); @@ -333,8 +348,8 @@ size_t ESP3DOutput::write(const uint8_t *buffer, size_t size) _webserver->sendContent_P((const char*)buffer,size); } } -#endif //HTTP_FEATURE break; +#endif //HTTP_FEATURE #if defined (BLUETOOTH_FEATURE) case ESP_BT_CLIENT: if(bt_service.started()) { @@ -363,6 +378,7 @@ size_t ESP3DOutput::write(const uint8_t *buffer, size_t size) #endif //TELNET_FEATURE return serial_service.write(buffer, size); default : - return 0; + break; } + return 0; } diff --git a/esp3d/src/core/espcmd/ESP100.cpp b/esp3d/src/core/espcmd/ESP100.cpp index f7afcce4..de87cb47 100644 --- a/esp3d/src/core/espcmd/ESP100.cpp +++ b/esp3d/src/core/espcmd/ESP100.cpp @@ -35,6 +35,8 @@ bool Commands::ESP100(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP101.cpp b/esp3d/src/core/espcmd/ESP101.cpp index de2ce7df..569e939b 100644 --- a/esp3d/src/core/espcmd/ESP101.cpp +++ b/esp3d/src/core/espcmd/ESP101.cpp @@ -35,6 +35,8 @@ bool Commands::ESP101(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); if (!WiFiConfig::isPasswordValid (parameter.c_str() ) ) { diff --git a/esp3d/src/core/espcmd/ESP102.cpp b/esp3d/src/core/espcmd/ESP102.cpp index f61e4fbd..cd451708 100644 --- a/esp3d/src/core/espcmd/ESP102.cpp +++ b/esp3d/src/core/espcmd/ESP102.cpp @@ -41,6 +41,8 @@ bool Commands::ESP102(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP103.cpp b/esp3d/src/core/espcmd/ESP103.cpp index 598accbd..eeb14221 100644 --- a/esp3d/src/core/espcmd/ESP103.cpp +++ b/esp3d/src/core/espcmd/ESP103.cpp @@ -41,6 +41,8 @@ bool Commands::ESP103(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP105.cpp b/esp3d/src/core/espcmd/ESP105.cpp index 90429219..58ca3b08 100644 --- a/esp3d/src/core/espcmd/ESP105.cpp +++ b/esp3d/src/core/espcmd/ESP105.cpp @@ -36,6 +36,8 @@ bool Commands::ESP105(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP106.cpp b/esp3d/src/core/espcmd/ESP106.cpp index 109f738f..7bd55385 100644 --- a/esp3d/src/core/espcmd/ESP106.cpp +++ b/esp3d/src/core/espcmd/ESP106.cpp @@ -35,6 +35,8 @@ bool Commands::ESP106(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); if (!WiFiConfig::isPasswordValid (parameter.c_str() ) ) { diff --git a/esp3d/src/core/espcmd/ESP107.cpp b/esp3d/src/core/espcmd/ESP107.cpp index 372115cf..420cbacd 100644 --- a/esp3d/src/core/espcmd/ESP107.cpp +++ b/esp3d/src/core/espcmd/ESP107.cpp @@ -36,6 +36,8 @@ bool Commands::ESP107(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP108.cpp b/esp3d/src/core/espcmd/ESP108.cpp index 9844e2c1..8a79b850 100644 --- a/esp3d/src/core/espcmd/ESP108.cpp +++ b/esp3d/src/core/espcmd/ESP108.cpp @@ -35,6 +35,8 @@ bool Commands::ESP108(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP110.cpp b/esp3d/src/core/espcmd/ESP110.cpp index 1cc0b844..a77f033f 100644 --- a/esp3d/src/core/espcmd/ESP110.cpp +++ b/esp3d/src/core/espcmd/ESP110.cpp @@ -35,6 +35,8 @@ bool Commands::ESP110(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP111.cpp b/esp3d/src/core/espcmd/ESP111.cpp index 60f40b8f..03cf3e6a 100644 --- a/esp3d/src/core/espcmd/ESP111.cpp +++ b/esp3d/src/core/espcmd/ESP111.cpp @@ -37,6 +37,7 @@ bool Commands::ESP111(const char* cmd_params, level_authenticate_type auth_type, String parameter; String res = get_param (cmd_params, ""); String currentIP=""; + (void)auth_type; #if defined( WIFI_FEATURE) if (WiFi.getMode() == WIFI_STA) { currentIP = WiFi.localIP().toString(); diff --git a/esp3d/src/core/espcmd/ESP112.cpp b/esp3d/src/core/espcmd/ESP112.cpp index 2bf08dfa..b7ba97ab 100644 --- a/esp3d/src/core/espcmd/ESP112.cpp +++ b/esp3d/src/core/espcmd/ESP112.cpp @@ -35,6 +35,8 @@ bool Commands::ESP112(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //Get hostname diff --git a/esp3d/src/core/espcmd/ESP115.cpp b/esp3d/src/core/espcmd/ESP115.cpp index ee2293c0..533c9ea9 100644 --- a/esp3d/src/core/espcmd/ESP115.cpp +++ b/esp3d/src/core/espcmd/ESP115.cpp @@ -35,6 +35,8 @@ bool Commands::ESP115(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); if (parameter.length() == 0) { diff --git a/esp3d/src/core/espcmd/ESP120.cpp b/esp3d/src/core/espcmd/ESP120.cpp index 9c700fb6..81eab120 100644 --- a/esp3d/src/core/espcmd/ESP120.cpp +++ b/esp3d/src/core/espcmd/ESP120.cpp @@ -34,6 +34,8 @@ bool Commands::ESP120(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP121.cpp b/esp3d/src/core/espcmd/ESP121.cpp index dc6a5a6c..a4f21505 100644 --- a/esp3d/src/core/espcmd/ESP121.cpp +++ b/esp3d/src/core/espcmd/ESP121.cpp @@ -34,6 +34,8 @@ bool Commands::ESP121(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP130.cpp b/esp3d/src/core/espcmd/ESP130.cpp index 2c6e4ffa..7a072a59 100644 --- a/esp3d/src/core/espcmd/ESP130.cpp +++ b/esp3d/src/core/espcmd/ESP130.cpp @@ -23,7 +23,8 @@ #include "../esp3doutput.h" #include "../settings_esp3d.h" #include "../../modules/authentication/authentication_service.h" -//Set TELNET state which can be ON, OFF +#include "../../modules/telnet/telnet_server.h" +//Set TELNET state which can be ON, OFF, CLOSE //[ESP130]pwd= bool Commands::ESP130(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output) { @@ -34,6 +35,8 @@ bool Commands::ESP130(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get @@ -47,14 +50,19 @@ bool Commands::ESP130(const char* cmd_params, level_authenticate_type auth_type, } #endif //AUTHENTICATION_FEATURE parameter.toUpperCase(); - if (!((parameter == "ON") || (parameter == "OFF"))) { - output->printERROR("Only ON or OFF mode supported!"); + if (!((parameter == "ON") || (parameter == "OFF") || (parameter == "CLOSE"))) { + output->printERROR("Only ON or OFF or CLOSE mode supported!"); return false; } else { - if (!Settings_ESP3D::write_byte (ESP_TELNET_ON, (parameter == "ON")?1:0)) { - output->printERROR ("Set failed!"); - response = false; + if (parameter == "CLOSE") { + telnet_server.closeClient(); + output->printMSG ("ok"); } else { + if (!Settings_ESP3D::write_byte (ESP_TELNET_ON, (parameter == "ON")?1:0)) { + output->printERROR ("Set failed!"); + response = false; + } + output->printMSG ("ok"); } } diff --git a/esp3d/src/core/espcmd/ESP131.cpp b/esp3d/src/core/espcmd/ESP131.cpp index 6851966b..5745c8da 100644 --- a/esp3d/src/core/espcmd/ESP131.cpp +++ b/esp3d/src/core/espcmd/ESP131.cpp @@ -34,6 +34,8 @@ bool Commands::ESP131(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE parameter = get_param (cmd_params, ""); //get diff --git a/esp3d/src/core/espcmd/ESP140.cpp b/esp3d/src/core/espcmd/ESP140.cpp new file mode 100644 index 00000000..e5015d74 --- /dev/null +++ b/esp3d/src/core/espcmd/ESP140.cpp @@ -0,0 +1,102 @@ +/* + ESP140.cpp - ESP3D command class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "../../include/esp3d_config.h" +#if defined (TIMESTAMP_FEATURE) +#include "../commands.h" +#include "../esp3doutput.h" +#include "../settings_esp3d.h" +#include "../../modules/authentication/authentication_service.h" +#include "../../modules/time/time_server.h" +//Init / Get current time +//[ESP140] pwd= +bool Commands::ESP140(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output) +{ + bool response = true; + String parameter; +#ifdef AUTHENTICATION_FEATURE + if (auth_type == LEVEL_GUEST) { + output->printERROR("Wrong authentication!", 401); + return false; + } +#else + (void)auth_type; +#endif //AUTHENTICATION_FEATURE + parameter = get_param (cmd_params, ""); + //get + if (parameter.length() != 0) { +#ifdef AUTHENTICATION_FEATURE + if (auth_type != LEVEL_ADMIN) { + output->printERROR("Wrong authentication!", 401); + return false; + } +#endif //AUTHENTICATION_FEATURE + String s = get_param (cmd_params, "srv1="); + if (s.length() > 0 && s.length() < Settings_ESP3D::get_max_string_size(ESP_TIME_SERVER1)) { + if (!Settings_ESP3D::write_string (ESP_TIME_SERVER1, s.c_str())) { + output->printERROR("Set server 1 failed!"); + } + } + s = get_param (cmd_params, "srv2="); + if (s.length() > 0 && s.length() < Settings_ESP3D::get_max_string_size(ESP_TIME_SERVER2)) { + if (!Settings_ESP3D::write_string (ESP_TIME_SERVER2, s.c_str())) { + output->printERROR("Set server 2 failed!"); + } + } + s = get_param (cmd_params, "srv3="); + if (s.length() > 0 && s.length() < Settings_ESP3D::get_max_string_size(ESP_TIME_SERVER3)) { + if (!Settings_ESP3D::write_string (ESP_TIME_SERVER3, s.c_str())) { + output->printERROR("Set server 2 failed!"); + } + } + s = get_param (cmd_params, "zone="); + if (s.length() > 0 && (s.toInt() <= (int8_t)Settings_ESP3D::get_max_byte(ESP_TIMEZONE)) && (s.toInt() >= (int8_t)Settings_ESP3D::get_min_byte(ESP_TIMEZONE))) { + if (!Settings_ESP3D::write_byte (ESP_TIMEZONE, s.toInt())) { + output->printERROR("Set time zone failed!"); + } + } + s = get_param (cmd_params, "dst="); + s.toUpperCase(); + if (s.length() > 0 ) { + if (!Settings_ESP3D::write_byte (ESP_TIME_IS_DST, (s == "NO")?0:1)) { + output->printERROR("Set dayligh failed!"); + } + } + s = get_param (cmd_params, "time="); + s.toUpperCase(); + if (s.length() > 0 ) { + output->printMSG("Setting time"); + if(!timeserver.setTime(s.c_str())) { + output->printERROR("Set time failed!"); + } + } + + if (hastag(parameter.c_str(), "INIT")) { + output->printMSG("Contacting time servers"); + if(!timeserver.begin()) { + output->printERROR("Init time failed!"); + } + } + } + + output->printMSG(timeserver.current_time()); + return response; +} + +#endif //TIMESTAMP_FEATURE diff --git a/esp3d/src/core/espcmd/ESP201.cpp b/esp3d/src/core/espcmd/ESP201.cpp index 0f622fdd..321c9af4 100644 --- a/esp3d/src/core/espcmd/ESP201.cpp +++ b/esp3d/src/core/espcmd/ESP201.cpp @@ -36,6 +36,8 @@ bool Commands::ESP201(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE //check if have pin diff --git a/esp3d/src/core/espcmd/ESP210.cpp b/esp3d/src/core/espcmd/ESP210.cpp new file mode 100644 index 00000000..a4495348 --- /dev/null +++ b/esp3d/src/core/espcmd/ESP210.cpp @@ -0,0 +1,107 @@ +/* + ESP210.cpp - ESP3D command class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "../../include/esp3d_config.h" +#if defined (DHT_DEVICE) +#include "../commands.h" +#include "../esp3doutput.h" +#include "../settings_esp3d.h" +#include "../../modules/dht/dht.h" +#include "../../modules/authentication/authentication_service.h" +//Get DHT Value / type/Set DHT type +//[ESP210] +bool Commands::ESP210(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output) +{ + bool response = true; + String parameter; +#ifdef AUTHENTICATION_FEATURE + if (auth_type == LEVEL_GUEST) { + output->printERROR("Wrong authentication!", 401); + return false; + } +#else + (void)auth_type; +#endif //AUTHENTICATION_FEATURE + parameter = get_param (cmd_params, ""); + if (parameter.length() == 0) { + String s; + if(esp3d_DHT.started()) { + s = String(esp3d_DHT.getHumidity(),1); + if (s !="nan") { + s+="% "; + s+= String(esp3d_DHT.getTemperature(),1); + } else { + s ="Disconnected "; + } + s+= esp3d_DHT.isCelsiusUnit()?"C ":"F "; + s += esp3d_DHT.GetModelString(); + s+= " "; + s+= esp3d_DHT.interval(); + s+= "ms"; + + } else { + s = "NONE"; + } + output->printMSG(s.c_str()); + } else { +#ifdef AUTHENTICATION_FEATURE + if (auth_type != LEVEL_ADMIN) { + output->printERROR("Wrong authentication!", 401); + return false; + } +#endif //AUTHENTICATION_FEATURE + parameter = get_param (cmd_params, "type="); + if (parameter.length() != 0) { + parameter.toUpperCase(); + int8_t v = -1; + if (parameter == "NONE") { + v = 0; + } else if(parameter == "11") { + v = DHT11_DEVICE; + } else if (parameter == "22") { + v = DHT22_DEVICE; + } else { + output->printERROR ("Invalid parameter!"); + return false; + } + if (v!=-1) { + if (!Settings_ESP3D::write_byte(ESP_DHT_TYPE,v)) { + output->printERROR ("Set failed!"); + return false; + } + if (!esp3d_DHT.begin()) { + output->printERROR ("Set failed!"); + return false; + } + } + } + parameter = get_param (cmd_params, "interval="); + if (parameter.length() != 0) { + if (!Settings_ESP3D::write_uint32(ESP_DHT_INTERVAL,parameter.toInt())) { + output->printERROR ("Set failed!"); + return false; + } + esp3d_DHT.setInterval(parameter.toInt()); + } + output->printMSG ("ok"); + } + return response; +} + +#endif //DHT_DEVICE diff --git a/esp3d/src/core/espcmd/ESP400.cpp b/esp3d/src/core/espcmd/ESP400.cpp index f07b8f9f..1c3d4fa8 100644 --- a/esp3d/src/core/espcmd/ESP400.cpp +++ b/esp3d/src/core/espcmd/ESP400.cpp @@ -32,7 +32,10 @@ bool Commands::ESP400(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE + (void)cmd_params; //Start JSON output->printLN ("{\"Settings\":["); //1- Baud Rate @@ -284,6 +287,60 @@ bool Commands::ESP400(const char* cmd_params, level_authenticate_type auth_type, output->printLN ("\"}"); #endif //AUTHENTICATION_FEATURE +#ifdef TIMESTAMP_FEATURE + //24-Time zone + output->print (",{\"F\":\"network\",\"P\":\""); + output->print (ESP_TIMEZONE); + output->print("\",\"T\":\"B\",\"V\":\""); + output->print ((int8_t)Settings_ESP3D::read_byte(ESP_TIMEZONE)); + output->print("\",\"H\":\"Time Zone\",\"O\":["); + for (int8_t i = Settings_ESP3D::get_min_byte(ESP_TIMEZONE); i <= Settings_ESP3D::get_max_byte(ESP_TIMEZONE) ; i++) { + if (i > 1) { + output->print (","); + } + output->printf("{\"%d\":\"%d\"}", i, i); + } + output->printLN("]}"); + //25- DST + output->print (",{\"F\":\"network\",\"P\":\""); + output->print (ESP_TIME_IS_DST); + output->print("\",\"T\":\"B\",\"V\":\""); + output->print (Settings_ESP3D::read_byte(ESP_TIME_IS_DST)); + output->printLN("\",\"H\":\"Day Saving Time\",\"O\":[{\"No\":\"0\"},{\"Yes\":\"1\"}]}"); + + //26- Time Server1 + output->print (",{\"F\":\"network\",\"P\":\""); + output->print (ESP_TIME_SERVER1); + output->print("\",\"T\":\"S\",\"V\":\""); + output->print (Settings_ESP3D::read_string(ESP_TIME_SERVER1)); + output->print ("\",\"S\":\""); + output->print (Settings_ESP3D::get_max_string_size(ESP_TIME_SERVER1)); + output->print ("\",\"H\":\"Time Server 1\",\"M\":\""); + output->print (Settings_ESP3D::get_min_string_size(ESP_TIME_SERVER1)); + output->printLN ("\"}"); + + //27- Time Server2 + output->print (",{\"F\":\"network\",\"P\":\""); + output->print (ESP_TIME_SERVER2); + output->print("\",\"T\":\"S\",\"V\":\""); + output->print (Settings_ESP3D::read_string(ESP_TIME_SERVER2)); + output->print ("\",\"S\":\""); + output->print (Settings_ESP3D::get_max_string_size(ESP_TIME_SERVER2)); + output->print ("\",\"H\":\"Time Server 2\",\"M\":\""); + output->print (Settings_ESP3D::get_min_string_size(ESP_TIME_SERVER2)); + output->printLN ("\"}"); + + //28- Time Server3 + output->print (",{\"F\":\"network\",\"P\":\""); + output->print (ESP_TIME_SERVER3); + output->print("\",\"T\":\"S\",\"V\":\""); + output->print (Settings_ESP3D::read_string(ESP_TIME_SERVER3)); + output->print ("\",\"S\":\""); + output->print (Settings_ESP3D::get_max_string_size(ESP_TIME_SERVER3)); + output->print ("\",\"H\":\"Time Server 3\",\"M\":\""); + output->print (Settings_ESP3D::get_min_string_size(ESP_TIME_SERVER3)); + output->printLN ("\"}"); +#endif //TIMESTAMP_FEATURE //Target FW output->print (",{\"F\":\"printer\",\"P\":\""); output->print (ESP_TARGET_FW); @@ -304,6 +361,29 @@ bool Commands::ESP400(const char* cmd_params, level_authenticate_type auth_type, output->print ("\"},{\"Unknown\":\""); output->print (UNKNOWN_FW); output->printLN ("\"}]}"); +#ifdef DHT_DEVICE + //DHT type + output->print (",{\"F\":\"printer\",\"P\":\""); + output->print (ESP_DHT_TYPE); + output->print ("\",\"T\":\"B\",\"V\":\""); + output->print (Settings_ESP3D::read_byte(ESP_DHT_TYPE)); + output->print ("\",\"H\":\"DHT Type\",\"O\":[{\"None\":\"0\"},{\"DHT11\":\""); + output->print (DHT11_DEVICE); + output->print ("\"},{\"DHT22\":\""); + output->print (DHT22_DEVICE); + output->printLN ("\"}]}"); + + //DHT interval + output->print (",{\"F\":\"printer\",\"P\":\""); + output->print (ESP_DHT_INTERVAL); + output->print ("\",\"T\":\"I\",\"V\":\""); + output->print (Settings_ESP3D::read_uint32(ESP_DHT_INTERVAL)); + output->print ("\",\"H\":\"DHT interval (millisec)\",\"S\":\""); + output->print (Settings_ESP3D::get_max_int32_value(ESP_DHT_INTERVAL)); + output->print ("\",\"M\":\""); + output->print (Settings_ESP3D::get_min_int32_value(ESP_DHT_INTERVAL)); + output->printLN ("\"}"); +#endif //DHT_DEVICE //Output flag output->print (",{\"F\":\"printer\",\"P\":\""); diff --git a/esp3d/src/core/espcmd/ESP401.cpp b/esp3d/src/core/espcmd/ESP401.cpp index 01f1f255..29537fb6 100644 --- a/esp3d/src/core/espcmd/ESP401.cpp +++ b/esp3d/src/core/espcmd/ESP401.cpp @@ -22,6 +22,9 @@ #include "../esp3doutput.h" #include "../settings_esp3d.h" #include "../../modules/authentication/authentication_service.h" +#ifdef DHT_DEVICE +#include "../../modules/dht/dht.h" +#endif //DHT_DEVICE //Set EEPROM setting //[ESP401]P= T= V= pwd= bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output) @@ -33,6 +36,8 @@ bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE //check validity of parameters String spos = get_param (cmd_params, "P="); @@ -56,6 +61,11 @@ bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type, case ESP_TARGET_FW: Settings_ESP3D::GetFirmwareTarget(true); break; +#ifdef DHT_DEVICE + case ESP_DHT_TYPE: + esp3d_DHT.begin(); + break; +#endif //DHT_DEVICE default: break; } @@ -67,7 +77,15 @@ bool Commands::ESP401(const char* cmd_params, level_authenticate_type auth_type, response = false; } else { //dynamique refresh is better than restart the board - //TBD + switch(spos.toInt()) { +#ifdef DHT_DEVICE + case ESP_DHT_INTERVAL: + esp3d_DHT.setInterval(sval.toInt()); + break; +#endif //DHT_DEVICE + default: + break; + } } } //String value diff --git a/esp3d/src/core/espcmd/ESP410.cpp b/esp3d/src/core/espcmd/ESP410.cpp index 3c8c6120..1ebee713 100644 --- a/esp3d/src/core/espcmd/ESP410.cpp +++ b/esp3d/src/core/espcmd/ESP410.cpp @@ -36,6 +36,8 @@ bool Commands::ESP410(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE //Backup current mode uint8_t currentmode = WiFi.getMode(); diff --git a/esp3d/src/core/espcmd/ESP420.cpp b/esp3d/src/core/espcmd/ESP420.cpp index 0d6c76d7..8dcd9146 100644 --- a/esp3d/src/core/espcmd/ESP420.cpp +++ b/esp3d/src/core/espcmd/ESP420.cpp @@ -44,6 +44,12 @@ #ifdef TELNET_FEATURE #include "../../modules/telnet/telnet_server.h" #endif //TELNET_FEATURE +#if defined (TIMESTAMP_FEATURE) +#include "../../modules/time/time_server.h" +#endif //TIMESTAMP_FEATURE +#if defined (DHT_DEVICE) +#include "../../modules/dht/dht.h" +#endif //DHT_DEVICE //Get ESP current status //output is JSON or plain text according parameter //[ESP420] @@ -56,6 +62,8 @@ bool Commands::ESP420(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE bool plain = hastag(cmd_params,"plain"); //TODO add plain / JSON support @@ -332,7 +340,7 @@ bool Commands::ESP420(const char* cmd_params, level_authenticate_type auth_type, } else { output->print (": "); } - output->printf ("%ld",HTTP_Server::port()); + output->printf ("%d",HTTP_Server::port()); if (!plain) { output->print ("\"}"); } else { @@ -352,7 +360,7 @@ bool Commands::ESP420(const char* cmd_params, level_authenticate_type auth_type, } else { output->print (": "); } - output->printf ("%ld",telnet_server.port()); + output->printf ("%d",telnet_server.port()); if (!plain) { output->print ("\"}"); } else { @@ -923,6 +931,43 @@ bool Commands::ESP420(const char* cmd_params, level_authenticate_type auth_type, } #endif //WIFI_FEATURE #endif //WIFI_FEATURE || ETH FEATURE +#if defined (TIMESTAMP_FEATURE) + if (!plain) { + output->print (",{\"id\":\""); + } + output->print ("Time client"); + if (!plain) { + output->print ("\",\"value\":\""); + } else { + output->print (": "); + } + output->print (timeserver.started()?"Started":"Disabled"); + if (!plain) { + output->print ("\"}"); + } else { + output->printLN(""); + } +#endif //TIMESTAMP_FEATURE +#if defined (DHT_DEVICE) + if (!plain) { + output->print (",{\"id\":\""); + } + output->print ("DHT sensor"); + if (!plain) { + output->print ("\",\"value\":\""); + } else { + output->print (": "); + } + output->print (esp3d_DHT.started()?"Enabled":"Disabled"); + output->print ("("); + output->print (esp3d_DHT.GetModelString()); + output->print (")"); + if (!plain) { + output->print ("\"}"); + } else { + output->printLN(""); + } +#endif //DHT_DEVICE //FW version if (!plain) { output->print (",{\"id\":\""); diff --git a/esp3d/src/core/espcmd/ESP444.cpp b/esp3d/src/core/espcmd/ESP444.cpp index 296bf401..58a76400 100644 --- a/esp3d/src/core/espcmd/ESP444.cpp +++ b/esp3d/src/core/espcmd/ESP444.cpp @@ -34,6 +34,8 @@ bool Commands::ESP444(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE if (hastag(cmd_params,"RESTART")) { output->printMSG ("Restart ongoing"); diff --git a/esp3d/src/core/espcmd/ESP600.cpp b/esp3d/src/core/espcmd/ESP600.cpp new file mode 100644 index 00000000..13081a6c --- /dev/null +++ b/esp3d/src/core/espcmd/ESP600.cpp @@ -0,0 +1,52 @@ +/* + ESP600.cpp - ESP3D command class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "../../include/esp3d_config.h" +#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) +#include "../commands.h" +#include "../esp3doutput.h" +#include "../settings_esp3d.h" +#include "../../modules/authentication/authentication_service.h" +//Send Notification +//[ESP600][pwd=] +bool Commands::ESP600(const char* cmd_params, level_authenticate_type auth_type, ESP3DOutput * output) +{ + bool response = true; + String parameter; +#ifdef AUTHENTICATION_FEATURE + if (auth_type == LEVEL_GUEST) { + output->printERROR("Wrong authentication!", 401); + return false; + } +#else + (void)auth_type; +#endif //AUTHENTICATION_FEATURE + parameter = get_param (cmd_params, ""); + //get + if (parameter.length() == 0) { + output->printERROR ("Invalid message!"); + return false; + } else { + //TODO + output->printMSG ("ok"); + } + return response; +} + +#endif //WIFI_FEATURE || ETH_FEATURE diff --git a/esp3d/src/core/espcmd/ESP710.cpp b/esp3d/src/core/espcmd/ESP710.cpp index b15bea0c..6ccc3c09 100644 --- a/esp3d/src/core/espcmd/ESP710.cpp +++ b/esp3d/src/core/espcmd/ESP710.cpp @@ -36,6 +36,8 @@ bool Commands::ESP710(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); response = false; } else +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE { if (parameter == "FORMAT") { diff --git a/esp3d/src/core/espcmd/ESP720.cpp b/esp3d/src/core/espcmd/ESP720.cpp index ca728054..710d8fc6 100644 --- a/esp3d/src/core/espcmd/ESP720.cpp +++ b/esp3d/src/core/espcmd/ESP720.cpp @@ -36,6 +36,8 @@ bool Commands::ESP720(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE if (parameter.length() == 0) { parameter = "/"; diff --git a/esp3d/src/core/espcmd/ESP800.cpp b/esp3d/src/core/espcmd/ESP800.cpp index 3bd8c0fe..c6154cca 100644 --- a/esp3d/src/core/espcmd/ESP800.cpp +++ b/esp3d/src/core/espcmd/ESP800.cpp @@ -47,6 +47,8 @@ bool Commands::ESP800(const char* cmd_params, level_authenticate_type auth_type, output->printERROR("Wrong authentication!", 401); return false; } +#else + (void)auth_type; #endif //AUTHENTICATION_FEATURE bool plain = hastag(cmd_params,"plain"); //FW version diff --git a/esp3d/src/core/hal.cpp b/esp3d/src/core/hal.cpp index e56f5386..80d08f47 100644 --- a/esp3d/src/core/hal.cpp +++ b/esp3d/src/core/hal.cpp @@ -80,13 +80,14 @@ void Hal::pinMode(uint8_t pin, uint8_t mode) int Hal::analogRead(uint8_t pin) { #ifdef ARDUINO_ARCH_ESP8266 //only one ADC on ESP8266 A0 + (void)pin; return analogRead (A0); #else return analogRead (pin); #endif } -bool Hal::analogWrite(uint8_t pin, int value) +bool Hal::analogWrite(uint8_t pin, uint value) { if (value > (_analogWriteRange-1)) { return false; @@ -103,7 +104,7 @@ bool Hal::analogWrite(uint8_t pin, int value) } if (channel==-1) { for (uint8_t p = 0; p < 16; p++) { - if(ChannelAttached2Pin[p] = -1) { + if(ChannelAttached2Pin[p] == -1) { channel = p; ChannelAttached2Pin[p] = pin; p = 16; diff --git a/esp3d/src/core/hal.h b/esp3d/src/core/hal.h index 66be9d69..ad158105 100644 --- a/esp3d/src/core/hal.h +++ b/esp3d/src/core/hal.h @@ -47,7 +47,7 @@ public: static void clearAnalogChannels(); static void pinMode(uint8_t pin, uint8_t mode); static int analogRead(uint8_t pin); - static bool analogWrite(uint8_t pin, int value); + static bool analogWrite(uint8_t pin, uint value); static void analogWriteFreq(uint32_t freq); static void analogWriteRange(uint32_t range); private: diff --git a/esp3d/src/core/settings_esp3d.cpp b/esp3d/src/core/settings_esp3d.cpp index 108b8b73..b3100267 100644 --- a/esp3d/src/core/settings_esp3d.cpp +++ b/esp3d/src/core/settings_esp3d.cpp @@ -19,9 +19,11 @@ */ #include "../include/esp3d_config.h" +#if defined (ESP_SAVE_SETTINGS) #include "settings_esp3d.h" #include "esp3doutput.h" -#if defined(SETTINGS_IN_EEPROM) + +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM #include //EEPROM SIZE (Up to 4096) #define EEPROM_SIZE 1024 //max is 1024 @@ -35,7 +37,7 @@ #endif //WIFI_FEATURE || ETH_FEATURE -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES #include #define NAMESPACE "ESP3D" #endif // SETTINGS_IN_PREFERENCES @@ -86,7 +88,7 @@ #define DEFAULT_SECONDARY_SD 1 #define DEFAULT_DIRECT_SD_CHECK 0 #define DEFAULT_SD_CHECK_UPDATE_AT_BOOT 1 -#define DEFAULT_DHT_TYPE 255 +#define DEFAULT_DHT_TYPE 0 #define DEFAULT_IS_DIRECT_SD 0 #define DEFAULT_HTTP_ON 1 #define DEFAULT_TELNET_ON 1 @@ -97,27 +99,37 @@ #define DEFAULT_BAUD_RATE 115200L #define DEFAULT_HTTP_PORT 80L #define DEFAULT_TELNET_PORT 23L -#define DEFAULT_DHT_INTERVAL 30L +#define DEFAULT_DHT_INTERVAL 30000L +#ifdef WIFI_FEATURE //default string values -const char DEFAULT_AP_SSID [] PROGMEM = "ESP3D"; -const char DEFAULT_AP_PASSWORD [] PROGMEM = "12345678"; -const char DEFAULT_STA_SSID [] PROGMEM = "ESP3D"; -const char DEFAULT_STA_PASSWORD [] PROGMEM = "12345678"; -const char DEFAULT_HOSTNAME [] PROGMEM = "esp3d"; +const char DEFAULT_AP_SSID [] = "ESP3D"; +const char DEFAULT_AP_PASSWORD [] = "12345678"; +const char DEFAULT_STA_SSID [] = "ESP3D"; +const char DEFAULT_STA_PASSWORD [] = "12345678"; +#endif //WIFI_FEATURE +#if defined (BLUETOOTH_FEATURE) || defined (WIFI_FEATURE) ||defined (ETH_FEATURE) +const char DEFAULT_HOSTNAME [] = "esp3d"; +#endif //BLUETOOTH_FEATURE ||WIFI_FEATURE || ETH_FEATURE const char DEFAULT_ESP_STRING [] = ""; -const char DEFAULT_ADMIN_PWD [] PROGMEM = "admin"; -const char DEFAULT_USER_PWD [] PROGMEM = "user"; -const char DEFAULT_TIME_SERVER1 [] PROGMEM = "time.nist.gov"; -const char DEFAULT_TIME_SERVER2 [] PROGMEM = "0.pool.ntp.org"; -const char DEFAULT_TIME_SERVER3 [] PROGMEM = "1.pool.ntp.org"; -const char DEFAULT_SETTINGS_VERSION [] PROGMEM = "ESP3D"; +#ifdef AUTHENTICATION_FEATURE +const char DEFAULT_ADMIN_PWD [] = "admin"; +const char DEFAULT_USER_PWD [] = "user"; +#endif //AUTHENTICATION_FEATURE +#ifdef TIMESTAMP_FEATURE +const char DEFAULT_TIME_SERVER1 [] = "1.pool.ntp.org"; +const char DEFAULT_TIME_SERVER2 [] = "2.pool.ntp.org"; +const char DEFAULT_TIME_SERVER3 [] = "0.pool.ntp.org"; +#endif //TIMESTAMP_FEATURE +const char DEFAULT_SETTINGS_VERSION [] = "ESP3D"; +#if defined (WIFI_FEATURE) ||defined (ETH_FEATURE) //default IP values const uint8_t DEFAULT_IP_VALUE[] = {192, 168, 0, 1}; const uint8_t DEFAULT_MASK_VALUE[] = {255, 255, 255, 0}; #define DEFAULT_GATEWAY_VALUE DEFAULT_IP_VALUE const uint8_t DEFAULT_ADDRESS_VALUE[] = {0, 0, 0, 0}; +#endif //WIFI_FEATURE || ETH_FEATURE uint8_t Settings_ESP3D::_FirmwareTarget = UNKNOWN_FW; bool Settings_ESP3D::_directSD = false; @@ -216,27 +228,24 @@ uint8_t Settings_ESP3D::get_default_byte_value(int pos) case ESP_OUTPUT_FLAG: res = DEFAULT_OUTPUT_FLAG; break; +#ifdef HTTP_FEATURE case ESP_HTTP_ON: res = DEFAULT_HTTP_ON; break; +#endif //HTTP_FEATURE +#ifdef TELNET_FEATURE case ESP_TELNET_ON: res = DEFAULT_TELNET_ON; break; +#endif //TELNET_FEATURE +#ifdef SDCARD_FEATURE case ESP_SD_SPEED_DIV: res = DEFAULT_SDREADER_SPEED; break; +#endif //SDCARD_FEATURE case ESP_TARGET_FW: res = DEFAULT_FW; break; - case ESP_TIMEZONE: - res = DEFAULT_TIME_ZONE; - break; - case ESP_TIME_IS_DST: - res = DEFAULT_TIME_DST; - break; - case ESP_IS_DIRECT_SD: - res = DEFAULT_IS_DIRECT_SD; - break; case ESP_PRIMARY_SD: res = DEFAULT_PRIMARY_SD; break; @@ -246,12 +255,26 @@ uint8_t Settings_ESP3D::get_default_byte_value(int pos) case ESP_DIRECT_SD_CHECK: res = DEFAULT_DIRECT_SD_CHECK; break; - case ESP_DHT_TYPE: - res = DEFAULT_DHT_TYPE; - break; case ESP_SD_CHECK_UPDATE_AT_BOOT: res = DEFAULT_SD_CHECK_UPDATE_AT_BOOT; break; +#ifdef TIMESTAMP_FEATURE + case ESP_TIMEZONE: + res = DEFAULT_TIME_ZONE; + break; + case ESP_TIME_IS_DST: + res = DEFAULT_TIME_DST; + break; + case ESP_IS_DIRECT_SD: + res = DEFAULT_IS_DIRECT_SD; + break; +#endif //TIMESTAMP_FEATURE + +#if defined(DHT_DEVICE) + case ESP_DHT_TYPE: + res = DEFAULT_DHT_TYPE; + break; +#endif //DHT_DEVICE default: res = DEFAULT_ESP_BYTE; } @@ -277,16 +300,22 @@ uint32_t Settings_ESP3D::get_default_int32_value(int pos) case ESP_STA_GATEWAY_VALUE: res = IPAddress(DEFAULT_GATEWAY_VALUE); break; +#endif //WIFI_FEATURE || ETH_FEATURE +#ifdef HTTP_FEATURE case ESP_HTTP_PORT: res = DEFAULT_HTTP_PORT; break; +#endif //HTTP_FEATURE +#ifdef TELNET_FEATURE case ESP_TELNET_PORT: res = DEFAULT_TELNET_PORT; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //TELNET_FEATURE +#if defined(DHT_DEVICE) case ESP_DHT_INTERVAL: res = DEFAULT_DHT_INTERVAL; break; +#endif //DHT_DEVICE default: res = DEFAULT_ESP_INT; } @@ -298,17 +327,21 @@ uint32_t Settings_ESP3D::get_max_int32_value(int pos) { uint32_t res; switch(pos) { -#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) +#ifdef HTTP_FEATURE case ESP_HTTP_PORT: res = MAX_HTTP_PORT; break; +#endif //HTTP_FEATURE +#ifdef TELNET_FEATURE case ESP_TELNET_PORT: res = MAX_TELNET_PORT; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //TELNET_FEATURE +#if defined(DHT_DEVICE) case ESP_DHT_INTERVAL: res = MAX_DHT_INTERVAL; break; +#endif //DHT_DEVICE default: res = DEFAULT_ESP_INT; } @@ -320,17 +353,21 @@ uint32_t Settings_ESP3D::get_min_int32_value(int pos) { uint32_t res; switch(pos) { -#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) +#ifdef HTTP_FEATURE case ESP_HTTP_PORT: res = MIN_HTTP_PORT; break; +#endif //HTTP_FEATURE +#ifdef TELNET_FEATURE case ESP_TELNET_PORT: res = MIN_TELNET_PORT; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //TELNET_FEATURE +#if defined(DHT_DEVICE) case ESP_DHT_INTERVAL: res = MIN_DHT_INTERVAL; break; +#endif //DHT_DEVICE default: res = DEFAULT_ESP_INT; } @@ -346,6 +383,11 @@ uint8_t Settings_ESP3D::get_max_byte(int pos) res = MAX_CHANNEL; break; #endif //WIFI_FEATURE +#ifdef TIMESTAMP_FEATURE + case ESP_TIMEZONE: + res= 12; + break; +#endif //TIMESTAMP_FEATURE default: res = 255; } @@ -359,7 +401,12 @@ uint8_t Settings_ESP3D::get_min_byte(int pos) case ESP_AP_CHANNEL: res = MIN_CHANNEL; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //WIFI_FEATURE +#ifdef TIMESTAMP_FEATURE + case ESP_TIMEZONE: + res= -12; + break; +#endif //TIMESTAMP_FEATURE default: res = 0; } @@ -378,10 +425,11 @@ const String & Settings_ESP3D::get_default_string_value(int pos) { static String res; switch(pos) { -#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) +#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) || defined (BLUETOOTH_FEATURE) case ESP_HOSTNAME: res = DEFAULT_HOSTNAME; break; +#ifdef TIMESTAMP_FEATURE case ESP_TIME_SERVER1: res = DEFAULT_TIME_SERVER1; break; @@ -391,7 +439,8 @@ const String & Settings_ESP3D::get_default_string_value(int pos) case ESP_TIME_SERVER3: res = DEFAULT_TIME_SERVER3; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //TIMESTAMP_FEATURE +#endif //WIFI_FEATURE || ETH_FEATURE || defined (ETH_FEATURE) #if defined (WIFI_FEATURE) case ESP_STA_SSID: res = DEFAULT_STA_SSID; @@ -406,13 +455,14 @@ const String & Settings_ESP3D::get_default_string_value(int pos) res = DEFAULT_AP_PASSWORD; break; #endif //WIFI_FEATURE +#ifdef AUTHENTICATION_FEATURE case ESP_ADMIN_PWD: res = DEFAULT_ADMIN_PWD; break; case ESP_USER_PWD: res = DEFAULT_USER_PWD; break; - +#endif //AUTHENTICATION_FEATURE case ESP_SETTINGS_VERSION: res = DEFAULT_SETTINGS_VERSION; break; @@ -427,17 +477,19 @@ uint8_t Settings_ESP3D::get_max_string_size(int pos) { uint8_t res; switch(pos) { -#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) - +#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) || defined (BLUETOOTH_FEATURE) case ESP_HOSTNAME: res = MAX_HOSTNAME_LENGTH; break; +#endif //WIFI_FEATURE || ETH_FEATURE || BLUETOOTH_FEATURE +#ifdef TIMESTAMP_FEATURE case ESP_TIME_SERVER1: case ESP_TIME_SERVER2: case ESP_TIME_SERVER3: res = MAX_SERVER_ADDRESS_LENGTH; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //TIMESTAMP_FEATURE + #if defined (WIFI_FEATURE) case ESP_STA_SSID: case ESP_AP_SSID: @@ -448,11 +500,12 @@ uint8_t Settings_ESP3D::get_max_string_size(int pos) res = MAX_PASSWORD_LENGTH; break; #endif //WIFI_FEATURE +#ifdef AUTHENTICATION_FEATURE case ESP_ADMIN_PWD: case ESP_USER_PWD: res = MAX_LOCAL_PASSWORD_LENGTH; break; - +#endif //AUTHENTICATION_FEATURE case ESP_SETTINGS_VERSION: res = MAX_VERSION_LENGTH; break; @@ -467,16 +520,18 @@ uint8_t Settings_ESP3D::get_min_string_size(int pos) { uint8_t res; switch(pos) { -#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) +#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) || defined (BLUETOOTH_FEATURE) case ESP_HOSTNAME: res = MIN_HOSTNAME_LENGTH; break; +#ifdef TIMESTAMP_FEATURE case ESP_TIME_SERVER1: case ESP_TIME_SERVER2: case ESP_TIME_SERVER3: res = MIN_SERVER_ADDRESS_LENGTH; break; -#endif //WIFI_FEATURE || ETH_FEATURE +#endif //TIMESTAMP_FEATURE +#endif //WIFI_FEATURE || ETH_FEATURE || BLUETOOTH_FEATURE #if defined (WIFI_FEATURE) case ESP_STA_SSID: case ESP_AP_SSID: @@ -486,12 +541,13 @@ uint8_t Settings_ESP3D::get_min_string_size(int pos) case ESP_AP_PASSWORD: res = MIN_PASSWORD_LENGTH; break; -#endif +#endif //WIFI_FEATURE +#ifdef AUTHENTICATION_FEATURE case ESP_ADMIN_PWD: case ESP_USER_PWD: res = MIN_LOCAL_PASSWORD_LENGTH; break; - +#endif //AUTHENTICATION_FEATURE default: res = DEFAULT_ESP_STRING_SIZE; } @@ -504,7 +560,7 @@ uint8_t Settings_ESP3D::read_byte (int pos, bool * haserror) *haserror = true; } uint8_t value = get_default_byte_value(pos); -#if defined( SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM //check if parameters are acceptable if ((pos + 1 > EEPROM_SIZE) ) { log_esp3d("Error read byte %d", pos); @@ -515,7 +571,7 @@ uint8_t Settings_ESP3D::read_byte (int pos, bool * haserror) value = EEPROM.read (pos); EEPROM.end(); #endif //SETTINGS_IN_EEPROM -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES Preferences prefs; if (!prefs.begin(NAMESPACE, true)) { log_esp3d("Error opening %s", NAMESPACE); @@ -534,7 +590,7 @@ uint8_t Settings_ESP3D::read_byte (int pos, bool * haserror) //write a flag / byte bool Settings_ESP3D::write_byte (int pos, const uint8_t value) { -#if defined( SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM //check if parameters are acceptable if (pos + 1 > EEPROM_SIZE) { log_esp3d("Error read byte %d", pos); @@ -548,7 +604,7 @@ bool Settings_ESP3D::write_byte (int pos, const uint8_t value) } EEPROM.end(); #endif //SETTINGS_IN_EEPROM -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES Preferences prefs; if (!prefs.begin(NAMESPACE, false)) { log_esp3d("Error opening %s", NAMESPACE); @@ -565,6 +621,16 @@ bool Settings_ESP3D::write_byte (int pos, const uint8_t value) return true; } +bool Settings_ESP3D::is_string(const char * s, uint len) +{ + for (uint p = 0; p < len; p++) { + if (!isPrintable (char(s[p]))) { + return false; + } + } + return true; +} + //read a string //a string is multibyte + \0, this is won't work if 1 char is multibyte like chinese char const char * Settings_ESP3D::read_string (int pos, bool *haserror) @@ -577,7 +643,7 @@ const char * Settings_ESP3D::read_string (int pos, bool *haserror) log_esp3d("Error size string %d", pos); return DEFAULT_ESP_STRING; } -#if defined(SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM static char * byte_buffer = NULL; size_max++;//do not forget the 0x0 for the end if (byte_buffer) { @@ -601,7 +667,7 @@ const char * Settings_ESP3D::read_string (int pos, bool *haserror) //read until max size is reached or \0 is found while (i < size_max && b != 0) { b = EEPROM.read (pos + i); - byte_buffer[i] = b; + byte_buffer[i] = isPrintable (char(b))?b:0; i++; } @@ -610,12 +676,14 @@ const char * Settings_ESP3D::read_string (int pos, bool *haserror) byte_buffer[i - 1] = 0x00; } EEPROM.end(); + if (haserror) { *haserror = false; } return byte_buffer; + #endif //SETTINGS_IN_EEPROM -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES Preferences prefs; static String res; @@ -626,14 +694,17 @@ const char * Settings_ESP3D::read_string (int pos, bool *haserror) String p = "P_" + String(pos); res = prefs.getString(p.c_str(), get_default_string_value(pos)); prefs.end(); - if(haserror) { - *haserror = false; - } + if (res.length() > size_max) { log_esp3d("String too long %d vs %d", res.length(), size_max); res = res.substring(0,size_max-1); } + + if (haserror) { + *haserror = false; + } return res.c_str(); + #endif //SETTINGS_IN_PREFERENCES } @@ -651,7 +722,7 @@ bool Settings_ESP3D::write_string (int pos, const char * byte_buffer) log_esp3d("Error string too long %d, %d", pos, size_buffer); return false; } -#if defined(SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM if ( pos + size_buffer + 1 > EEPROM_SIZE || byte_buffer == NULL) { log_esp3d("Error write string %d", pos); return false; @@ -669,7 +740,7 @@ bool Settings_ESP3D::write_string (int pos, const char * byte_buffer) } EEPROM.end(); #endif //SETTINGS_IN_EEPROM -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES Preferences prefs; if (!prefs.begin(NAMESPACE, false)) { log_esp3d("Error opening %s", NAMESPACE); @@ -693,7 +764,7 @@ uint32_t Settings_ESP3D::read_uint32(int pos, bool * haserror) *haserror = true; } uint32_t res = get_default_int32_value(pos); -#if defined(SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM //check if parameters are acceptable uint8_t size_buffer = sizeof(uint32_t); if ( pos + size_buffer > EEPROM_SIZE ) { @@ -709,7 +780,7 @@ uint32_t Settings_ESP3D::read_uint32(int pos, bool * haserror) } EEPROM.end(); #endif //SETTINGS_IN_EEPROM -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES Preferences prefs; if (!prefs.begin(NAMESPACE, true)) { log_esp3d("Error opening %s", NAMESPACE); @@ -740,7 +811,7 @@ String Settings_ESP3D::read_IP_String(int pos, bool * haserror) //write a uint32 bool Settings_ESP3D::write_uint32(int pos, const uint32_t value) { -#if defined(SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM uint8_t size_buffer = sizeof(uint32_t); //check if parameters are acceptable if (pos + size_buffer > EEPROM_SIZE) { @@ -758,7 +829,7 @@ bool Settings_ESP3D::write_uint32(int pos, const uint32_t value) } EEPROM.end(); #endif //SETTINGS_IN_EEPROM -#if defined(SETTINGS_IN_PREFERENCES) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES Preferences prefs; if (!prefs.begin(NAMESPACE, false)) { log_esp3d("Error opening %s", NAMESPACE); @@ -786,7 +857,9 @@ bool Settings_ESP3D::reset() { bool res = true; log_esp3d("Reset Settings"); -#if defined(SETTINGS_IN_PREFERENCES) + +#if ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES + log_esp3d("clear preferences"); Preferences prefs; if (!prefs.begin(NAMESPACE, false)) { return false; @@ -794,29 +867,22 @@ bool Settings_ESP3D::reset() res = prefs.clear(); prefs.end(); #endif //SETTINGS_IN_PREFERENCES + //for EEPROM need to overwrite all settings -#if defined(SETTINGS_IN_EEPROM) +#if ESP_SAVE_SETTINGS == SETTINGS_IN_EEPROM + log_esp3d("clear EEPROM"); + #if defined (WIFI_FEATURE) || defined (BLUETOOTH_FEATURE) || defined (ETH_FEATURE) //Hostname Settings_ESP3D::write_string(ESP_HOSTNAME,Settings_ESP3D::get_default_string_value(ESP_HOSTNAME).c_str()); -#endif //WIFI_FEATURE || BLUETOOTH_FEATURE +#endif //WIFI_FEATURE || BLUETOOTH_FEATURE || ETH_FEATURE //radio mode Settings_ESP3D::write_byte(ESP_RADIO_MODE,Settings_ESP3D::get_default_byte_value(ESP_RADIO_MODE)); -#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) +#if defined (WIFI_FEATURE) //STA SSID Settings_ESP3D::write_string(ESP_STA_SSID,Settings_ESP3D::get_default_string_value(ESP_STA_SSID).c_str()); //STA pwd Settings_ESP3D::write_string(ESP_STA_PASSWORD,Settings_ESP3D::get_default_string_value(ESP_STA_PASSWORD).c_str()); - //STA Network Mode - //Settings_ESP3D::write_byte(ESP_STA_PHY_MODE,Settings_ESP3D::get_default_byte_value(ESP_STA_PHY_MODE)); - //STA IP mode - Settings_ESP3D::write_byte(ESP_STA_IP_MODE,Settings_ESP3D::get_default_byte_value(ESP_STA_IP_MODE)); - //STA static IP - Settings_ESP3D::write_IP(ESP_STA_IP_VALUE, Settings_ESP3D::get_default_IP_value(ESP_STA_IP_VALUE)); - //STA static Gateway - Settings_ESP3D::write_IP(ESP_STA_GATEWAY_VALUE, Settings_ESP3D::get_default_IP_value(ESP_STA_GATEWAY_VALUE)); - //STA static Mask - Settings_ESP3D::write_IP(ESP_STA_MASK_VALUE, Settings_ESP3D::get_default_IP_value(ESP_STA_MASK_VALUE)); //AP SSID Settings_ESP3D::write_string(ESP_AP_SSID,Settings_ESP3D::get_default_string_value(ESP_AP_SSID).c_str()); //AP password @@ -831,6 +897,20 @@ bool Settings_ESP3D::reset() //Settings_ESP3D::write_byte(ESP_AP_AUTH_TYPE,Settings_ESP3D::get_default_byte_value(ESP_AP_AUTH_TYPE)); //AP SSID visibility //Settings_ESP3D::write_byte(ESP_SSID_VISIBLE,Settings_ESP3D::get_default_byte_value(ESP_SSID_VISIBLE)); +#endif //WIFI_FEATURE + +#if defined (WIFI_FEATURE) || defined (ETH_FEATURE) + //STA Network Mode + //Settings_ESP3D::write_byte(ESP_STA_PHY_MODE,Settings_ESP3D::get_default_byte_value(ESP_STA_PHY_MODE)); + //STA IP mode + Settings_ESP3D::write_byte(ESP_STA_IP_MODE,Settings_ESP3D::get_default_byte_value(ESP_STA_IP_MODE)); + //STA static IP + Settings_ESP3D::write_IP(ESP_STA_IP_VALUE, Settings_ESP3D::get_default_IP_value(ESP_STA_IP_VALUE)); + //STA static Gateway + Settings_ESP3D::write_IP(ESP_STA_GATEWAY_VALUE, Settings_ESP3D::get_default_IP_value(ESP_STA_GATEWAY_VALUE)); + //STA static Mask + Settings_ESP3D::write_IP(ESP_STA_MASK_VALUE, Settings_ESP3D::get_default_IP_value(ESP_STA_MASK_VALUE)); +#endif //WIFI_FEATURE || ETH_FEATURE #ifdef HTTP_FEATURE //HTTP On Settings_ESP3D::write_byte(ESP_HTTP_ON,Settings_ESP3D::get_default_byte_value(ESP_HTTP_ON)); @@ -844,7 +924,6 @@ bool Settings_ESP3D::reset() //TELNET Port Settings_ESP3D::write_uint32 (ESP_TELNET_PORT, Settings_ESP3D::get_default_int32_value(ESP_TELNET_PORT)); #endif //TELNET -#endif //WIFI_FEATURE #ifdef AUTHENTICATION_FEATURE //Admin password Settings_ESP3D::write_string(ESP_ADMIN_PWD,Settings_ESP3D::get_default_string_value(ESP_ADMIN_PWD).c_str()); @@ -858,10 +937,30 @@ bool Settings_ESP3D::reset() #ifdef SDCARD_FEATURE //Direct SD Settings_ESP3D::write_byte(ESP_IS_DIRECT_SD,Settings_ESP3D::get_default_byte_value(ESP_IS_DIRECT_SD)); -#endif //SDCARD_FEATURE +#endif //SDCARD_FEATURE + +#ifdef TIMESTAMP_FEATURE + //Time Zone + Settings_ESP3D::write_byte(ESP_TIMEZONE,Settings_ESP3D::get_default_byte_value(ESP_TIMEZONE)); + //Is DST Time Zone + Settings_ESP3D::write_byte(ESP_TIME_IS_DST,Settings_ESP3D::get_default_byte_value(ESP_TIME_IS_DST)); + //Time Server 1 address + Settings_ESP3D::write_string(ESP_TIME_SERVER1, Settings_ESP3D::get_default_string_value(ESP_TIME_SERVER1).c_str()); + //Time Server 2 address + Settings_ESP3D::write_string(ESP_TIME_SERVER2, Settings_ESP3D::get_default_string_value(ESP_TIME_SERVER2).c_str()); + //Time Server 3 address + Settings_ESP3D::write_string(ESP_TIME_SERVER3, Settings_ESP3D::get_default_string_value(ESP_TIME_SERVER3).c_str()); +#endif //TIMESTAMP_FEATURE +#ifdef DHT_DEVICE + //DHT device + Settings_ESP3D::write_byte(ESP_DHT_TYPE,Settings_ESP3D::get_default_byte_value(ESP_DHT_TYPE)); + //DHT query interval + Settings_ESP3D::write_uint32 (ESP_DHT_INTERVAL, Settings_ESP3D::get_default_int32_value(ESP_DHT_INTERVAL)); +#endif //DHT_DEVICE #endif //SETTINGS_IN_EEPROM //set version in settings if (res) { + log_esp3d("Reset Setting Version"); res = Settings_ESP3D::write_string(ESP_SETTINGS_VERSION, CURRENT_SETTINGS_VERSION); } return res; @@ -935,3 +1034,4 @@ bool Settings_ESP3D::isLocalPasswordValid (const char * password) } return true; } +#endif //ESP_SAVE_SETTINGS diff --git a/esp3d/src/core/settings_esp3d.h b/esp3d/src/core/settings_esp3d.h index 73e2b2da..64cb178e 100644 --- a/esp3d/src/core/settings_esp3d.h +++ b/esp3d/src/core/settings_esp3d.h @@ -121,6 +121,7 @@ public: static const char * TargetBoard(); static bool isLocalPasswordValid (const char * password); private: + static bool is_string(const char * s, uint len); static uint8_t _FirmwareTarget; static bool _directSD; }; diff --git a/esp3d/src/include/defines.h b/esp3d/src/include/defines.h new file mode 100644 index 00000000..5b5e959f --- /dev/null +++ b/esp3d/src/include/defines.h @@ -0,0 +1,57 @@ +/* + defines.h - ESP3D defines file + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _DEFINES_ESP3D_H +#define _DEFINES_ESP3D_H + +//Settings +#define SETTINGS_IN_EEPROM 1 +#define SETTINGS_IN_PREFERENCES 2 + +//Debug +#define DEBUG_OUTPUT_SERIAL0 1 +#define DEBUG_OUTPUT_SERIAL1 2 +#define DEBUG_OUTPUT_SERIAL2 3 + +//Serial +#define USE_SERIAL_0 1 +#define USE_SERIAL_1 2 +#define USE_SERIAL_2 3 + +//Display +#define OLED_I2C_SSD1306 1 +#define OLED_I2C_SSDSH1106 2 + +//File systems +#define ESP_SPIFFS_FILESYSTEM 1 +#define ESP_FAT_FILESYSTEM 2 +#define ESP_LITTLEFS_FILESYSTEM 3 + +//Notifications +#define ESP_PUSHOVER_NOTIFICATION 1 +#define ESP_EMAIL_NOTIFICATION 2 + +//DHT +#define DHT11_DEVICE 1 +#define DHT22_DEVICE 2 +#define USE_CELSIUS 1 +#define USE_FAHRENHEIT 2 + +#endif //_DEFINES_ESP3D_H diff --git a/esp3d/src/include/esp3d_config.h b/esp3d/src/include/esp3d_config.h index b4f1a0f6..5b5c451c 100644 --- a/esp3d/src/include/esp3d_config.h +++ b/esp3d/src/include/esp3d_config.h @@ -21,9 +21,26 @@ #ifndef _ESP3D_CONFIG_H #define _ESP3D_CONFIG_H #include +#include "../include/defines.h" #include "../configuration.h" #include "../include/sanity_esp3d.h" #include "../core/hal.h" #include "../core/debug_esp3d.h" #include "../include/version.h" + +/************************************ + * + * Additional Flags + * + * **********************************/ + +//Make Flag more generic +#if defined(PIN_RESET_FEATURE) || defined(SD_RECOVERY_FEATURE) +#define RECOVERY_FEATURE +#endif //PIN_RESET_FEATURE || SD_RECOVERY_FEATURE + +#if defined(DISPLAY_DEVICE) || defined(DHT_DEVICE) || defined(RECOVERY_FEATURE) +#define CONNECTED_DEVICES_FEATURE +#endif //DISPLAY_DEVICE || DHT_DEVICE + #endif //_ESP3D_CONFIG_H diff --git a/esp3d/src/include/sanity_esp3d.h b/esp3d/src/include/sanity_esp3d.h index fd8d79b0..52323ff7 100644 --- a/esp3d/src/include/sanity_esp3d.h +++ b/esp3d/src/include/sanity_esp3d.h @@ -26,32 +26,38 @@ /************************** * Settings * ***********************/ -#if defined (SETTINGS_IN_PREFERENCES) && defined( ARDUINO_ARCH_ESP8266) +#if (ESP_SAVE_SETTINGS == SETTINGS_IN_PREFERENCES) && defined( ARDUINO_ARCH_ESP8266) #error Preferences library is not available for ESP8266 #endif -#if defined (SETTINGS_IN_PREFERENCES) && defined( SETTINGS_IN_EEPROM) -#error Choose Preferences or EEPROM for settings not both +#if !defined (ESP_SAVE_SETTINGS) +#error Choose Preferences or EEPROM for settings #endif +/************************** + * Debug + * ***********************/ + +#if defined(ESP_DEBUG_FEATURE) +#if ESP_DEBUG_FEATURE == ESP_SERIAL_OUTPUT +#warning You use same serial for output and debug +#endif //ESP_DEBUG_FEATURE == ESP_SERIAL_OUTPUT +#if (ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL2) && defined( ARDUINO_ARCH_ESP8266) +#error Serial 2 is not available in ESP8266 for debug +#endif //ESP_DEBUG_FEATURE == DEBUG_OUTPUT_SERIAL2 ) && ARDUINO_ARCH_ESP8266 +#endif //ESP_DEBUG_FEATURE + /************************** * Serial * ***********************/ -#if (defined(DEBUG_OUTPUT_SERIAL0) && (defined (DEBUG_OUTPUT_SERIAL1) || defined (DEBUG_OUTPUT_SERIAL2))) || (defined (DEBUG_OUTPUT_SERIAL1) && defined (DEBUG_OUTPUT_SERIAL2)) -#error You can only use one serial for debug + +#if !defined(ESP_SERIAL_OUTPUT) +#error ESP_SERIAL_OUTPUT must be defined #endif -#if (defined(USE_SERIAL_0) && (defined (USE_SERIAL_1) || defined (USE_SERIAL_2))) || (defined (USE_SERIAL_1) && defined (USE_SERIAL_2)) -#error You can only use one serial output -#endif - -#if (defined(DEBUG_OUTPUT_SERIAL0) &&defined(USE_SERIAL_0)) || (defined(DEBUG_OUTPUT_SERIAL1) &&defined(USE_SERIAL_1)) || (defined(DEBUG_OUTPUT_SERIAL2) &&defined(USE_SERIAL_2)) -#warning You use same serial for output and debug -#endif - -#if ((defined (USE_SERIAL_2) || defined (DEBUG_OUTPUT_SERIAL2))&& defined( ARDUINO_ARCH_ESP8266)) +#if (ESP_SERIAL_OUTPUT == USE_SERIAL2) && defined( ARDUINO_ARCH_ESP8266) #error Serial 2 is not available in ESP8266 -#endif +#endif //ESP_SERIAL_OUTPUT == USE_SERIAL_2 ) && ARDUINO_ARCH_ESP8266 /************************** @@ -79,7 +85,7 @@ /************************** * Filesystem * ***********************/ -#if FILESYSTEM_FEATURE == 1 && defined( ARDUINO_ARCH_ESP8266) +#if FILESYSTEM_FEATURE == ESP_FAT_FILESYSTEM && defined( ARDUINO_ARCH_ESP8266) #error Fat FS is not available in ESP8266 #endif diff --git a/esp3d/src/include/version.h b/esp3d/src/include/version.h index a10dd38f..8bda700c 100644 --- a/esp3d/src/include/version.h +++ b/esp3d/src/include/version.h @@ -22,7 +22,7 @@ #define _VERSION_ESP3D_H //version and sources location -#define FW_VERSION "3.0.0.a3" +#define FW_VERSION "3.0.0.a4" #define REPOSITORY "https://github.com/luc-github/ESP3D" #endif //_VERSION_ESP3D_H diff --git a/esp3d/src/modules/authentication/authentication_service.cpp b/esp3d/src/modules/authentication/authentication_service.cpp index e6a2983a..13e40e2e 100644 --- a/esp3d/src/modules/authentication/authentication_service.cpp +++ b/esp3d/src/modules/authentication/authentication_service.cpp @@ -101,6 +101,7 @@ level_authenticate_type AuthenticationService::authenticated_level(const char * } return auth_type; #else + (void)pwd; return LEVEL_ADMIN; #endif //AUTHENTICATION_FEATURE } diff --git a/esp3d/src/modules/devices/devices_services.cpp b/esp3d/src/modules/devices/devices_services.cpp new file mode 100644 index 00000000..d61eb394 --- /dev/null +++ b/esp3d/src/modules/devices/devices_services.cpp @@ -0,0 +1,107 @@ +/* + devices_services.cpp - devices services functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "../../include/esp3d_config.h" +#ifdef CONNECTED_DEVICES_FEATURE +#include "devices_services.h" +#include "../../core/settings_esp3d.h" +#include "../../core/esp3doutput.h" + +#ifdef DISPLAY_DEVICE +#include "../display/display.h" +#endif //DISPLAY_DEVICE +#ifdef DHT_DEVICE +#include "../dht/dht.h" +#endif //DHT_DEVICE +#ifdef RECOVERY_FEATURE +#include "../recovery/recovery_service.h" +#endif //RECOVERY_FEATURE + +bool DevicesServices::_started = false; + +DevicesServices::DevicesServices() +{ +} +DevicesServices::~DevicesServices() +{ + end(); +} + +bool DevicesServices::begin() +{ + bool res = true; + _started = false; +#ifdef DISPLAY_DEVICE + if (!esp3d_display.begin()) { + log_esp3d("Error starting display device"); + res = false; + } +#endif //DISPLAY_DEVICE +#ifdef DHT_DEVICE + if (!esp3d_DHT.begin()) { + log_esp3d("Error starting DHT device"); + res = false; + } +#endif //DHT_DEVICE +#ifdef RECOVERY_FEATURE + if (!recovery_service.begin()) { + log_esp3d("Error starting recorery service"); + res = false; + } +#endif //RECOVERY_FEATURE + if (!res) { + end(); + } + _started = res; + return _started; +} +void DevicesServices::end() +{ + if(!_started) { + return; + } + _started = false; +#ifdef RECOVERY_FEATURE + recovery_service.end(); +#endif //RECOVERY_FEATURE +#ifdef DISPLAY_DEVICE + esp3d_display.end(); +#endif //DISPLAY_DEVICE +#ifdef DHT_DEVICE + esp3d_DHT.end(); +#endif //DHT_DDEVICE +} + +void DevicesServices::handle() +{ + if (_started) { +#ifdef DISPLAY_DEVICE + esp3d_display.handle(); +#endif //DISPLAY_DEVICE +#ifdef DHT_DEVICE + esp3d_DHT.handle(); +#endif //DHT_DEVICE +#ifdef RECOVERY_FEATURE + recovery_service.handle(); +#endif //RECOVERY_FEATURE + } +} + +#endif //#CONNECTED_DEVICES_FEATURE diff --git a/esp3d/src/modules/devices/devices_services.h b/esp3d/src/modules/devices/devices_services.h new file mode 100644 index 00000000..8086ffb8 --- /dev/null +++ b/esp3d/src/modules/devices/devices_services.h @@ -0,0 +1,40 @@ +/* + devices_services.h - devices services functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + + + +#ifndef _DEVICES_SERVICES_H +#define _DEVICES_SERVICES_H + + +class DevicesServices +{ +public: + DevicesServices(); + ~DevicesServices(); + static bool begin(); + static void end(); + static void handle(); +private: + static bool _started; +}; + +#endif //_DEVICES_SERVICES_H + diff --git a/esp3d/src/modules/dht/dht.cpp b/esp3d/src/modules/dht/dht.cpp new file mode 100644 index 00000000..2f72862e --- /dev/null +++ b/esp3d/src/modules/dht/dht.cpp @@ -0,0 +1,192 @@ +/* + dht.cpp - dht functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "../../include/esp3d_config.h" +#ifdef DHT_DEVICE +#include "dht.h" +#include "../../core/settings_esp3d.h" +#include "../../core/esp3doutput.h" +#include +#if defined (WIFI_FEATURE) || defined(ETH_FEATURE) +#include "../websocket/websocket_server.h" +#endif // WIFI_FEATURE || ETH_FEATURE + +DHT esp3d_DHT; +DHTesp * dht_device; + +DHT::DHT() +{ + _temperature =0; + _humidity =0; + _started = false; + _interval = 0; + dht_device = nullptr; +#if DHT_UNIT == USE_FAHRENHEIT + _usecelsius = false; +#else + _usecelsius = true; +#endif +} +DHT::~DHT() +{ + end(); +} + +bool DHT::begin() +{ + bool res = true; + end(); + uint8_t dhttype= Settings_ESP3D::read_byte(ESP_DHT_TYPE); + log_esp3d("DHT %d", dhttype); + //No DHT defined - exit is not and error + if (dhttype == 0) { + return true; + } + //DHT type is unknown - exit as error + if (!((dhttype == DHT11_DEVICE) || (dhttype == DHT22_DEVICE))) { + return false; + } + dht_device = new DHTesp; + + //dht_device = new DHTesp; + if (!dht_device) { + return false; + } + //no need to check pin because it is hard coded + dht_device->setup(ESP3D_DHT_PIN, (DHTesp::DHT_MODEL_t)dhttype); + _interval = Settings_ESP3D::read_uint32(ESP_DHT_INTERVAL); + log_esp3d("DHT status %d", dht_device->getStatus()); + if (!dht_device->getStatus()) { + res = false; + } + if (!res) { + end(); + } + _lastReadTime = millis(); + _started = res; + return _started; +} + +bool DHT::isCelsiusUnit() +{ + return _usecelsius; +} +void DHT::setCelsiusUnit(bool set) +{ + _usecelsius = set; +} + +void DHT::end() +{ + if(!_started) { + return; + } + if (dht_device) { + delete dht_device; + dht_device = nullptr; + } + _started = false; + _interval = 0; + _temperature =0; + _humidity =0; +} + +uint8_t DHT::GetModel() +{ + if (_started) { + return dht_device->getModel(); + } else { + return 0; + } +} + +float DHT::getHumidity() +{ + if (_started) { + return _humidity; + } + return 0.0; +} + +float DHT::getTemperature() +{ + if (_started) { + if (_usecelsius) { + return _temperature; + } else { + return dht_device->toFahrenheit(dht_device->getTemperature()); + } + + } + return 0.0; +} + + +const char * DHT::GetModelString() +{ + if (_started) { + if (dht_device->getModel() == 1) { + return "DHT11"; + } else { + return "DHT22"; + } + } + return "NONE"; +} + +bool DHT::started() +{ + return _started; +} + +bool DHT::setInterval(uint interval) +{ + _interval = interval; + return true; +} +uint DHT::interval() +{ + return _interval; +} + +void DHT::handle() +{ + if (_started) { + if ((millis() - _lastReadTime) > _interval) { + _temperature = dht_device->getTemperature(); + _humidity = dht_device->getHumidity(); + _lastReadTime = millis(); +#if defined (WIFI_FEATURE) || defined(ETH_FEATURE) + String s = "DHT:" ; + s += String(_humidity,1); + if (s !="nan") { + s+="% "; + s+= String(_temperature,1); + s+= _usecelsius?"C ":"F "; + } else { + s ="DHT:Disconnected "; + } + websocket_terminal_server.pushMSG(s.c_str()); +#endif // WIFI_FEATURE || ETH_FEATURE + } + } +} + +#endif //DHT_DEVICE diff --git a/esp3d/src/modules/dht/dht.h b/esp3d/src/modules/dht/dht.h new file mode 100644 index 00000000..a1eafe15 --- /dev/null +++ b/esp3d/src/modules/dht/dht.h @@ -0,0 +1,55 @@ +/* + dht.h - dht functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + + + +#ifndef _DHT_H +#define _DHT_H + +class DHT +{ +public: + DHT(); + ~DHT(); + bool begin(); + void end(); + void handle(); + bool setInterval(uint interval); + uint interval(); + uint8_t GetModel(); + const char *GetModelString(); + float getHumidity(); + float getTemperature(); + bool started(); + bool isCelsiusUnit(); + void setCelsiusUnit(bool set); +private: + bool _started; + bool _usecelsius; + uint32_t _interval; + uint32_t _lastReadTime; + float _temperature; + float _humidity; +}; + +extern DHT esp3d_DHT; + +#endif //_DHT_H + diff --git a/esp3d/src/modules/display/display.cpp b/esp3d/src/modules/display/display.cpp new file mode 100644 index 00000000..40d90d0a --- /dev/null +++ b/esp3d/src/modules/display/display.cpp @@ -0,0 +1,153 @@ +/* + display.cpp - display functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "../../include/esp3d_config.h" +#if defined (DISPLAY_DEVICE) +#include "display.h" +#include "../../core/settings_esp3d.h" +#include "../../core/esp3doutput.h" + +#if DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 +#include "Wire.h" +#if DISPLAY_DEVICE == OLED_I2C_SSD1306 +#include +SSD1306 esp_display(DISPLAY_I2C_ADDR, DISPLAY_I2C_PIN_SDA, DISPLAY_I2C_PIN_SCL); +#endif //DISPLAY_DEVICE == OLED_I2C_SSD1306 +#if DISPLAY_DEVICE == OLED_I2C_SSDSH1106 +#include +SH1106 esp_display(DISPLAY_I2C_ADDR, (DISPLAY_I2C_PIN_SDA==-1)?SDA:DISPLAY_I2C_PIN_SDA, (DISPLAY_I2C_PIN_SCL==-1)?SCL:DISPLAY_I2C_PIN_SCL); +#endif //DISPLAY_DEVICE == OLED_I2C_SSDSH1106 +#endif //DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + +#include "esp3d_logo.h" + +#define DISPLAY_REFRESH_TIME 1000 + +Display esp3d_display; + +bool Display::splash() +{ + if (!_splash_displayed) { +#if DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + esp_display.drawXbm(33, 10, ESP3D_Logo_width, ESP3D_Logo_height, FPSTR(ESP3D_Logo)); +#endif //DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + log_esp3d("Splash"); + _splash_displayed = true; + return true; + } + return false; +} + +void Display::show_screenID(uint8_t screenID) +{ + _screenID = screenID; +} + +Display::Display() +{ + _started = false; + _screenID = SPLASH_SCREEN; + _splash_displayed=false; +} +Display::~Display() +{ + end(); +} + +bool Display::begin() +{ + bool res = true; + _started = false; +#if DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 +#if defined(DISPLAY_I2C_PIN_RST) + pinMode(DISPLAY_I2C_PIN_RST,OUTPUT); + digitalWrite(DISPLAY_I2C_PIN_RST, LOW); // turn the LED on (HIGH is the voltage level) + delay(10); // wait for a second + digitalWrite(DISPLAY_I2C_PIN_RST, HIGH); // turn the LED off by making the voltage LOW +#endif //DISPLAY_I2C_PIN_RST + log_esp3d("Init Display"); + esp_display.init(); + esp_display.clear(); +#if defined(DISPLAY_FLIP_VERTICALY) + esp_display.flipScreenVertically(); +#endif +#endif //DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + show_screenID(SPLASH_SCREEN); + update_screen(); + res = true; + if (!res) { + end(); + } + _started = res; + return _started; +} +void Display::end() +{ + if(!_started) { + return; + } + _started = false; + _screenID = SPLASH_SCREEN; + _splash_displayed=false; + clear_screen(); +} + +void Display::clear_screen() +{ +#if DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + esp_display.clear(); +#endif //#if DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 +} + +void Display::update_screen() +{ + bool need_update = false; + switch(_screenID) { + case SPLASH_SCREEN: + need_update = splash(); + break; + case MAIN_SCREEN: + log_esp3d("Mainscreen"); + clear_screen(); + need_update = true; + break; + default: + break; + } + if (need_update) { +#if DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + esp_display.display(); +#endif //DISPLAY_DEVICE == OLED_I2C_SSD1306 || DISPLAY_DEVICE == OLED_I2C_SSDSH1106 + } +} + +void Display::handle() +{ + static uint32_t last_update = millis(); + + if (_started) { + if ((millis()- last_update) > DISPLAY_REFRESH_TIME) { + last_update = millis(); + update_screen(); + } + } +} + +#endif //DISPLAY_DEVICE diff --git a/esp3d/src/modules/display/display.h b/esp3d/src/modules/display/display.h new file mode 100644 index 00000000..e416e792 --- /dev/null +++ b/esp3d/src/modules/display/display.h @@ -0,0 +1,49 @@ +/* + display.h - display functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#define SPLASH_SCREEN 0 +#define MAIN_SCREEN 1 + +#ifndef _DISPLAY_H +#define _DISPLAY_H + + +class Display +{ +public: + Display(); + ~Display(); + bool begin(); + void end(); + void handle(); + void show_screenID(uint8_t screenID); + void update_screen(); + void clear_screen(); +private: + bool splash(); + bool _started; + uint8_t _screenID; + bool _splash_displayed; +}; + +extern Display esp3d_display; + +#endif //_DISPLAY_H + diff --git a/esp3d/src/modules/display/esp3d_logo.h b/esp3d/src/modules/display/esp3d_logo.h new file mode 100644 index 00000000..08dc6031 --- /dev/null +++ b/esp3d/src/modules/display/esp3d_logo.h @@ -0,0 +1,59 @@ +/* + esp3d_logo.h - ESP3D data file + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _esp3d_logo_h +#define _esp3d_logo_h + +#define ESP3D_Logo_width 62 +#define ESP3D_Logo_height 45 +const char ESP3D_Logo[] PROGMEM = { + 0x00, 0x00, 0x00, 0xFE, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, + 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0xFF, 0x01, 0x00, 0x00, + 0x00, 0x00, 0xF8, 0xFF, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, + 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 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, + 0xE0, 0xC3, 0x0F, 0x10, 0xFC, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x18, + 0xFC, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x0C, 0xF8, 0xFF, 0xFF, 0x3F, + 0x00, 0x00, 0x00, 0x06, 0xF0, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x03, + 0xE0, 0xFF, 0xFF, 0x0F, 0x00, 0x00, 0x80, 0x01, 0xC0, 0xFF, 0xFF, 0x03, + 0x00, 0x00, 0xE0, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xFF, 0xFF, + 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, + 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, + 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x07, 0x00, 0x00, + 0x00, 0x00, 0xF0, 0xFF, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xFF, + 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x1F, 0x00, 0x00, 0x00, +}; + +#endif //_esp3d_logo_h diff --git a/esp3d/src/modules/filesystem/esp_filesystem.h b/esp3d/src/modules/filesystem/esp_filesystem.h index dffc2f58..59fb1322 100644 --- a/esp3d/src/modules/filesystem/esp_filesystem.h +++ b/esp3d/src/modules/filesystem/esp_filesystem.h @@ -18,10 +18,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#define ESP_SPIFFS_FILESYSTEM 0 -#define ESP_FAT_FILESYSTEM 1 -#define ESP_LITTLEFS_FILESYSTEM 2 - #ifndef _ESP_FILESYSTEM_H #define _ESP_FILESYSTEM_H #include "../../include/esp3d_config.h" diff --git a/esp3d/src/modules/http/embedded.h b/esp3d/src/modules/http/embedded.h index 31ad3b91..adff641c 100644 --- a/esp3d/src/modules/http/embedded.h +++ b/esp3d/src/modules/http/embedded.h @@ -25,377 +25,383 @@ /* Generated by bin2c, do not edit manually */ /* Contents of file tool.html.gz */ -#define tool_html_gz_size 5916 -const unsigned char tool_html_gz[5916] = { - 0x1F, 0x8B, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xED, 0x3C, 0x69, 0x73, 0xDB, 0x46, - 0x96, 0x7F, 0xA5, 0xDD, 0x53, 0x31, 0x89, 0x25, 0x40, 0xE2, 0xE2, 0x2D, 0xD2, 0xE3, 0xC4, 0xF6, - 0x44, 0x5B, 0x76, 0x9C, 0xB2, 0xE4, 0xF1, 0x6E, 0xD9, 0x2E, 0x17, 0x48, 0x34, 0x49, 0xAC, 0x41, - 0x80, 0x02, 0x9A, 0xA2, 0x64, 0x59, 0xFB, 0xDB, 0xF7, 0xBD, 0xEE, 0xC6, 0xC5, 0x4B, 0x47, 0x3C, - 0x3B, 0xF9, 0x90, 0xD0, 0x24, 0x80, 0x3E, 0x5E, 0xBF, 0xFB, 0xE8, 0x86, 0x72, 0xB2, 0xE0, 0xCB, - 0x70, 0x7C, 0xB2, 0x60, 0x9E, 0x3F, 0x3E, 0x49, 0xF9, 0x75, 0xC8, 0xC6, 0xD8, 0x72, 0x33, 0x8B, - 0x23, 0x6E, 0xCC, 0xBC, 0x65, 0x10, 0x5E, 0x0F, 0x52, 0x2F, 0x4A, 0x8D, 0x94, 0x25, 0xC1, 0x6C, - 0x68, 0x2C, 0x53, 0x83, 0xB3, 0x2B, 0x6E, 0xA4, 0xC1, 0x37, 0x66, 0x78, 0xFE, 0xFF, 0xAC, 0x53, - 0x3E, 0xB0, 0x4C, 0xF3, 0xA7, 0xA1, 0xB1, 0x61, 0x93, 0xAF, 0x01, 0x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B, 0x18, 0x7F, 0x01, 0x8F, 0x30, 0xB2, 0x8F, 0x0B, 0x0B, 0x20, 0x06, 0x02, 0x0E, 0xD5, 0x2A, - 0x17, 0xB8, 0xB6, 0x81, 0x38, 0x14, 0x08, 0x08, 0xC4, 0xAC, 0x10, 0xA1, 0x39, 0x17, 0xB8, 0xBA, - 0x81, 0x58, 0x28, 0xD4, 0x0D, 0x81, 0xBB, 0x21, 0x89, 0xB3, 0xC8, 0x05, 0xE2, 0x20, 0xD7, 0x45, - 0x74, 0x0D, 0x41, 0x3F, 0x3E, 0xB4, 0xC5, 0x18, 0x18, 0x82, 0x33, 0xEC, 0x0B, 0x44, 0x00, 0xE8, - 0x47, 0x28, 0x12, 0x88, 0x23, 0xD7, 0x31, 0x7A, 0xD6, 0x85, 0xD1, 0x31, 0x09, 0x62, 0x81, 0x18, - 0x20, 0x02, 0x3D, 0x94, 0x89, 0x8B, 0x78, 0x02, 0x40, 0x58, 0xDA, 0x45, 0x44, 0x7A, 0x04, 0x51, - 0xB7, 0x49, 0x27, 0x14, 0xEB, 0x02, 0xFD, 0x46, 0x87, 0xB8, 0x40, 0x67, 0x07, 0xD8, 0x0D, 0xF4, - 0xC3, 0xC2, 0x70, 0x07, 0x2C, 0x12, 0x9D, 0x21, 0x0C, 0xBC, 0xB0, 0x1C, 0x04, 0x2B, 0x67, 0x3A, - 0x44, 0x72, 0x16, 0x49, 0x76, 0xBB, 0x04, 0x08, 0x86, 0x95, 0xC4, 0x6A, 0x16, 0xCC, 0x84, 0x9E, - 0x10, 0xB1, 0x84, 0x95, 0x60, 0x3D, 0x89, 0x23, 0xF4, 0x86, 0x82, 0x02, 0x68, 0x46, 0x36, 0x23, - 0x4D, 0xDF, 0x84, 0xA0, 0x7B, 0xC0, 0xD0, 0x0B, 0xA3, 0xD7, 0x47, 0x4A, 0x05, 0xAB, 0x3B, 0x0E, - 0x87, 0xAF, 0x60, 0x48, 0xB3, 0xCD, 0x8B, 0xBB, 0xAC, 0x13, 0x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x7B, 0x83, - 0x28, 0x03, 0x6D, 0x25, 0x67, 0x43, 0x75, 0x3E, 0x2A, 0xA1, 0xDE, 0x4C, 0x57, 0x60, 0x61, 0x75, - 0x20, 0x40, 0xD3, 0x23, 0x41, 0x47, 0x30, 0x02, 0x40, 0x71, 0x52, 0x67, 0x0D, 0x9C, 0xE7, 0x2B, - 0x36, 0xD6, 0x64, 0x88, 0xAE, 0x91, 0x9C, 0x7D, 0x9F, 0x68, 0x99, 0x03, 0xB5, 0x56, 0x6D, 0x48, - 0x0E, 0x27, 0x0A, 0x9F, 0xE8, 0xB8, 0x25, 0x0C, 0x90, 0x0E, 0x83, 0x13, 0xDE, 0x0C, 0x59, 0x34, - 0xE7, 0x0B, 0xC3, 0x1A, 0x6A, 0x07, 0x56, 0x39, 0xB0, 0x08, 0x6D, 0xD4, 0xA3, 0xC6, 0x88, 0x7F, - 0x0C, 0x3E, 0x37, 0x10, 0xE3, 0x06, 0xBD, 0x6B, 0x51, 0xDA, 0x90, 0x83, 0x73, 0x57, 0xA3, 0xB0, - 0xD0, 0x83, 0x46, 0x63, 0x98, 0x30, 0xBE, 0x4E, 0x22, 0x22, 0x50, 0x28, 0xFB, 0x05, 0x7A, 0x9B, - 0x33, 0x12, 0xD4, 0x3C, 0x5D, 0x7C, 0x09, 0x40, 0x7F, 0x81, 0x99, 0x72, 0x3C, 0xCD, 0x92, 0x85, - 0x5A, 0xDB, 0xAE, 0x41, 0x90, 0xAF, 0x59, 0x70, 0x81, 0xB4, 0xA0, 0xD6, 0xA9, 0x61, 0x5A, 0x80, - 0x17, 0x19, 0xD5, 0x6A, 0x76, 0xBB, 0x96, 0xE5, 0x0E, 0xB5, 0x6E, 0x4D, 0xA9, 0x78, 0x0D, 0xC3, - 0xFD, 0x20, 0x61, 0xFE, 0xB0, 0x46, 0x5A, 0x80, 0xC8, 0x2E, 0xB8, 0xFD, 0x00, 0xEC, 0x2A, 0x00, - 0x91, 0x2E, 0xEC, 0x80, 0x70, 0x4C, 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 0x0F, 0xDB, 0x67, 0xF1, 0x5A, 0xE8, - 0x81, 0x82, 0xB3, 0xB4, 0x85, 0x88, 0xAF, 0x15, 0x3E, 0x0A, 0x92, 0x88, 0x0A, 0xC3, 0x3B, 0x02, - 0x6E, 0x58, 0x38, 0x0A, 0xB5, 0x83, 0x0C, 0x82, 0x3B, 0x3C, 0x7A, 0xB5, 0x33, 0x1A, 0x5F, 0xF3, - 0x13, 0x48, 0x3C, 0x7B, 0x7F, 0xF6, 0xF2, 0x5D, 0xB9, 0xD8, 0x45, 0x27, 0x0B, 0x28, 0x44, 0x1C, - 0x9C, 0x6F, 0x83, 0x3E, 0xFD, 0xFD, 0xF9, 0xD9, 0xD9, 0x87, 0xB7, 0xEF, 0x5E, 0xEC, 0x1F, 0xC2, - 0x71, 0xC8, 0xD9, 0xFB, 0x9F, 0xDF, 0x9C, 0x9E, 0x8F, 0xAE, 0x71, 0x5B, 0x2E, 0xD8, 0x17, 0x11, - 0x82, 0xBB, 0xB7, 0x86, 0x83, 0x9D, 0xAD, 0xE1, 0x27, 0xD0, 0xA6, 0xEA, 0x02, 0x51, 0x25, 0x04, - 0xD5, 0x2A, 0x21, 0x2F, 0x03, 0x2A, 0xF9, 0x56, 0x90, 0x97, 0x0A, 0x83, 0xAC, 0xE2, 0x07, 0x51, - 0x07, 0xE5, 0x32, 0x21, 0x12, 0x61, 0x28, 0xC8, 0xCA, 0x84, 0x4D, 0x10, 0xF9, 0xF1, 0x66, 0x8F, - 0xE3, 0xCE, 0xE6, 0xDF, 0x0E, 0x4F, 0x5A, 0xEA, 0xDD, 0xCF, 0x93, 0x96, 0x7A, 0xE5, 0x5C, 0xFC, - 0xCF, 0x02, 0xFF, 0x0F, 0x90, 0xD3, 0xC8, 0x0C, 0x33, 0x50, 0x00, 0x00 +#define tool_html_gz_size 6005 +const unsigned char tool_html_gz[6005] PROGMEM = { + 0x1F, 0x8B, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xED,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x22, 0xBA, 0x26, 0xA7, 0x1F, 0x1F, 0x5A, 0x7C, 0x0C, 0x0C, 0xC1, 0x19, 0xCE, 0x05, 0x22, + 0x00, 0xF4, 0x23, 0x14, 0x01, 0xC4, 0x15, 0xEB, 0x98, 0x5D, 0xFB, 0xC2, 0x6C, 0x5B, 0x1A, 0x62, + 0x81, 0x18, 0x20, 0x02, 0x5D, 0x94, 0x89, 0x87, 0x78, 0x02, 0x40, 0x58, 0xDA, 0x43, 0x44, 0xBA, + 0x1A, 0xA2, 0xEE, 0x68, 0xED, 0x88, 0xAF, 0x0B, 0xF4, 0x9B, 0x6D, 0xCD, 0x03, 0x3A, 0xDB, 0xC0, + 0x6E, 0xA0, 0x1F, 0x16, 0x86, 0x3B, 0x60, 0x11, 0xEF, 0x8C, 0x60, 0xE0, 0x85, 0xED, 0x22, 0x58, + 0x31, 0xD3, 0xD5, 0x04, 0x67, 0x91, 0x64, 0xAF, 0xA3, 0x01, 0xC1, 0xB0, 0x12, 0x5F, 0xCD, 0x86, + 0x99, 0xD0, 0x13, 0x21, 0x96, 0xB0, 0x12, 0xAC, 0x27, 0x70, 0x84, 0xDE, 0x88, 0x53, 0x00, 0xCD, + 0xC8, 0x66, 0xA4, 0xE9, 0x1B, 0x17, 0x74, 0x17, 0x18, 0x7A, 0x61, 0x76, 0x7B, 0x48, 0x29, 0x67, + 0x75, 0xDB, 0x65, 0xF0, 0xE5, 0x0C, 0x69, 0xB4, 0x58, 0x79, 0x97, 0x77, 0xE2, 0x15, 0x2E, 0xD0, + 0x21, 0xDA, 0xCD, 0xF2, 0x4E, 0x74, 0x7D, 0x03, 0x5D, 0x6A, 0xA2, 0x32, 0xC1, 0x65, 0x06, 0x5F, + 0x50, 0xDE, 0x91, 0x76, 0x02, 0xA9, 0x4D, 0x5C, 0xD8, 0x47, 0x5E, 0xC1, 0x91, 0xD1, 0xCB, 0x30, + 0x5D, 0xAC, 0x21, 0x05, 0x82, 0x61, 0x30, 0x00, 0x46, 0xFB,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, 0x0E, 0xC7, 0x9D, 0xCF, 0xBF, 0x1D, 0x9C, 0x34, + 0xE5, 0xFB, 0xAC, 0x27, 0x4D, 0xF9, 0x1A, 0x3D, 0xFF, 0x1F, 0x2E, 0xFE, 0x1F, 0xE4, 0x44, 0x87, + 0x45, 0x77, 0x51, 0x00, 0x00 }; #endif //__embedded_h \ No newline at end of file diff --git a/esp3d/src/modules/http/handles/handle-config.cpp b/esp3d/src/modules/http/handles/handle-config.cpp new file mode 100644 index 00000000..cc6a2fa8 --- /dev/null +++ b/esp3d/src/modules/http/handles/handle-config.cpp @@ -0,0 +1,44 @@ +/* + handle-config.cpp - ESP3D http handle + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#include "../../../include/esp3d_config.h" +#if defined (HTTP_FEATURE) +#include "../http_server.h" +#if defined (ARDUINO_ARCH_ESP32) +#include +#endif //ARDUINO_ARCH_ESP32 +#if defined (ARDUINO_ARCH_ESP8266) +#include +#endif //ARDUINO_ARCH_ESP8266 +#include "../../authentication/authentication_service.h" +#include "../../../core/commands.h" +#include "../../../core/esp3doutput.h" + +//Handle web command query [ESP420]plain and send answer////////////////////////////// +void HTTP_Server::handle_config () +{ + level_authenticate_type auth_level = AuthenticationService::authenticated_level(); + String cmd = "[ESP420]plain"; + ESP3DOutput output(_webserver); + output.print("
");
+    esp3d_commands.process((uint8_t*)cmd.c_str(), cmd.length(), &output, auth_level);
+    output.print("
"); + return; +} +#endif //HTTP_FEATURE diff --git a/esp3d/src/modules/http/handles/handle-files.cpp b/esp3d/src/modules/http/handles/handle-files.cpp index fa0cb7a9..63d84a92 100644 --- a/esp3d/src/modules/http/handles/handle-files.cpp +++ b/esp3d/src/modules/http/handles/handle-files.cpp @@ -32,7 +32,6 @@ //Filesystem files list and file commands void HTTP_Server::handleFSFileList () { - uint32_t start = millis(); level_authenticate_type auth_level = AuthenticationService::authenticated_level(); if (auth_level == LEVEL_GUEST) { _upload_status = UPLOAD_STATUS_NONE; diff --git a/esp3d/src/modules/http/http_server.cpp b/esp3d/src/modules/http/http_server.cpp index a039ec55..9b459ad0 100644 --- a/esp3d/src/modules/http/http_server.cpp +++ b/esp3d/src/modules/http/http_server.cpp @@ -53,6 +53,8 @@ void HTTP_Server::init_handlers() _webserver->onNotFound (handle_not_found); //web commands _webserver->on ("/command", HTTP_ANY, handle_web_command); + //config + _webserver->on ("/config", HTTP_ANY, handle_config); //need to be there even no authentication to say to UI no authentication _webserver->on("/login", HTTP_ANY, handle_login); #ifdef FILESYSTEM_FEATURE diff --git a/esp3d/src/modules/http/http_server.h b/esp3d/src/modules/http/http_server.h index cd91761d..bd0a7532 100644 --- a/esp3d/src/modules/http/http_server.h +++ b/esp3d/src/modules/http/http_server.h @@ -74,6 +74,7 @@ private: static void handle_login(); static void handle_not_found (); static void handle_web_command (); + static void handle_config (); // static void handle_Websocket_Event(uint8_t num, uint8_t type, uint8_t * payload, size_t length); #ifdef FILESYSTEM_FEATURE static void FSFileupload (); diff --git a/esp3d/src/modules/network/netconfig.cpp b/esp3d/src/modules/network/netconfig.cpp index b94d4771..5a6bd7de 100644 --- a/esp3d/src/modules/network/netconfig.cpp +++ b/esp3d/src/modules/network/netconfig.cpp @@ -321,22 +321,24 @@ const char* NetConfig::hostname(bool fromsettings) void NetConfig::handle() { + if (_started) { #if defined (WIFI_FEATURE) - if(_needReconnect2AP) { + if(_needReconnect2AP) { - if(WiFi.getMode()!= WIFI_OFF) { - begin(); + if(WiFi.getMode()!= WIFI_OFF) { + begin(); + } } - } - WiFiConfig::handle(); + WiFiConfig::handle(); #endif //WIFI_FEATURE #if defined (ETH_FEATURE) - EthConfig::handle(); + EthConfig::handle(); #endif //ETH_FEATURE #if defined (BLUETOOTH_FEATURE) - bt_service.handle(); + bt_service.handle(); #endif //BLUETOOTH_FEATURE - NetServices::handle(); + NetServices::handle(); + } } bool NetConfig::isIPModeDHCP (uint8_t mode) diff --git a/esp3d/src/modules/network/netservices.cpp b/esp3d/src/modules/network/netservices.cpp index 31fbd025..8cce093b 100644 --- a/esp3d/src/modules/network/netservices.cpp +++ b/esp3d/src/modules/network/netservices.cpp @@ -60,6 +60,10 @@ const byte DNS_PORT = 53; DNSServer dnsServer; #endif //CAPTIVE_PORTAL_FEATURE +#ifdef TIMESTAMP_FEATURE +#include "../time/time_server.h" +#endif //TIMESTAMP_FEATURE + bool NetServices::_started = false; @@ -78,6 +82,17 @@ bool NetServices::begin() String hostname = Settings_ESP3D::read_string(ESP_HOSTNAME); ESP3DOutput output(ESP_ALL_CLIENTS); end(); +#ifdef TIMESTAMP_FEATURE + if (WiFi.getMode() != WIFI_AP) { + if(!timeserver.begin()) { + output.printERROR("Failed contact time servers!"); + } else { + String tmp = "Time set :"; + tmp+=timeserver.current_time(); + output.printMSG(tmp.c_str()); + } + } +#endif //TIMESTAMP_FEATURE #if defined(MDNS_FEATURE) && defined(ARDUINO_ARCH_ESP8266) if(WiFi.getMode() != WIFI_AP) { String lhostname =hostname; @@ -216,11 +231,6 @@ bool NetServices::begin() output.printMSG(stmp.c_str()); } #endif //SSDP_FEATURE - - /* #ifdef ENABLE_TELNET - telnet_server.begin(); - #endif - return no_error;*/ if (!res) { end(); } @@ -294,10 +304,9 @@ void NetServices::handle() #if defined(HTTP_FEATURE) websocket_terminal_server.handle(); #endif //HTTP_FEATURE - - } #ifdef TELNET_FEATURE - telnet_server.handle(); + telnet_server.handle(); #endif //TELNET_FEATURE + } } diff --git a/esp3d/src/modules/recovery/recovery_service.cpp b/esp3d/src/modules/recovery/recovery_service.cpp new file mode 100644 index 00000000..c8fc716b --- /dev/null +++ b/esp3d/src/modules/recovery/recovery_service.cpp @@ -0,0 +1,104 @@ +/* + recovery.cpp - recovery functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "../../include/esp3d_config.h" +#ifdef RECOVERY_FEATURE +#include "recovery_service.h" +#include "../../core/settings_esp3d.h" +#include "../../core/esp3doutput.h" +RecoveryService recovery_service; + +#ifdef PIN_RESET_FEATURE +#include "../../core/esp3d.h" +volatile bool interruptswitch =false; +#ifdef ARDUINO_ARCH_ESP32 +portMUX_TYPE espmux = portMUX_INITIALIZER_UNLOCKED; +#endif //ARDUINO_ARCH_ESP32 + +#ifdef ARDUINO_ARCH_ESP8266 +void handlePinResetInterrupt() +{ +#endif //ARDUINO_ARCH_ESP8266 +#ifdef ARDUINO_ARCH_ESP32 + void IRAM_ATTR handlePinResetInterrupt() { + portENTER_CRITICAL_ISR(&espmux); +#endif //ARDUINO_ARCH_ESP32 + interruptswitch = true; +#ifdef ARDUINO_ARCH_ESP32 + portEXIT_CRITICAL_ISR(&espmux); +#endif //ARDUINO_ARCH_ESP32 + } +#endif //PIN_RESET_FEATURE + + RecoveryService::RecoveryService() { + _started = false; + } + RecoveryService::~RecoveryService() { + end(); + } + + bool RecoveryService::begin() { + bool res = true; + end(); +#ifdef PIN_RESET_FEATURE + pinMode(ESP3D_RESET_PIN, INPUT_PULLUP); + attachInterrupt(digitalPinToInterrupt(ESP3D_RESET_PIN), handlePinResetInterrupt, FALLING); +#endif //PIN_RESET_FEATURE + if (!res) { + end(); + } + _started = res; + return _started; + } + + + void RecoveryService::end() { + if(!_started) { + return; + } +#ifdef PIN_RESET_FEATURE + detachInterrupt(digitalPinToInterrupt(ESP3D_RESET_PIN)); +#endif //PIN_RESET_FEATURE + _started = false; + } + + + bool RecoveryService::started() { + return _started; + } + + void RecoveryService::handle() { + if (_started) { +#ifdef PIN_RESET_FEATURE + if (interruptswitch) { + static uint32_t lastreset = 0; + interruptswitch = false; + if ((millis() - lastreset) > 1000) { + lastreset = millis(); + ESP3DOutput output(ESP_ALL_CLIENTS); + output.printMSG("Reset requested"); + Esp3D::reset(); + } + } +#endif //PIN_RESET_FEATURE + } + } + +#endif //RECOVERY_FEATURE diff --git a/esp3d/src/modules/recovery/recovery_service.h b/esp3d/src/modules/recovery/recovery_service.h new file mode 100644 index 00000000..34a38276 --- /dev/null +++ b/esp3d/src/modules/recovery/recovery_service.h @@ -0,0 +1,42 @@ +/* + recovery_service.h - recovery functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + + + +#ifndef _RECOVERY_SERVICE_H +#define _RECOVERY_SERVICE_H + +class RecoveryService +{ +public: + RecoveryService(); + ~RecoveryService(); + bool begin(); + void end(); + void handle(); + bool started(); +private: + bool _started; +}; + +extern RecoveryService recovery_service; + +#endif //_RECOVERY_SERVICE_H + diff --git a/esp3d/src/modules/serial/serial_service.cpp b/esp3d/src/modules/serial/serial_service.cpp index 1c51fcc2..9ffd7b64 100644 --- a/esp3d/src/modules/serial/serial_service.cpp +++ b/esp3d/src/modules/serial/serial_service.cpp @@ -24,15 +24,15 @@ #include "../../core/esp3doutput.h" #include "../../core/commands.h" -#ifdef USE_SERIAL_0 +#if ESP_SERIAL_OUTPUT == USE_SERIAL_0 #define ESP3D_SERIAL Serial #endif //USE_SERIAL_0 -#ifdef USE_SERIAL_1 +#if ESP_SERIAL_OUTPUT == USE_SERIAL_1 #define ESP3D_SERIAL Serial1 #endif //USE_SERIAL_1 -#ifdef USE_SERIAL_2 +#if ESP_SERIAL_OUTPUT == USE_SERIAL_2 #define ESP3D_SERIAL Serial2 #endif //USE_SERIAL_2 @@ -182,6 +182,7 @@ void SerialService::push2buffer(uint8_t * sbuf, size_t len) //Reset Serial Setting (baud rate) bool SerialService::reset() { + log_esp3d("Reset serial"); return Settings_ESP3D::write_uint32 (ESP_BAUD_RATE, Settings_ESP3D::get_default_int32_value(ESP_BAUD_RATE)); } @@ -209,7 +210,7 @@ size_t SerialService::write(uint8_t c) size_t SerialService::write(const uint8_t *buffer, size_t size) { - if (ESP3D_SERIAL.availableForWrite() >= size) { + if ((uint)ESP3D_SERIAL.availableForWrite() >= size) { return ESP3D_SERIAL.write(buffer, size); } else { size_t sizetosend = size; @@ -233,7 +234,7 @@ size_t SerialService::write(const uint8_t *buffer, size_t size) } } -int SerialService::availableForWrite() +uint SerialService::availableForWrite() { return ESP3D_SERIAL.availableForWrite(); } diff --git a/esp3d/src/modules/serial/serial_service.h b/esp3d/src/modules/serial/serial_service.h index 0c598036..a1c96e18 100644 --- a/esp3d/src/modules/serial/serial_service.h +++ b/esp3d/src/modules/serial/serial_service.h @@ -38,7 +38,7 @@ public: const long * get_baudratelist(uint8_t * count); void flush(); void swap(); - int availableForWrite(); + uint availableForWrite(); int available(); bool is_valid_baudrate(long br); size_t write(uint8_t c); diff --git a/esp3d/src/modules/telnet/telnet_server.cpp b/esp3d/src/modules/telnet/telnet_server.cpp index fbc14837..026aa388 100644 --- a/esp3d/src/modules/telnet/telnet_server.cpp +++ b/esp3d/src/modules/telnet/telnet_server.cpp @@ -32,6 +32,13 @@ Telnet_Server telnet_server; #define TIMEOUT_TELNET_FLUSH 1500 +void Telnet_Server::closeClient() +{ + if(_telnetClients) { + _telnetClients.stop(); + } +} + bool Telnet_Server::isConnected() { if ( !_started || _telnetserver == NULL) { @@ -45,6 +52,7 @@ bool Telnet_Server::isConnected() _telnetClients.stop(); } _telnetClients = _telnetserver->available(); + //new client } } if (_telnetserver->hasClient()) { @@ -70,7 +78,7 @@ Telnet_Server::Telnet_Server() _buffer_size = 0; _started = false; _port = 0; - WiFiServer * _telnetserver = nullptr; + _telnetserver = nullptr; } Telnet_Server::~Telnet_Server() { @@ -105,6 +113,7 @@ void Telnet_Server::end() _started = false; _buffer_size = 0; _port = 0; + closeClient(); if (_telnetserver) { delete _telnetserver; _telnetserver = nullptr; @@ -231,7 +240,7 @@ size_t Telnet_Server::write(const uint8_t *buffer, size_t size) return 0; } -int Telnet_Server::availableForWrite() +uint Telnet_Server::availableForWrite() { if (!isConnected()) { return 0; diff --git a/esp3d/src/modules/telnet/telnet_server.h b/esp3d/src/modules/telnet/telnet_server.h index 40c100f8..85e07c4f 100644 --- a/esp3d/src/modules/telnet/telnet_server.h +++ b/esp3d/src/modules/telnet/telnet_server.h @@ -61,7 +61,7 @@ public: return write((uint8_t) n); } int available(); - int availableForWrite(); + uint availableForWrite(); void flush(); int read(void); size_t readBytes (uint8_t * sbuf, size_t len); @@ -69,6 +69,7 @@ public: { return _port; } + void closeClient(); private: bool _started; WiFiServer * _telnetserver; diff --git a/esp3d/src/modules/time/time_server.cpp b/esp3d/src/modules/time/time_server.cpp new file mode 100644 index 00000000..f47f7ec5 --- /dev/null +++ b/esp3d/src/modules/time/time_server.cpp @@ -0,0 +1,234 @@ +/* + time_server.cpp - time server functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "../../include/esp3d_config.h" +#ifdef TIMESTAMP_FEATURE +#include "time_server.h" +#include +#include "../../core/settings_esp3d.h" +#include "../../core/esp3doutput.h" +#if defined (WIFI_FEATURE) +#include "../wifi/wificonfig.h" +#endif //WIFI_FEATURE +#if defined (BLUETOOTH_FEATURE) +#include "../bluetooth/BT_service.h" +#endif //BLUETOOTH_FEATURE + +TimeServer timeserver; + +TimeServer::TimeServer() +{ + _started = false; +} +TimeServer::~TimeServer() +{ + end(); +} + +bool TimeServer::begin() +{ + bool res = true; + _started = false; + String s1, s2, s3; + int8_t t1; + byte d1; +#if defined (WIFI_FEATURE) + //no time server in AP mode + if (WiFi.getMode() == WIFI_AP) { + return false; + } +#endif //WIFI_FEATURE +#if defined (BLUETOOTH_FEATURE) + //no time server in BT + if (bt_service.started()) { + return false; + } +#endif //BLUETOOTH_FEATURE +#if defined (ETH_FEATURE) +#include "../ethernet/ethconfig.h" +#endif //ETH_FEATURE +#if defined (ETH_FEATURE) + if (!EthConfig::started()) { +#if defined (WIFI_FEATURE) + //no time server if no ETH started and no WiFi started + if (WiFi.getMode() == WIFI_OFF) { + return false; + } +#else + //no time server if no ETH started and no WiFi + return false; +#endif //WIFI_FEATURE + } +#endif //ETH_FEATURE + s1 = Settings_ESP3D::read_string (ESP_TIME_SERVER1); + s2 = Settings_ESP3D::read_string (ESP_TIME_SERVER2); + s3 = Settings_ESP3D::read_string (ESP_TIME_SERVER3); + t1 = (int8_t)Settings_ESP3D::read_byte (ESP_TIMEZONE); + d1 = Settings_ESP3D::read_byte (ESP_TIME_IS_DST); + configTime (3600 * (t1), d1 * 3600, s1.c_str(), s2.c_str(), s3.c_str() ); + time_t now = time(nullptr); + int nb = 0; + while ((now < (8 * 3600 * 2)) && (nb < 20)) { + yield(); + delay(500); + nb++; + now = time(nullptr); + } + if (now < (8 * 3600 * 2)) { + res = false; + } + if (!res) { + end(); + } + _started = res; + return _started; +} + +const char * TimeServer::current_time() +{ + static String stmp; + struct tm tmstruct; + time_t now; + stmp = ""; + time(&now); + localtime_r(&now, &tmstruct); + stmp = String((tmstruct.tm_year)+1900) + "-"; + if (((tmstruct.tm_mon)+1) < 10) { + stmp +="0"; + } + stmp += String(( tmstruct.tm_mon)+1) + "-"; + if (tmstruct.tm_mday < 10) { + stmp +="0"; + } + stmp += String(tmstruct.tm_mday) + " "; + if (tmstruct.tm_hour < 10) { + stmp +="0"; + } + stmp += String(tmstruct.tm_hour) + ":"; + if (tmstruct.tm_min < 10) { + stmp +="0"; + } + stmp += String(tmstruct.tm_min) + ":"; + if (tmstruct.tm_sec < 10) { + stmp +="0"; + } + stmp += String(tmstruct.tm_sec); + return stmp.c_str(); +} + +bool TimeServer::setTime(const char* stime) +{ + String stmp = stime; + String substmp; + struct tm tmstruct; + struct timeval time_val = {0, 0}; + int pos2; + //Search Year + int pos = stmp.indexOf("-"); + if (pos == -1) { + return false; + } + substmp = stmp.substring(0,pos); + if (substmp.length()!=4) { + return false; + } + pos2=pos; + tmstruct.tm_year = substmp.toInt() - 1900; + //Search Month + pos = stmp.indexOf("-",pos2+1); + if (pos == -1) { + return false; + } + substmp = stmp.substring(pos2+1,pos); + if ((substmp.toInt() > 11) || (substmp.toInt() <0 )) { + return false; + } + pos2=pos; + tmstruct.tm_mon = substmp.toInt() - 1; + //Search day + pos = stmp.indexOf("#",pos2+1); + if (pos == -1) { + return false; + } + substmp = stmp.substring(pos2+1,pos); + if ((substmp.toInt() > 31) || (substmp.toInt() <1 )) { + return false; + } + pos2=pos; + tmstruct.tm_mday = substmp.toInt(); + + //Search hour + pos = stmp.indexOf(":", pos2+1); + if (pos == -1) { + return false; + } + substmp = stmp.substring(pos2+1,pos); + if ((substmp.toInt() > 23) || (substmp.toInt() <0 )) { + + return false; + } + pos2=pos; + tmstruct.tm_hour = substmp.toInt(); + + //Search min + pos = stmp.indexOf(":", pos2+1); + if (pos == -1) { + return false; + } + substmp = stmp.substring(pos2+1,pos); + if ((substmp.toInt() > 59) || (substmp.toInt() < 0 )) { + return false; + } + tmstruct.tm_min = substmp.toInt(); + //Search sec + substmp = stmp.substring(pos+1); + if ((substmp.toInt() > 59) || (substmp.toInt() < 0 )) { + return false; + } + tmstruct.tm_sec = substmp.toInt(); + time_val.tv_sec = mktime (&tmstruct); + if(settimeofday(&time_val,0) == -1) { + return false; + } + return true; +} + +bool TimeServer::started() +{ + return _started; +} + +//currently not used +void TimeServer::end() +{ + if(!_started) { + return; + } + _started = false; +} + +//currently not used +void TimeServer::handle() +{ + if (_started) { + } +} + +#endif //TimeServer_DEVICE diff --git a/esp3d/src/modules/time/time_server.h b/esp3d/src/modules/time/time_server.h new file mode 100644 index 00000000..f30bccff --- /dev/null +++ b/esp3d/src/modules/time/time_server.h @@ -0,0 +1,45 @@ +/* + time_server.h - time server functions class + + Copyright (c) 2014 Luc Lebosse. All rights reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + + + +#ifndef _TIME_SERVER_H +#define _TIME_SERVER_H + + +class TimeServer +{ +public: + TimeServer(); + ~TimeServer(); + bool begin(); + void end(); + void handle(); + const char * current_time(); + bool setTime(const char* stime); + bool started(); +private: + bool _started; +}; + +extern TimeServer timeserver; + +#endif //_TIME_SERVER_H + diff --git a/esp3d/src/modules/websocket/websocket_server.cpp b/esp3d/src/modules/websocket/websocket_server.cpp index af6f2205..27b4cadc 100644 --- a/esp3d/src/modules/websocket/websocket_server.cpp +++ b/esp3d/src/modules/websocket/websocket_server.cpp @@ -30,9 +30,20 @@ WebSocket_Server websocket_terminal_server; +void WebSocket_Server::pushMSG (const char * data) +{ + _websocket_server->broadcastTXT(data); +} + +void WebSocket_Server::pushMSG (uint num, const char * data) +{ + _websocket_server->sendTXT(num, data); +} + void handle_Websocket_Terminal_Event(uint8_t num, uint8_t type, uint8_t * payload, size_t length) { - + (void)payload; + (void)length; switch(type) { case WStype_DISCONNECTED: //Serial.printf("[%u] Disconnected!\n", num); @@ -41,9 +52,9 @@ void handle_Websocket_Terminal_Event(uint8_t num, uint8_t type, uint8_t * payloa String s = "currentID:" + String(num); // send message to client websocket_terminal_server.set_currentID(num); - websocket_terminal_server.Socket_Server()->sendTXT(num, s); + websocket_terminal_server.pushMSG(num, s.c_str()); s = "activeID:" + String(num); - websocket_terminal_server.Socket_Server()->broadcastTXT(s); + websocket_terminal_server.pushMSG(s.c_str()); } break; case WStype_TEXT: @@ -132,11 +143,6 @@ uint8_t WebSocket_Server::get_currentID() { return _current_id; } -WebSocketsServer * WebSocket_Server::Socket_Server() -{ - return _websocket_server; -} - /*int WebSocket_Server::available(){ return _RXbufferSize; @@ -162,7 +168,7 @@ size_t WebSocket_Server::write(const uint8_t *buffer, size_t size) flush(); } //need periodic check to force to flush in case of no end - for (int i = 0; i < size; i++) { + for (uint i = 0; i < size; i++) { _TXbuffer[_TXbufferSize] = buffer[i]; _TXbufferSize++; } diff --git a/esp3d/src/modules/websocket/websocket_server.h b/esp3d/src/modules/websocket/websocket_server.h index 327e73fd..e436f6f6 100644 --- a/esp3d/src/modules/websocket/websocket_server.h +++ b/esp3d/src/modules/websocket/websocket_server.h @@ -64,13 +64,13 @@ public: //int available(); //int peek(void); //int read(void); - //bool push (const char * data); + void pushMSG (const char * data); + void pushMSG (uint num, const char * data); void flush(void); void handle(); operator bool() const; void set_currentID(uint8_t current_id); uint8_t get_currentID(); - WebSocketsServer * Socket_Server(); private: bool _started; uint16_t _port; diff --git a/libraries/DHT_sensor_library_for_ESPx/DHTesp.cpp b/libraries/DHT_sensor_library_for_ESPx/DHTesp.cpp new file mode 100644 index 00000000..49d6ff6d --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/DHTesp.cpp @@ -0,0 +1,424 @@ +/****************************************************************** + DHT Temperature & Humidity Sensor library for Arduino & ESP32. + + Features: + - Support for DHT11 and DHT22/AM2302/RHT03 + - Auto detect sensor model + - Very low memory footprint + - Very small code + + https://github.com/beegee-tokyo/arduino-DHTesp + + Written by Mark Ruys, mark@paracas.nl. + Updated to work with ESP32 by Bernd Giesecke, bernd@giesecke.tk + + GNU General Public License, check LICENSE for more information. + All text above must be included in any redistribution. + + Datasheets: + - http://www.micro4you.com/files/sensor/DHT11.pdf + - http://www.adafruit.com/datasheets/DHT22.pdf + - http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Weather/RHT03.pdf + - http://meteobox.tk/files/AM2302.pdf + + Changelog: + 2013-06-10: Initial version + 2013-06-12: Refactored code + 2013-07-01: Add a resetTimer method + 2017-12-12: Added task switch disable + Added computeHeatIndex function from Adafruit DNT library + 2017-12-14: Added computeDewPoint function from idDHTLib Library + Added getComfortRatio function from libDHT Library + 2017-12-15: Added computePerception function + 2018-01-02: Added example for multiple sensors usage. + 2018-01-03: Added function getTempAndHumidity which returns temperature and humidity in one call. + 2018-01-03: Added retry in case the reading from the sensor fails with a timeout. + 2018-01-08: Added ESP8266 (and probably AVR) compatibility. + 2018-03-11: Updated DHT example +******************************************************************/ + +#include "DHTesp.h" + +void DHTesp::setup(uint8_t pin, DHT_MODEL_t model) +{ + DHTesp::pin = pin; + DHTesp::model = model; + DHTesp::resetTimer(); // Make sure we do read the sensor in the next readSensor() + + if ( model == AUTO_DETECT) { + DHTesp::model = DHT22; + readSensor(); + if ( error == ERROR_TIMEOUT ) { + DHTesp::model = DHT11; + // Warning: in case we auto detect a DHT11, you should wait at least 1000 msec + // before your first read request. Otherwise you will get a time out error. + } + } + + //Set default comfort profile. + + //In computing these constants the following reference was used + //http://epb.apogee.net/res/refcomf.asp + //It was simplified as 4 straight lines and added very little skew on + //the vertical lines (+0.1 on x for C,D) + //The for points used are(from top left, clock wise) + //A(30%, 30*C) B(70%, 26.2*C) C(70.1%, 20.55*C) D(30.1%, 22.22*C) + //On the X axis we have the rel humidity in % and on the Y axis the temperature in *C + + //Too hot line AB + m_comfort.m_tooHot_m = -0.095; + m_comfort.m_tooHot_b = 32.85; + //Too humid line BC + m_comfort.m_tooHumid_m = -56.5; + m_comfort.m_tooHumid_b = 3981.2; + //Too cold line DC + m_comfort.m_tooCold_m = -0.04175; + m_comfort.m_tooHCold_b = 23.476675; + //Too dry line AD + m_comfort.m_tooDry_m = -77.8; + m_comfort.m_tooDry_b = 2364; +} + +void DHTesp::resetTimer() +{ + DHTesp::lastReadTime = millis() - 3000; +} + +float DHTesp::getHumidity() +{ + readSensor(); + if ( error == ERROR_TIMEOUT ) { // Try a second time to read + readSensor(); + } + return humidity; +} + +float DHTesp::getTemperature() +{ + readSensor(); + if ( error == ERROR_TIMEOUT ) { // Try a second time to read + readSensor(); + } + return temperature; +} + +TempAndHumidity DHTesp::getTempAndHumidity() +{ + readSensor(); + if ( error == ERROR_TIMEOUT ) { // Try a second time to read + readSensor(); + } + values.temperature = temperature; + values.humidity = humidity; + return values; +} + +#ifndef OPTIMIZE_SRAM_SIZE + +const char* DHTesp::getStatusString() +{ + switch ( error ) { + case DHTesp::ERROR_TIMEOUT: + return "TIMEOUT"; + + case DHTesp::ERROR_CHECKSUM: + return "CHECKSUM"; + + default: + return "OK"; + } +} + +#else + +// At the expense of 26 bytes of extra PROGMEM, we save 11 bytes of +// SRAM by using the following method: + +prog_char P_OK[] PROGMEM = "OK"; +prog_char P_TIMEOUT[] PROGMEM = "TIMEOUT"; +prog_char P_CHECKSUM[] PROGMEM = "CHECKSUM"; + +const char *DHTesp::getStatusString() { + prog_char *c; + switch ( error ) { + case DHTesp::ERROR_CHECKSUM: + c = P_CHECKSUM; break; + + case DHTesp::ERROR_TIMEOUT: + c = P_TIMEOUT; break; + + default: + c = P_OK; break; + } + + static char buffer[9]; + strcpy_P(buffer, c); + + return buffer; +} + +#endif + +void DHTesp::readSensor() +{ + // Make sure we don't poll the sensor too often + // - Max sample rate DHT11 is 1 Hz (duty cicle 1000 ms) + // - Max sample rate DHT22 is 0.5 Hz (duty cicle 2000 ms) + unsigned long startTime = millis(); + if ( (unsigned long)(startTime - lastReadTime) < (model == DHT11 ? 999L : 1999L) ) { + return; + } + lastReadTime = startTime; + + temperature = NAN; + humidity = NAN; + + uint16_t rawHumidity = 0; + uint16_t rawTemperature = 0; + uint16_t data = 0; + + // Request sample + digitalWrite(pin, LOW); // Send start signal + pinMode(pin, OUTPUT); + if ( model == DHT11 ) { + delay(18); + } + else { + // This will fail for a DHT11 - that's how we can detect such a device + delayMicroseconds(800); + } + + pinMode(pin, INPUT); + digitalWrite(pin, HIGH); // Switch bus to receive data + + // We're going to read 83 edges: + // - First a FALLING, RISING, and FALLING edge for the start bit + // - Then 40 bits: RISING and then a FALLING edge per bit + // To keep our code simple, we accept any HIGH or LOW reading if it's max 85 usecs long + +#ifdef ESP32 + // ESP32 is a multi core / multi processing chip + // It is necessary to disable task switches during the readings + portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED; + portENTER_CRITICAL(&mux); +#else + cli(); +#endif + for ( int8_t i = -3 ; i < 2 * 40; i++ ) { + byte age; + startTime = micros(); + + do { + age = (unsigned long)(micros() - startTime); + if ( age > 90 ) { + error = ERROR_TIMEOUT; +#ifdef ESP32 + portEXIT_CRITICAL(&mux); +#else + sei(); +#endif + return; + } + } + while ( digitalRead(pin) == (i & 1) ? HIGH : LOW ); + + if ( i >= 0 && (i & 1) ) { + // Now we are being fed our 40 bits + data <<= 1; + + // A zero max 30 usecs, a one at least 68 usecs. + if ( age > 30 ) { + data |= 1; // we got a one + } + } + + switch ( i ) { + case 31: + rawHumidity = data; + break; + case 63: + rawTemperature = data; + data = 0; + break; + } + } + +#ifdef ESP32 + portEXIT_CRITICAL(&mux); +#else + sei(); +#endif + + // Verify checksum + + if ( (byte)(((byte)rawHumidity) + (rawHumidity >> 8) + ((byte)rawTemperature) + (rawTemperature >> 8)) != data ) { + error = ERROR_CHECKSUM; + return; + } + + // Store readings + + if ( model == DHT11 ) { + humidity = rawHumidity >> 8; + temperature = rawTemperature >> 8; + } + else { + humidity = rawHumidity * 0.1; + + if ( rawTemperature & 0x8000 ) { + rawTemperature = -(int16_t)(rawTemperature & 0x7FFF); + } + temperature = ((int16_t)rawTemperature) * 0.1; + } + + error = ERROR_NONE; +} + +//boolean isFahrenheit: True == Fahrenheit; False == Celcius +float DHTesp::computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit) { + // Using both Rothfusz and Steadman's equations + // http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml + float hi; + + if (!isFahrenheit) { + temperature = toFahrenheit(temperature); + } + + hi = 0.5 * (temperature + 61.0 + ((temperature - 68.0) * 1.2) + (percentHumidity * 0.094)); + + if (hi > 79) { + hi = -42.379 + + 2.04901523 * temperature + + 10.14333127 * percentHumidity + + -0.22475541 * temperature*percentHumidity + + -0.00683783 * pow(temperature, 2) + + -0.05481717 * pow(percentHumidity, 2) + + 0.00122874 * pow(temperature, 2) * percentHumidity + + 0.00085282 * temperature*pow(percentHumidity, 2) + + -0.00000199 * pow(temperature, 2) * pow(percentHumidity, 2); + + if((percentHumidity < 13) && (temperature >= 80.0) && (temperature <= 112.0)) + hi -= ((13.0 - percentHumidity) * 0.25) * sqrt((17.0 - abs(temperature - 95.0)) * 0.05882); + + else if((percentHumidity > 85.0) && (temperature >= 80.0) && (temperature <= 87.0)) + hi += ((percentHumidity - 85.0) * 0.1) * ((87.0 - temperature) * 0.2); + } + + return isFahrenheit ? hi : toCelsius(hi); +} + +//boolean isFahrenheit: True == Fahrenheit; False == Celcius +float DHTesp::computeDewPoint(float temperature, float percentHumidity, bool isFahrenheit) { + // reference: http://wahiduddin.net/calc/density_algorithms.htm + if (isFahrenheit) { + temperature = toCelsius(temperature); + } + double A0 = 373.15 / (273.15 + (double) temperature); + double SUM = -7.90298 * (A0 - 1); + SUM += 5.02808 * log10(A0); + SUM += -1.3816e-7 * (pow(10, (11.344 * (1 - 1 / A0))) - 1) ; + SUM += 8.1328e-3 * (pow(10, (-3.49149 * (A0 - 1))) - 1) ; + SUM += log10(1013.246); + double VP = pow(10, SUM - 3) * (double) percentHumidity; + double Td = log(VP / 0.61078); // temp var + Td = (241.88 * Td) / (17.558 - Td); + return isFahrenheit ? toFahrenheit(Td) : Td; +} + +//boolean isFahrenheit: True == Fahrenheit; False == Celcius +byte DHTesp::computePerception(float temperature, float percentHumidity, bool isFahrenheit) { + // Computing human perception from dew point + // reference: https://en.wikipedia.org/wiki/Dew_point ==> Relationship to human comfort + // reference: Horstmeyer, Steve (2006-08-15). "Relative Humidity....Relative to What? The Dew Point Temperature...a better approach". Steve Horstmeyer, Meteorologist, WKRC TV, Cincinnati, Ohio, USA. Retrieved 2009-08-20. + // Using table + // Return value Dew point Human perception[6] + // 7 Over 26 °C Severely high, even deadly for asthma related illnesses + // 6 24–26 °C Extremely uncomfortable, oppressive + // 5 21–24 °C Very humid, quite uncomfortable + // 4 18–21 °C Somewhat uncomfortable for most people at upper edge + // 3 16–18 °C OK for most, but all perceive the humidity at upper edge + // 2 13–16 °C Comfortable + // 1 10–12 °C Very comfortable + // 0 Under 10 °C A bit dry for some + + if (isFahrenheit) { + temperature = toCelsius(temperature); + } + float dewPoint = computeDewPoint(temperature, percentHumidity); + + if (dewPoint < 10.0f) { + return Perception_Dry; + } else if (dewPoint < 13.0f) { + return Perception_VeryComfy; + } else if (dewPoint < 16.0f) { + return Perception_Comfy; + } else if (dewPoint < 18.0f) { + return Perception_Ok; + } else if (dewPoint < 21.0f) { + return Perception_UnComfy; + } else if (dewPoint < 24.0f) { + return Perception_QuiteUnComfy; + } else if (dewPoint < 26.0f) { + return Perception_VeryUnComfy; + } + // else dew >= 26.0 + return Perception_SevereUncomfy; +} + +//boolean isFahrenheit: True == Fahrenheit; False == Celcius +float DHTesp::getComfortRatio(ComfortState& destComfortStatus, float temperature, float percentHumidity, bool isFahrenheit) { + float ratio = 100; //100% + float distance = 0; + float kTempFactor = 3; //take into account the slope of the lines + float kHumidFactor = 0.1; //take into account the slope of the lines + uint8_t tempComfort = 0; + + if (isFahrenheit) { + temperature = toCelsius(temperature); + } + + destComfortStatus = Comfort_OK; + + distance = m_comfort.distanceTooHot(temperature, percentHumidity); + if(distance > 0) + { + //update the comfort descriptor + tempComfort += (uint8_t)Comfort_TooHot; + //decrease the comfot ratio taking the distance into account + ratio -= distance * kTempFactor; + } + + distance = m_comfort.distanceTooHumid(temperature, percentHumidity); + if(distance > 0) + { + //update the comfort descriptor + tempComfort += (uint8_t)Comfort_TooHumid; + //decrease the comfot ratio taking the distance into account + ratio -= distance * kHumidFactor; + } + + distance = m_comfort.distanceTooCold(temperature, percentHumidity); + if(distance > 0) + { + //update the comfort descriptor + tempComfort += (uint8_t)Comfort_TooCold; + //decrease the comfot ratio taking the distance into account + ratio -= distance * kTempFactor; + } + + distance = m_comfort.distanceTooDry(temperature, percentHumidity); + if(distance > 0) + { + //update the comfort descriptor + tempComfort += (uint8_t)Comfort_TooDry; + //decrease the comfot ratio taking the distance into account + ratio -= distance * kHumidFactor; + } + + destComfortStatus = (ComfortState)tempComfort; + + if(ratio < 0) + ratio = 0; + + return ratio; +} diff --git a/libraries/DHT_sensor_library_for_ESPx/DHTesp.h b/libraries/DHT_sensor_library_for_ESPx/DHTesp.h new file mode 100644 index 00000000..a062449a --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/DHTesp.h @@ -0,0 +1,170 @@ +/****************************************************************** + DHT Temperature & Humidity Sensor library for Arduino & ESP32. + + Features: + - Support for DHT11 and DHT22/AM2302/RHT03 + - Auto detect sensor model + - Very low memory footprint + - Very small code + + https://github.com/beegee-tokyo/arduino-DHTesp + + Written by Mark Ruys, mark@paracas.nl. + Updated to work with ESP32 by Bernd Giesecke, bernd@giesecke.tk + + GNU General Public License, check LICENSE for more information. + All text above must be included in any redistribution. + + Datasheets: + - http://www.micro4you.com/files/sensor/DHT11.pdf + - http://www.adafruit.com/datasheets/DHT22.pdf + - http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Weather/RHT03.pdf + - http://meteobox.tk/files/AM2302.pdf + + Changelog: + 2013-06-10: Initial version + 2013-06-12: Refactored code + 2013-07-01: Add a resetTimer method + 2017-12-12: Added task switch disable + Added computeHeatIndex function from Adafruit DNT library + 2017-12-14: Added computeDewPoint function from idDHTLib Library + Added getComfortRatio function from libDHT Library + 2017-12-15: Added computePerception function + 2018-01-02: Added example for multiple sensors usage. + 2018-01-03: Added function getTempAndHumidity which returns temperature and humidity in one call. + 2018-01-03: Added retry in case the reading from the sensor fails with a timeout. + 2018-01-08: Added ESP8266 (and probably AVR) compatibility. + ******************************************************************/ + +#ifndef dhtesp_h +#define dhtesp_h + +#if ARDUINO < 100 + #include +#else + #include +#endif + +// Reference: http://epb.apogee.net/res/refcomf.asp (References invalid) +enum ComfortState { + Comfort_OK = 0, + Comfort_TooHot = 1, + Comfort_TooCold = 2, + Comfort_TooDry = 4, + Comfort_TooHumid = 8, + Comfort_HotAndHumid = 9, + Comfort_HotAndDry = 5, + Comfort_ColdAndHumid = 10, + Comfort_ColdAndDry = 6 +}; + +// References https://en.wikipedia.org/wiki/Dew_point ==> Relationship to human comfort +enum PerceptionState { + Perception_Dry = 0, + Perception_VeryComfy = 1, + Perception_Comfy = 2, + Perception_Ok = 3, + Perception_UnComfy = 4, + Perception_QuiteUnComfy = 5, + Perception_VeryUnComfy = 6, + Perception_SevereUncomfy = 7 +}; + +struct TempAndHumidity { + float temperature; + float humidity; +}; + +struct ComfortProfile +{ + //Represent the 4 line equations: + //dry, humid, hot, cold, using the y = mx + b formula + float m_tooHot_m, m_tooHot_b; + float m_tooCold_m, m_tooHCold_b; + float m_tooDry_m, m_tooDry_b; + float m_tooHumid_m, m_tooHumid_b; + + inline bool isTooHot(float temp, float humidity) {return (temp > (humidity * m_tooHot_m + m_tooHot_b));} + inline bool isTooHumid(float temp, float humidity) {return (temp > (humidity * m_tooHumid_m + m_tooHumid_b));} + inline bool isTooCold(float temp, float humidity) {return (temp < (humidity * m_tooCold_m + m_tooHCold_b));} + inline bool isTooDry(float temp, float humidity) {return (temp < (humidity * m_tooDry_m + m_tooDry_b));} + + inline float distanceTooHot(float temp, float humidity) {return temp - (humidity * m_tooHot_m + m_tooHot_b);} + inline float distanceTooHumid(float temp, float humidity) {return temp - (humidity * m_tooHumid_m + m_tooHumid_b);} + inline float distanceTooCold(float temp, float humidity) {return (humidity * m_tooCold_m + m_tooHCold_b) - temp;} + inline float distanceTooDry(float temp, float humidity) {return (humidity * m_tooDry_m + m_tooDry_b) - temp;} +}; + +class DHTesp +{ +public: + + typedef enum { + AUTO_DETECT, + DHT11, + DHT22, + AM2302, // Packaged DHT22 + RHT03 // Equivalent to DHT22 + } + DHT_MODEL_t; + + typedef enum { + ERROR_NONE = 0, + ERROR_TIMEOUT, + ERROR_CHECKSUM + } + DHT_ERROR_t; + + TempAndHumidity values; + + void setup(uint8_t pin, DHT_MODEL_t model=AUTO_DETECT); + void resetTimer(); + + float getTemperature(); + float getHumidity(); + TempAndHumidity getTempAndHumidity(); + + DHT_ERROR_t getStatus() { return error; }; + const char* getStatusString(); + + DHT_MODEL_t getModel() { return model; } + + int getMinimumSamplingPeriod() { return model == DHT11 ? 1000 : 2000; } + + int8_t getNumberOfDecimalsTemperature() { return model == DHT11 ? 0 : 1; }; + int8_t getLowerBoundTemperature() { return model == DHT11 ? 0 : -40; }; + int8_t getUpperBoundTemperature() { return model == DHT11 ? 50 : 125; }; + + int8_t getNumberOfDecimalsHumidity() { return 0; }; + int8_t getLowerBoundHumidity() { return model == DHT11 ? 20 : 0; }; + int8_t getUpperBoundHumidity() { return model == DHT11 ? 90 : 100; }; + + static float toFahrenheit(float fromCelcius) { return 1.8 * fromCelcius + 32.0; }; + static float toCelsius(float fromFahrenheit) { return (fromFahrenheit - 32.0) / 1.8; }; + + float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit=false); + float computeDewPoint(float temperature, float percentHumidity, bool isFahrenheit=false); + float getComfortRatio(ComfortState& destComfStatus, float temperature, float percentHumidity, bool isFahrenheit=false); + ComfortProfile getComfortProfile() {return m_comfort;} + void setComfortProfile(ComfortProfile& c) {m_comfort = c;} + inline bool isTooHot(float temp, float humidity) {return m_comfort.isTooHot(temp, humidity);} + inline bool isTooHumid(float temp, float humidity) {return m_comfort.isTooHumid(temp, humidity);} + inline bool isTooCold(float temp, float humidity) {return m_comfort.isTooCold(temp, humidity);} + inline bool isTooDry(float temp, float humidity) {return m_comfort.isTooDry(temp, humidity);} + byte computePerception(float temperature, float percentHumidity, bool isFahrenheit=false); +protected: + void readSensor(); + + float temperature; + float humidity; + + uint8_t pin; + +private: + DHT_MODEL_t model; + DHT_ERROR_t error; + unsigned long lastReadTime; + ComfortProfile m_comfort; +}; + +#endif /*dhtesp_h*/ diff --git a/libraries/DHT_sensor_library_for_ESPx/LICENSE b/libraries/DHT_sensor_library_for_ESPx/LICENSE new file mode 100644 index 00000000..30ace6a8 --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + {one line to give the program's name and a brief idea of what it does.} + Copyright (C) {year} {name of author} + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + {project} Copyright (C) {year} {fullname} + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/libraries/DHT_sensor_library_for_ESPx/README.md b/libraries/DHT_sensor_library_for_ESPx/README.md new file mode 100644 index 00000000..e51edcf9 --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/README.md @@ -0,0 +1,149 @@ +DHTesp +=== + +An Arduino library for reading the DHT family of temperature and humidity sensors. +Forked from [arduino-DHT](https://github.com/markruys/arduino-DHT) +Original written by Mark Ruys, . + +Why did I clone this library instead of forking the original repo and push the changes? +When I searched through Github for DHT libraries, I found a lot of them, some of them offers additional functions, some of them only basic temperature and humidity values. I wanted to combine all interesting functions into one library. In addition, none of the DHT libraries I found were written to work without errors on the ESP32. For ESP32 (a multi core/ multi processing SOC) task switching must be disabled while reading data from the sensor. +Another problem I found is that many of the available libraries use the same naming (dht.h, dht.cpp), which easily leads to conflicts if different libraries are used for different platforms. + +The library is tested as well on ESP8266 and should work on AVR boards as well. + +Changes to the original library: +-------- +- 2017-12-12: Renamed DHT class to DHTesp and filenames from dht.* to DHTesp.* to avoid conflicts with other libraries - beegee-tokyo, . +- 2017-12-12: Updated to work with ESP32 - beegee-tokyo, . +- 2017-12-12: Added function computeHeatIndex. Reference: [Adafruit DHT library](https://github.com/adafruit/DHT-sensor-library). +- 2017-12-14: Added function computeDewPoint. Reference: [idDHTLib](https://github.com/niesteszeck/idDHTLib). +- 2017-12-14: Added function getComfortRatio. Reference: [libDHT](https://github.com/ADiea/libDHT). (References about Human Comfort invalid) +- 2017-12-15: Added function computePerception. Reference: [WikiPedia Dew point==> Relationship to human comfort](https://en.wikipedia.org/wiki/Dew_point) - beegee-tokyo, . +- 2018-01-02: Added example for multiple sensors usage. +- 2018-01-03: Added function getTempAndHumidity which returns temperature and humidity in one call. +- 2018-01-03: Added retry in case the reading from the sensor fails with a timeout. +- 2018-01-08: Added ESP8266 (and probably AVR) compatibility. +- 2018-03-11: Updated DHT example +Features +-------- + - Support for DHT11 and DHT22, AM2302, RHT03 + - Auto detect sensor model + - Determine heat index + - Determine dewpoint + - Determine thermal comfort: + * Empiric comfort function based on comfort profiles(parametric lines) + * Multiple comfort profiles possible. Default based on http://epb.apogee.net/res/refcomf.asp (References invalid) + * Determine if it's too cold, hot, humid, dry, based on current comfort profile + * More info at [Determining Thermal Comfort Using a Humidity and Temperature Sensor](https://www.azosensors.com/article.aspx?ArticleID=487) + - Determine human perception based on humidity, temperature and dew point according to Horstmeyer, Steve (2006-08-15). [Relative Humidity....Relative to What? The Dew Point Temperature...a better approach](http://www.shorstmeyer.com/wxfaqs/humidity/humidity.html) + +Functions +----- +_**`void setup(uint8_t pin, DHT_MODEL_t model=AUTO_DETECT);`**_ +- Call to initialize the interface, define the GPIO pin to which the sensor is connected and define the sensor type. Valid sensor types are: + - AUTO_DETECT Try to detect which sensor is connected + - DHT11 + - DHT22 + - AM2302 Packaged DHT22 + - RHT03 Equivalent to DHT22 + +_**`void resetTimer();`**_ +- Reset last time the sensor was read + +_**`float getTemperature();`**_ +- Get the temperature in degree Centigrade from the sensor +Either one of _`getTemperature()`_ or _`getHumidity()`_ or _`getTempAndHumidity()`_ initiates reading a value from the sensor if the last reading was older than the minimal refresh time of the sensor. +See example _`DHT_ESP32.ino`_ or _`DHT_Test.ino`_ + +_**`float getHumidity();`**_ +- Get the humidity from the sensor +Either one of _`getTemperature()`_ or _`getHumidity()`_ or _`getTempAndHumidity()`_ initiates reading a value from the sensor if the last reading was older than the minimal refresh time of the sensor. +See example _`DHT_ESP32.ino`_ or _`DHT_Test.ino`_ + +_**`TempAndHumidity getTempAndHumidity();`**_ +- Get the temperature and humidity from the sensor +Either one of _`getTemperature()`_ or _`getHumidity()`_ or _`getTempAndHumidity()`_ initiates reading a value from the sensor if the last reading was older than the minimal refresh time of the sensor. +Return value is a struct of type _`TempAndHumidity`_ with temperature and humidity as float values. +See example _`DHT_Multi.ino`_ + +_**`DHT_ERROR_t getStatus();`**_ +- Get last error if reading from the sensor failed. Possible values are: + - ERROR_NONE no error occured + - ERROR_TIMEOUT timeout reading from the sensor + - ERROR_CHECKSUM checksum of received values doesn't match + +_**`const char* getStatusString();`**_ +- Get last error as a char * + +_**`DHT_MODEL_t getModel()`**_ +- Get detected (or defined) sensor type + +_**`int getMinimumSamplingPeriod();`**_ +- Get minimmum possible sampling period. For DHT11 this is 1000ms, for other sensors it is 2000ms + +_**`int8_t getNumberOfDecimalsTemperature();`**_ +- Get number of decimals in the temperature value. For DHT11 this is 0, for other sensors it is 1 + +_**`int8_t getLowerBoundTemperature();`**_ +- Get lower temperature range of the sensor. For DHT11 this is 0 degree Centigrade, for other sensors this is -40 degree Centrigrade + +_**`int8_t getUpperBoundTemperature();`**_ +- Get upper temperature range of the sensor. For DHT11 this is 50 degree Centigrade, for other sensors this is 125 degree Centrigrade + +_**`int8_t getNumberOfDecimalsHumidity();`**_ +- Get number of decimals in the humidity value. This is always 0. + +_**`int8_t getLowerBoundHumidity();`**_ +- Get lower humidity range of the sensor. For DHT11 this is 20 percent, for other sensors this is 0 percent + +_**`int8_t getUpperBoundHumidity();`**_ +- Get upper temperature range of the sensor. For DHT11 this is 90 percent, for other sensors this is 100 percent + +_**`static float toFahrenheit(float fromCelcius);`**_ +- Convert Centrigrade value to Fahrenheit value + +_**`static float toCelsius(float fromFahrenheit) { return (fromFahrenheit - 32.0) / 1.8; };`**_ +- Convert Fahrenheit value to Centigrade value + +_**`float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit=false);`**_ +- Compute the heat index. Default temperature is in Centrigrade. + +_**`float computeDewPoint(float temperature, float percentHumidity, bool isFahrenheit=false);`**_ +- Compute the dew point. Default temperature is in Centrigrade. + +_**`float getComfortRatio(ComfortState& destComfStatus, float temperature, float percentHumidity, bool isFahrenheit=false);`**_ +- Compute the comfort ratio. Default temperature is in Centrigrade. Return values: +0 -> OK +1 -> Too Hot +2 -> Too cold +4 -> Too dry +8 -> Too humid +9 -> Hot and humid +5 -> Hot and dry +10 -> Cold and humid +6 -> Cold and dry + +_**`byte computePerception(float temperature, float percentHumidity, bool isFahrenheit=false);`**_ +- Compute the human perception. Default temperature is in Centrigrade. Return values: +0 -> Dry +1 -> Very comfortable +2 -> Comfortable +3 -> Ok +4 -> Uncomfortable +5 -> Quite uncomfortable +6 -> Very uncomfortable +7 -> Severe uncomfortable + +Usage +----- +See [examples](https://github.com/beegee-tokyo/DHTesp/blob/master/examples). For all the options, see [dhtesp.h](https://github.com/beegee-tokyo/DHTesp/blob/master/DHTesp.h). + +Installation +------------ + +In Arduino IDE open Sketch->Include Library->Manage Libraries then search for _**DHT ESP**_ +In PlatformIO open PlatformIO Home, switch to libraries and search for _**DHT ESP32**_. Or install the library in the terminal with _**`platformio lib install 2029`**_ + +For manual installation [download](https://github.com/beegee-tokyo/DHTesp/archive/master.zip) the archive, unzip it and place the DHTesp folder into the library directory. +In Arduino IDE this is usually _**`/libraries/`**_ +In PlatformIO this is usually _**``**_ diff --git a/libraries/DHT_sensor_library_for_ESPx/examples/DHT_ESP32/DHT_ESP32.ino b/libraries/DHT_sensor_library_for_ESPx/examples/DHT_ESP32/DHT_ESP32.ino new file mode 100644 index 00000000..282bbaa1 --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/examples/DHT_ESP32/DHT_ESP32.ino @@ -0,0 +1,172 @@ +#include "DHTesp.h" +#include "ESP32Ticker.h" + +/**************************************************************/ +/* Example how to read DHT sensors from an ESP32 using multi- */ +/* tasking. */ +/* This example depends on the ESP32Ticker library to wake up */ +/* the task every 20 seconds */ +/* Please install Ticker-esp32 library first */ +/* bertmelis/Ticker-esp32 */ +/* https://github.com/bertmelis/Ticker-esp32 */ +/**************************************************************/ + +DHTesp dht; + +void tempTask(void *pvParameters); +bool getTemperature(); +void triggerGetTemp(); + +/** Task handle for the light value read task */ +TaskHandle_t tempTaskHandle = NULL; +/** Ticker for temperature reading */ +Ticker tempTicker; +/** Comfort profile */ +ComfortState cf; +/** Flag if task should run */ +bool tasksEnabled = false; +/** Pin number for DHT11 data pin */ +int dhtPin = 17; + +/** + * initTemp + * Setup DHT library + * Setup task and timer for repeated measurement + * @return bool + * true if task and timer are started + * false if task or timer couldn't be started + */ +bool initTemp() { + byte resultValue = 0; + // Initialize temperature sensor + dht.setup(dhtPin, DHTesp::DHT11); + Serial.println("DHT initiated"); + + // Start task to get temperature + xTaskCreatePinnedToCore( + tempTask, /* Function to implement the task */ + "tempTask ", /* Name of the task */ + 4000, /* Stack size in words */ + NULL, /* Task input parameter */ + 5, /* Priority of the task */ + &tempTaskHandle, /* Task handle. */ + 1); /* Core where the task should run */ + + if (tempTaskHandle == NULL) { + Serial.println("Failed to start task for temperature update"); + return false; + } else { + // Start update of environment data every 20 seconds + tempTicker.attach(20, triggerGetTemp); + } + return true; +} + +/** + * triggerGetTemp + * Sets flag dhtUpdated to true for handling in loop() + * called by Ticker getTempTimer + */ +void triggerGetTemp() { + if (tempTaskHandle != NULL) { + xTaskResumeFromISR(tempTaskHandle); + } +} + +/** + * Task to reads temperature from DHT11 sensor + * @param pvParameters + * pointer to task parameters + */ +void tempTask(void *pvParameters) { + Serial.println("tempTask loop started"); + while (1) // tempTask loop + { + if (tasksEnabled) { + // Get temperature values + getTemperature(); + } + // Got sleep again + vTaskSuspend(NULL); + } +} + +/** + * getTemperature + * Reads temperature from DHT11 sensor + * @return bool + * true if temperature could be aquired + * false if aquisition failed +*/ +bool getTemperature() { + // Reading temperature for humidity takes about 250 milliseconds! + // Sensor readings may also be up to 2 seconds 'old' (it's a very slow sensor) + TempAndHumidity newValues = dht.getTempAndHumidity(); + // Check if any reads failed and exit early (to try again). + if (dht.getStatus() != 0) { + Serial.println("DHT11 error status: " + String(dht.getStatusString())); + return false; + } + + float heatIndex = dht.computeHeatIndex(newValues.temperature, newValues.humidity); + float dewPoint = dht.computeDewPoint(newValues.temperature, newValues.humidity); + float cr = dht.getComfortRatio(cf, newValues.temperature, newValues.humidity); + + String comfortStatus; + switch(cf) { + case Comfort_OK: + comfortStatus = "Comfort_OK"; + break; + case Comfort_TooHot: + comfortStatus = "Comfort_TooHot"; + break; + case Comfort_TooCold: + comfortStatus = "Comfort_TooCold"; + break; + case Comfort_TooDry: + comfortStatus = "Comfort_TooDry"; + break; + case Comfort_TooHumid: + comfortStatus = "Comfort_TooHumid"; + break; + case Comfort_HotAndHumid: + comfortStatus = "Comfort_HotAndHumid"; + break; + case Comfort_HotAndDry: + comfortStatus = "Comfort_HotAndDry"; + break; + case Comfort_ColdAndHumid: + comfortStatus = "Comfort_ColdAndHumid"; + break; + case Comfort_ColdAndDry: + comfortStatus = "Comfort_ColdAndDry"; + break; + default: + comfortStatus = "Unknown:"; + break; + }; + + Serial.println(" T:" + String(newValues.temperature) + " H:" + String(newValues.humidity) + " I:" + String(heatIndex) + " D:" + String(dewPoint) + " " + comfortStatus); + return true; +} + +void setup() +{ + Serial.begin(115200); + Serial.println(); + Serial.println("DHT ESP32 example with tasks"); + initTemp(); +} + +void loop() { + if (!tasksEnabled) { + // Wait 2 seconds to let system settle down + delay(2000); + // Enable task that will read values from the DHT sensor + tasksEnabled = true; + if (tempTaskHandle != NULL) { + vTaskResume(tempTaskHandle); + } + } + yield(); +} diff --git a/libraries/DHT_sensor_library_for_ESPx/examples/DHT_Multi/DHT_Multi.ino b/libraries/DHT_sensor_library_for_ESPx/examples/DHT_Multi/DHT_Multi.ino new file mode 100644 index 00000000..75997f19 --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/examples/DHT_Multi/DHT_Multi.ino @@ -0,0 +1,119 @@ +#include + +#include "ESP32Ticker.h" +#include "DHTesp.h" + +/** Initialize DHT sensor 1 */ +DHTesp dhtSensor1; +/** Initialize DHT sensor 2 */ +DHTesp dhtSensor2; +/** Initialize DHT sensor 3 */ +DHTesp dhtSensor3; +/** Task handle for the light value read task */ +TaskHandle_t tempTaskHandle = NULL; +/** Pin number for DHT11 1 data pin */ +int dhtPin1 = 17; +/** Pin number for DHT11 2 data pin */ +int dhtPin2 = 16; +/** Pin number for DHT11 3 data pin */ +int dhtPin3 = 27; +/** Ticker for temperature reading */ +Ticker tempTicker; +/** Flags for temperature readings finished */ +bool gotNewTemperature = false; +/** Data from sensor 1 */ +TempAndHumidity sensor1Data; +/** Data from sensor 2 */ +TempAndHumidity sensor2Data; +/** Data from sensor 3 */ +TempAndHumidity sensor3Data; + +/* Flag if main loop is running */ +bool tasksEnabled = false; + +/** + +/** + * Task to reads temperature from DHT11 sensor + * @param pvParameters + * pointer to task parameters + */ +void tempTask(void *pvParameters) { + Serial.println("tempTask loop started"); + while (1) // tempTask loop + { + if (tasksEnabled && !gotNewTemperature) { // Read temperature only if old data was processed already + // Reading temperature for humidity takes about 250 milliseconds! + // Sensor readings may also be up to 2 seconds 'old' (it's a very slow sensor) + sensor1Data = dhtSensor1.getTempAndHumidity(); // Read values from sensor 1 + sensor2Data = dhtSensor2.getTempAndHumidity(); // Read values from sensor 1 + sensor3Data = dhtSensor3.getTempAndHumidity(); // Read values from sensor 1 + gotNewTemperature = true; + } + vTaskSuspend(NULL); + } +} + +/** + * triggerGetTemp + * Sets flag dhtUpdated to true for handling in loop() + * called by Ticker tempTicker + */ +void triggerGetTemp() { + if (tempTaskHandle != NULL) { + xTaskResumeFromISR(tempTaskHandle); + } +} + +/** + * Arduino setup function (called once after boot/reboot) + */ +void setup() { + Serial.begin(115200); + Serial.println("Example for 3 DHT11/22 sensors"); + + // Initialize temperature sensor 1 + dhtSensor1.setup(dhtPin1, DHTesp::DHT11); + // Initialize temperature sensor 2 + dhtSensor2.setup(dhtPin2, DHTesp::DHT11); + // Initialize temperature sensor 3 + dhtSensor3.setup(dhtPin3, DHTesp::DHT11); + + // Start task to get temperature + xTaskCreatePinnedToCore( + tempTask, /* Function to implement the task */ + "tempTask ", /* Name of the task */ + 4000, /* Stack size in words */ + NULL, /* Task input parameter */ + 5, /* Priority of the task */ + &tempTaskHandle, /* Task handle. */ + 1); /* Core where the task should run */ + + if (tempTaskHandle == NULL) { + Serial.println("[ERROR] Failed to start task for temperature update"); + } else { + // Start update of environment data every 30 seconds + tempTicker.attach(30, triggerGetTemp); + } + + // Signal end of setup() to tasks + tasksEnabled = true; +} // End of setup. + + +/** + * loop + * Arduino loop function, called once 'setup' is complete (your own code + * should go here) + */ +void loop() { + if (gotNewTemperature) { + Serial.println("Sensor 1 data:"); + Serial.println("Temp: " + String(sensor1Data.temperature,2) + "'C Humidity: " + String(sensor1Data.humidity,1) + "%"); + Serial.println("Sensor 2 data:"); + Serial.println("Temp: " + String(sensor2Data.temperature,2) + "'C Humidity: " + String(sensor2Data.humidity,1) + "%"); + Serial.println("Sensor 3 data:"); + Serial.println("Temp: " + String(sensor3Data.temperature,2) + "'C Humidity: " + String(sensor3Data.humidity,1) + "%"); + gotNewTemperature = false; + } +} // End of loop diff --git a/libraries/DHT_sensor_library_for_ESPx/examples/DHT_Test/DHT_Test.ino b/libraries/DHT_sensor_library_for_ESPx/examples/DHT_Test/DHT_Test.ino new file mode 100644 index 00000000..a374e460 --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/examples/DHT_Test/DHT_Test.ino @@ -0,0 +1,38 @@ +#include "DHTesp.h" + +DHTesp dht; + +void setup() +{ + Serial.begin(115200); + Serial.println(); + Serial.println("Status\tHumidity (%)\tTemperature (C)\t(F)\tHeatIndex (C)\t(F)"); + + dht.setup(22); // Connect DHT sensor to GPIO 17 +} + +void loop() +{ + + //delay(dht.getMinimumSamplingPeriod()*1.2); + static uint32_t last_dht_update= 0; + uint32_t now_dht = millis(); + if (now_dht - last_dht_update > dht.getMinimumSamplingPeriod() *1.2) { + last_dht_update = now_dht; + float humidity = dht.getHumidity(); + float temperature = dht.getTemperature(); + + Serial.print(dht.getStatusString()); + Serial.print("\t H:"); + Serial.print(humidity, 1); + Serial.print("%\t\T :"); + Serial.print(temperature, 1); + Serial.println("C\t\t"); + //Serial.print(dht.toFahrenheit(temperature), 1); + //Serial.print("\t\t"); + //Serial.print(dht.computeHeatIndex(temperature, humidity, false), 1); + //Serial.print("\t\t"); + //Serial.println(dht.computeHeatIndex(dht.toFahrenheit(temperature), humidity, true), 1); + } +} + diff --git a/libraries/DHT_sensor_library_for_ESPx/keywords.txt b/libraries/DHT_sensor_library_for_ESPx/keywords.txt new file mode 100644 index 00000000..953f244b --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/keywords.txt @@ -0,0 +1,79 @@ +####################################### +# Syntax Coloring Map For DHTesp +####################################### + +####################################### +# Datatypes (KEYWORD1) +####################################### + +DHTesp KEYWORD1 +TempAndHumidity KEYWORD1 + +####################################### +# Methods and Functions (KEYWORD2) +####################################### + +setup KEYWORD2 +getTemperature KEYWORD2 +getHumidity KEYWORD2 +getTempAndHumidity KEYWORD2 +getStatus KEYWORD2 +getStatusString KEYWORD2 +getModel KEYWORD2 +getMinimumSamplingPeriod KEYWORD2 +toFahrenheit KEYWORD2 +toCelsius KEYWORD2 +computeHeatIndex KEYWORD2 +computeDewPoint KEYWORD2 +getComfortRatio KEYWORD2 +getNumberOfDecimalsTemperature KEYWORD2 +getLowerBoundTemperature KEYWORD2 +getUpperBoundTemperature KEYWORD2 +getNumberOfDecimalsHumidity KEYWORD2 +getLowerBoundHumidity KEYWORD2 +getUpperBoundHumidity KEYWORD2 +getComfortProfile KEYWORD2 +setComfortProfile KEYWORD2 +isTooHot KEYWORD2 +isTooHumid KEYWORD2 +isTooCold KEYWORD2 +isTooDry KEYWORD2 +computePerception KEYWORD2 + +####################################### +# Instances (KEYWORD2) +####################################### + + +####################################### +# Constants (LITERAL1) +####################################### + +AUTO_DETECT LITERAL1 +DHT11 LITERAL1 +DHT22 LITERAL1 +AM2302 LITERAL1 +RHT03 LITERAL1 + +ERROR_NONE LITERAL1 +ERROR_TIMEOUT LITERAL1 +ERROR_CHECKSUM LITERAL1 + +Comfort_OK LITERAL1 +Comfort_TooHot LITERAL1 +Comfort_TooCold LITERAL1 +Comfort_TooDry LITERAL1 +Comfort_TooHumid LITERAL1 +Comfort_HotAndHumid LITERAL1 +Comfort_HotAndDry LITERAL1 +Comfort_ColdAndHumid LITERAL1 +Comfort_ColdAndDry LITERAL1 + +Perception_Dry LITERAL1 +Perception_VeryComfy LITERAL1 +Perception_Comfy LITERAL1 +Perception_Ok LITERAL1 +Perception_UnComfy LITERAL1 +Perception_QuiteUnComfy LITERAL1 +Perception_UnComfy LITERAL1 +Perception_VeryUncomfy LITERAL1 diff --git a/libraries/DHT_sensor_library_for_ESPx/library.json b/libraries/DHT_sensor_library_for_ESPx/library.json new file mode 100644 index 00000000..a9d7f27b --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/library.json @@ -0,0 +1,15 @@ +{ + "name": "DHT sensor library for ESPx", + "keywords": "onewire, 1-wire, bus, sensor, temperature", + "description": "Arduino ESP library for DHT11, DHT22, etc Temp & Humidity Sensors. Last changes: Updated example.", + "repository": + { + "type": "git", + "url": "https://github.com/beegee-tokyo/DHTesp.git" + }, + "version": "1.0.6", + "frameworks": "arduino", + "platforms": "*", + "license": "GPL-3.0-only", + "homepage": "http://desire.giesecke.tk/index.php/2018/01/30/esp32-dht11/" +} diff --git a/libraries/DHT_sensor_library_for_ESPx/library.properties b/libraries/DHT_sensor_library_for_ESPx/library.properties new file mode 100644 index 00000000..84d28855 --- /dev/null +++ b/libraries/DHT_sensor_library_for_ESPx/library.properties @@ -0,0 +1,10 @@ +name=DHT sensor library for ESPx +version=1.0.6 +author=beegee_tokyo +maintainer=beegee_tokyo +sentence=Arduino ESP library for DHT11, DHT22, etc Temp & Humidity Sensors +paragraph=Optimized libray to match ESP32 requirements. Last changes: Updated example. +category=Sensors +url=http://desire.giesecke.tk/index.php/2018/01/30/esp32-dht11/ +architectures=esp8266,esp32,arduino-esp32 +includes=DHTesp.h diff --git a/libraries/oled-ssd1306/.travis.yml b/libraries/oled-ssd1306/.travis.yml new file mode 100644 index 00000000..88a1e72b --- /dev/null +++ b/libraries/oled-ssd1306/.travis.yml @@ -0,0 +1,24 @@ +language: python +python: + - "2.7" + +# Cache PlatformIO packages using Travis CI container-based infrastructure +sudo: false +cache: + directories: + - "~/.platformio" + +env: + - PLATFORMIO_CI_SRC=examples/SSD1306UiDemo + - PLATFORMIO_CI_SRC=examples/SSD1306SimpleDemo + - PLATFORMIO_CI_SRC=examples/SSD1306DrawingDemo + - PLATFORMIO_CI_SRC=examples/SSD1306OTADemo + - PLATFORMIO_CI_SRC=examples/SSD1306ClockDemo + + +install: + - pip install -U platformio + - platformio lib install 44 + +script: + - platformio ci --lib="." --board=nodemcuv2 diff --git a/libraries/oled-ssd1306/OLEDDisplay.cpp b/libraries/oled-ssd1306/OLEDDisplay.cpp new file mode 100644 index 00000000..a7ca6472 --- /dev/null +++ b/libraries/oled-ssd1306/OLEDDisplay.cpp @@ -0,0 +1,809 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#include "OLEDDisplay.h" + +bool OLEDDisplay::init() { + if (!this->connect()) { + DEBUG_OLEDDISPLAY("[OLEDDISPLAY][init] Can't establish connection to display\n"); + return false; + } + this->buffer = (uint8_t*) malloc(sizeof(uint8_t) * DISPLAY_BUFFER_SIZE); + if(!this->buffer) { + DEBUG_OLEDDISPLAY("[OLEDDISPLAY][init] Not enough memory to create display\n"); + return false; + } + + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + this->buffer_back = (uint8_t*) malloc(sizeof(uint8_t) * DISPLAY_BUFFER_SIZE); + if(!this->buffer_back) { + DEBUG_OLEDDISPLAY("[OLEDDISPLAY][init] Not enough memory to create back buffer\n"); + free(this->buffer); + return false; + } + #endif + + sendInitCommands(); + resetDisplay(); + + return true; +} + +void OLEDDisplay::end() { + if (this->buffer) free(this->buffer); + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + if (this->buffer_back) free(this->buffer_back); + #endif +} + +void OLEDDisplay::resetDisplay(void) { + clear(); + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + memset(buffer_back, 1, DISPLAY_BUFFER_SIZE); + #endif + display(); +} + +void OLEDDisplay::setColor(OLEDDISPLAY_COLOR color) { + this->color = color; +} + +void OLEDDisplay::setPixel(int16_t x, int16_t y) { + if (x >= 0 && x < 128 && y >= 0 && y < 64) { + switch (color) { + case WHITE: buffer[x + (y / 8) * DISPLAY_WIDTH] |= (1 << (y & 7)); break; + case BLACK: buffer[x + (y / 8) * DISPLAY_WIDTH] &= ~(1 << (y & 7)); break; + case INVERSE: buffer[x + (y / 8) * DISPLAY_WIDTH] ^= (1 << (y & 7)); break; + } + } +} + +// Bresenham's algorithm - thx wikipedia and Adafruit_GFX +void OLEDDisplay::drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1) { + int16_t steep = abs(y1 - y0) > abs(x1 - x0); + if (steep) { + _swap_int16_t(x0, y0); + _swap_int16_t(x1, y1); + } + + if (x0 > x1) { + _swap_int16_t(x0, x1); + _swap_int16_t(y0, y1); + } + + int16_t dx, dy; + dx = x1 - x0; + dy = abs(y1 - y0); + + int16_t err = dx / 2; + int16_t ystep; + + if (y0 < y1) { + ystep = 1; + } else { + ystep = -1; + } + + for (; x0<=x1; x0++) { + if (steep) { + setPixel(y0, x0); + } else { + setPixel(x0, y0); + } + err -= dy; + if (err < 0) { + y0 += ystep; + err += dx; + } + } +} + +void OLEDDisplay::drawRect(int16_t x, int16_t y, int16_t width, int16_t height) { + drawHorizontalLine(x, y, width); + drawVerticalLine(x, y, height); + drawVerticalLine(x + width - 1, y, height); + drawHorizontalLine(x, y + height - 1, width); +} + +void OLEDDisplay::fillRect(int16_t xMove, int16_t yMove, int16_t width, int16_t height) { + for (int16_t x = xMove; x < xMove + width; x++) { + drawVerticalLine(x, yMove, height); + } +} + +void OLEDDisplay::drawCircle(int16_t x0, int16_t y0, int16_t radius) { + int16_t x = 0, y = radius; + int16_t dp = 1 - radius; + do { + if (dp < 0) + dp = dp + 2 * (++x) + 3; + else + dp = dp + 2 * (++x) - 2 * (--y) + 5; + + setPixel(x0 + x, y0 + y); //For the 8 octants + setPixel(x0 - x, y0 + y); + setPixel(x0 + x, y0 - y); + setPixel(x0 - x, y0 - y); + setPixel(x0 + y, y0 + x); + setPixel(x0 - y, y0 + x); + setPixel(x0 + y, y0 - x); + setPixel(x0 - y, y0 - x); + + } while (x < y); + + setPixel(x0 + radius, y0); + setPixel(x0, y0 + radius); + setPixel(x0 - radius, y0); + setPixel(x0, y0 - radius); +} + +void OLEDDisplay::drawCircleQuads(int16_t x0, int16_t y0, int16_t radius, uint8_t quads) { + int16_t x = 0, y = radius; + int16_t dp = 1 - radius; + while (x < y) { + if (dp < 0) + dp = dp + 2 * (++x) + 3; + else + dp = dp + 2 * (++x) - 2 * (--y) + 5; + if (quads & 0x1) { + setPixel(x0 + x, y0 - y); + setPixel(x0 + y, y0 - x); + } + if (quads & 0x2) { + setPixel(x0 - y, y0 - x); + setPixel(x0 - x, y0 - y); + } + if (quads & 0x4) { + setPixel(x0 - y, y0 + x); + setPixel(x0 - x, y0 + y); + } + if (quads & 0x8) { + setPixel(x0 + x, y0 + y); + setPixel(x0 + y, y0 + x); + } + } + if (quads & 0x1 && quads & 0x8) { + setPixel(x0 + radius, y0); + } + if (quads & 0x4 && quads & 0x8) { + setPixel(x0, y0 + radius); + } + if (quads & 0x2 && quads & 0x4) { + setPixel(x0 - radius, y0); + } + if (quads & 0x1 && quads & 0x2) { + setPixel(x0, y0 - radius); + } +} + + +void OLEDDisplay::fillCircle(int16_t x0, int16_t y0, int16_t radius) { + int16_t x = 0, y = radius; + int16_t dp = 1 - radius; + do { + if (dp < 0) + dp = dp + 2 * (++x) + 3; + else + dp = dp + 2 * (++x) - 2 * (--y) + 5; + + drawHorizontalLine(x0 - x, y0 - y, 2*x); + drawHorizontalLine(x0 - x, y0 + y, 2*x); + drawHorizontalLine(x0 - y, y0 - x, 2*y); + drawHorizontalLine(x0 - y, y0 + x, 2*y); + + + } while (x < y); + drawHorizontalLine(x0 - radius, y0, 2 * radius); + +} + +void OLEDDisplay::drawHorizontalLine(int16_t x, int16_t y, int16_t length) { + if (y < 0 || y >= DISPLAY_HEIGHT) { return; } + + if (x < 0) { + length += x; + x = 0; + } + + if ( (x + length) > DISPLAY_WIDTH) { + length = (DISPLAY_WIDTH - x); + } + + if (length <= 0) { return; } + + uint8_t * bufferPtr = buffer; + bufferPtr += (y >> 3) * DISPLAY_WIDTH; + bufferPtr += x; + + uint8_t drawBit = 1 << (y & 7); + + switch (color) { + case WHITE: while (length--) { + *bufferPtr++ |= drawBit; + }; break; + case BLACK: drawBit = ~drawBit; while (length--) { + *bufferPtr++ &= drawBit; + }; break; + case INVERSE: while (length--) { + *bufferPtr++ ^= drawBit; + }; break; + } +} + +void OLEDDisplay::drawVerticalLine(int16_t x, int16_t y, int16_t length) { + if (x < 0 || x >= DISPLAY_WIDTH) return; + + if (y < 0) { + length += y; + y = 0; + } + + if ( (y + length) > DISPLAY_HEIGHT) { + length = (DISPLAY_HEIGHT - y); + } + + if (length <= 0) return; + + + uint8_t yOffset = y & 7; + uint8_t drawBit; + uint8_t *bufferPtr = buffer; + + bufferPtr += (y >> 3) * DISPLAY_WIDTH; + bufferPtr += x; + + if (yOffset) { + yOffset = 8 - yOffset; + drawBit = ~(0xFF >> (yOffset)); + + if (length < yOffset) { + drawBit &= (0xFF >> (yOffset - length)); + } + + switch (color) { + case WHITE: *bufferPtr |= drawBit; break; + case BLACK: *bufferPtr &= ~drawBit; break; + case INVERSE: *bufferPtr ^= drawBit; break; + } + + if (length < yOffset) return; + + length -= yOffset; + bufferPtr += DISPLAY_WIDTH; + } + + if (length >= 8) { + switch (color) { + case WHITE: + case BLACK: + drawBit = (color == WHITE) ? 0xFF : 0x00; + do { + *bufferPtr = drawBit; + bufferPtr += DISPLAY_WIDTH; + length -= 8; + } while (length >= 8); + break; + case INVERSE: + do { + *bufferPtr = ~(*bufferPtr); + bufferPtr += DISPLAY_WIDTH; + length -= 8; + } while (length >= 8); + break; + } + } + + if (length > 0) { + drawBit = (1 << (length & 7)) - 1; + switch (color) { + case WHITE: *bufferPtr |= drawBit; break; + case BLACK: *bufferPtr &= ~drawBit; break; + case INVERSE: *bufferPtr ^= drawBit; break; + } + } +} + +void OLEDDisplay::drawProgressBar(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t progress) { + uint16_t radius = height / 2; + uint16_t xRadius = x + radius; + uint16_t yRadius = y + radius; + uint16_t doubleRadius = 2 * radius; + uint16_t innerRadius = radius - 2; + + setColor(WHITE); + drawCircleQuads(xRadius, yRadius, radius, 0b00000110); + drawHorizontalLine(xRadius, y, width - doubleRadius + 1); + drawHorizontalLine(xRadius, y + height, width - doubleRadius + 1); + drawCircleQuads(x + width - radius, yRadius, radius, 0b00001001); + + uint16_t maxProgressWidth = (width - doubleRadius - 1) * progress / 100; + + fillCircle(xRadius, yRadius, innerRadius); + fillRect(xRadius + 1, y + 2, maxProgressWidth, height - 3); + fillCircle(xRadius + maxProgressWidth, yRadius, innerRadius); +} + +void OLEDDisplay::drawFastImage(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *image) { + drawInternal(xMove, yMove, width, height, image, 0, 0); +} + +void OLEDDisplay::drawXbm(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *xbm) { + int16_t widthInXbm = (width + 7) / 8; + uint8_t data; + + for(int16_t y = 0; y < height; y++) { + for(int16_t x = 0; x < width; x++ ) { + if (x & 7) { + data >>= 1; // Move a bit + } else { // Read new data every 8 bit + data = pgm_read_byte(xbm + (x / 8) + y * widthInXbm); + } + // if there is a bit draw it + if (data & 0x01) { + setPixel(xMove + x, yMove + y); + } + } + } +} + +void OLEDDisplay::drawStringInternal(int16_t xMove, int16_t yMove, char* text, uint16_t textLength, uint16_t textWidth) { + uint8_t textHeight = pgm_read_byte(fontData + HEIGHT_POS); + uint8_t firstChar = pgm_read_byte(fontData + FIRST_CHAR_POS); + uint16_t sizeOfJumpTable = pgm_read_byte(fontData + CHAR_NUM_POS) * JUMPTABLE_BYTES; + + uint8_t cursorX = 0; + uint8_t cursorY = 0; + + switch (textAlignment) { + case TEXT_ALIGN_CENTER_BOTH: + yMove -= textHeight >> 1; + // Fallthrough + case TEXT_ALIGN_CENTER: + xMove -= textWidth >> 1; // divide by 2 + break; + case TEXT_ALIGN_RIGHT: + xMove -= textWidth; + break; + } + + // Don't draw anything if it is not on the screen. + if (xMove + textWidth < 0 || xMove > DISPLAY_WIDTH ) {return;} + if (yMove + textHeight < 0 || yMove > DISPLAY_HEIGHT) {return;} + + for (uint16_t j = 0; j < textLength; j++) { + int16_t xPos = xMove + cursorX; + int16_t yPos = yMove + cursorY; + + byte code = text[j]; + if (code >= firstChar) { + byte charCode = code - firstChar; + + // 4 Bytes per char code + byte msbJumpToChar = pgm_read_byte( fontData + JUMPTABLE_START + charCode * JUMPTABLE_BYTES ); // MSB \ JumpAddress + byte lsbJumpToChar = pgm_read_byte( fontData + JUMPTABLE_START + charCode * JUMPTABLE_BYTES + JUMPTABLE_LSB); // LSB / + byte charByteSize = pgm_read_byte( fontData + JUMPTABLE_START + charCode * JUMPTABLE_BYTES + JUMPTABLE_SIZE); // Size + byte currentCharWidth = pgm_read_byte( fontData + JUMPTABLE_START + charCode * JUMPTABLE_BYTES + JUMPTABLE_WIDTH); // Width + + // Test if the char is drawable + if (!(msbJumpToChar == 255 && lsbJumpToChar == 255)) { + // Get the position of the char data + uint16_t charDataPosition = JUMPTABLE_START + sizeOfJumpTable + ((msbJumpToChar << 8) + lsbJumpToChar); + drawInternal(xPos, yPos, currentCharWidth, textHeight, fontData, charDataPosition, charByteSize); + } + + cursorX += currentCharWidth; + } + } +} + + +void OLEDDisplay::drawString(int16_t xMove, int16_t yMove, String strUser) { + uint16_t lineHeight = pgm_read_byte(fontData + HEIGHT_POS); + + // char* text must be freed! + char* text = utf8ascii(strUser); + + uint16_t yOffset = 0; + // If the string should be centered vertically too + // we need to now how heigh the string is. + if (textAlignment == TEXT_ALIGN_CENTER_BOTH) { + uint16_t lb = 0; + // Find number of linebreaks in text + for (uint16_t i=0;text[i] != 0; i++) { + lb += (text[i] == 10); + } + // Calculate center + yOffset = (lb * lineHeight) / 2; + } + + uint16_t line = 0; + char* textPart = strtok(text,"\n"); + while (textPart != NULL) { + uint16_t length = strlen(textPart); + drawStringInternal(xMove, yMove - yOffset + (line++) * lineHeight, textPart, length, getStringWidth(textPart, length)); + textPart = strtok(NULL, "\n"); + } + free(text); +} + +void OLEDDisplay::drawStringMaxWidth(int16_t xMove, int16_t yMove, uint16_t maxLineWidth, String strUser) { + uint16_t firstChar = pgm_read_byte(fontData + FIRST_CHAR_POS); + uint16_t lineHeight = pgm_read_byte(fontData + HEIGHT_POS); + + char* text = utf8ascii(strUser); + + uint16_t length = strlen(text); + uint16_t lastDrawnPos = 0; + uint16_t lineNumber = 0; + uint16_t strWidth = 0; + + uint16_t preferredBreakpoint = 0; + uint16_t widthAtBreakpoint = 0; + + for (uint16_t i = 0; i < length; i++) { + strWidth += pgm_read_byte(fontData + JUMPTABLE_START + (text[i] - firstChar) * JUMPTABLE_BYTES + JUMPTABLE_WIDTH); + + // Always try to break on a space or dash + if (text[i] == ' ' || text[i]== '-') { + preferredBreakpoint = i; + widthAtBreakpoint = strWidth; + } + + if (strWidth >= maxLineWidth) { + if (preferredBreakpoint == 0) { + preferredBreakpoint = i; + widthAtBreakpoint = strWidth; + } + drawStringInternal(xMove, yMove + (lineNumber++) * lineHeight , &text[lastDrawnPos], preferredBreakpoint - lastDrawnPos, widthAtBreakpoint); + lastDrawnPos = preferredBreakpoint + 1; + // It is possible that we did not draw all letters to i so we need + // to account for the width of the chars from `i - preferredBreakpoint` + // by calculating the width we did not draw yet. + strWidth = strWidth - widthAtBreakpoint; + preferredBreakpoint = 0; + } + } + + // Draw last part if needed + if (lastDrawnPos < length) { + drawStringInternal(xMove, yMove + lineNumber * lineHeight , &text[lastDrawnPos], length - lastDrawnPos, getStringWidth(&text[lastDrawnPos], length - lastDrawnPos)); + } + + free(text); +} + +uint16_t OLEDDisplay::getStringWidth(const char* text, uint16_t length) { + uint16_t firstChar = pgm_read_byte(fontData + FIRST_CHAR_POS); + + uint16_t stringWidth = 0; + uint16_t maxWidth = 0; + + while (length--) { + stringWidth += pgm_read_byte(fontData + JUMPTABLE_START + (text[length] - firstChar) * JUMPTABLE_BYTES + JUMPTABLE_WIDTH); + if (text[length] == 10) { + maxWidth = max(maxWidth, stringWidth); + stringWidth = 0; + } + } + + return max(maxWidth, stringWidth); +} + +uint16_t OLEDDisplay::getStringWidth(String strUser) { + char* text = utf8ascii(strUser); + uint16_t length = strlen(text); + uint16_t width = getStringWidth(text, length); + free(text); + return width; +} + +void OLEDDisplay::setTextAlignment(OLEDDISPLAY_TEXT_ALIGNMENT textAlignment) { + this->textAlignment = textAlignment; +} + +void OLEDDisplay::setFont(const char *fontData) { + this->fontData = fontData; +} + +void OLEDDisplay::displayOn(void) { + sendCommand(DISPLAYON); +} + +void OLEDDisplay::displayOff(void) { + sendCommand(DISPLAYOFF); +} + +void OLEDDisplay::invertDisplay(void) { + sendCommand(INVERTDISPLAY); +} + +void OLEDDisplay::normalDisplay(void) { + sendCommand(NORMALDISPLAY); +} + +void OLEDDisplay::setContrast(char contrast) { + sendCommand(SETCONTRAST); + sendCommand(contrast); +} + +void OLEDDisplay::flipScreenVertically() { + sendCommand(SEGREMAP | 0x01); + sendCommand(COMSCANDEC); //Rotate screen 180 Deg +} + +void OLEDDisplay::clear(void) { + memset(buffer, 0, DISPLAY_BUFFER_SIZE); +} + +void OLEDDisplay::drawLogBuffer(uint16_t xMove, uint16_t yMove) { + uint16_t lineHeight = pgm_read_byte(fontData + HEIGHT_POS); + // Always align left + setTextAlignment(TEXT_ALIGN_LEFT); + + // State values + uint16_t length = 0; + uint16_t line = 0; + uint16_t lastPos = 0; + + for (uint16_t i=0;ilogBufferFilled;i++){ + // Everytime we have a \n print + if (this->logBuffer[i] == 10) { + length++; + // Draw string on line `line` from lastPos to length + // Passing 0 as the lenght because we are in TEXT_ALIGN_LEFT + drawStringInternal(xMove, yMove + (line++) * lineHeight, &this->logBuffer[lastPos], length, 0); + // Remember last pos + lastPos = i; + // Reset length + length = 0; + } else { + // Count chars until next linebreak + length++; + } + } + // Draw the remaining string + if (length > 0) { + drawStringInternal(xMove, yMove + line * lineHeight, &this->logBuffer[lastPos], length, 0); + } +} + +bool OLEDDisplay::setLogBuffer(uint16_t lines, uint16_t chars){ + if (logBuffer != NULL) free(logBuffer); + uint16_t size = lines * chars; + if (size > 0) { + this->logBufferLine = 0; // Lines printed + this->logBufferMaxLines = lines; // Lines max printable + this->logBufferSize = size; // Total number of characters the buffer can hold + this->logBuffer = (char *) malloc(size * sizeof(uint8_t)); + if(!this->logBuffer) { + DEBUG_OLEDDISPLAY("[OLEDDISPLAY][setLogBuffer] Not enough memory to create log buffer\n"); + return false; + } + } + return true; +} + +size_t OLEDDisplay::write(uint8_t c) { + if (this->logBufferSize > 0) { + // Don't waste space on \r\n line endings, dropping \r + if (c == 13) return 1; + + bool maxLineNotReached = this->logBufferLine < this->logBufferMaxLines; + bool bufferNotFull = this->logBufferFilled < this->logBufferSize; + + // Can we write to the buffer? + if (bufferNotFull && maxLineNotReached) { + this->logBuffer[logBufferFilled] = utf8ascii(c); + this->logBufferFilled++; + // Keep track of lines written + if (c == 10) this->logBufferLine++; + } else { + // Max line number is reached + if (!maxLineNotReached) this->logBufferLine--; + + // Find the end of the first line + uint16_t firstLineEnd = 0; + for (uint16_t i=0;ilogBufferFilled;i++) { + if (this->logBuffer[i] == 10){ + // Include last char too + firstLineEnd = i + 1; + break; + } + } + // If there was a line ending + if (firstLineEnd > 0) { + // Calculate the new logBufferFilled value + this->logBufferFilled = logBufferFilled - firstLineEnd; + // Now we move the lines infront of the buffer + memcpy(this->logBuffer, &this->logBuffer[firstLineEnd], logBufferFilled); + } else { + // Let's reuse the buffer if it was full + if (!bufferNotFull) { + this->logBufferFilled = 0; + }// else { + // Nothing to do here + //} + } + write(c); + } + } + // We are always writing all uint8_t to the buffer + return 1; +} + +size_t OLEDDisplay::write(const char* str) { + if (str == NULL) return 0; + size_t length = strlen(str); + for (size_t i = 0; i < length; i++) { + write(str[i]); + } + return length; +} + +// Private functions +void OLEDDisplay::sendInitCommands(void) { + sendCommand(DISPLAYOFF); + sendCommand(SETDISPLAYCLOCKDIV); + sendCommand(0xF0); // Increase speed of the display max ~96Hz + sendCommand(SETMULTIPLEX); + sendCommand(0x3F); + sendCommand(SETDISPLAYOFFSET); + sendCommand(0x00); + sendCommand(SETSTARTLINE); + sendCommand(CHARGEPUMP); + sendCommand(0x14); + sendCommand(MEMORYMODE); + sendCommand(0x00); + sendCommand(SEGREMAP); + sendCommand(COMSCANINC); + sendCommand(SETCOMPINS); + sendCommand(0x12); + sendCommand(SETCONTRAST); + sendCommand(0xCF); + sendCommand(SETPRECHARGE); + sendCommand(0xF1); + sendCommand(DISPLAYALLON_RESUME); + sendCommand(NORMALDISPLAY); + sendCommand(0x2e); // stop scroll + sendCommand(DISPLAYON); +} + +void inline OLEDDisplay::drawInternal(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *data, uint16_t offset, uint16_t bytesInData) { + if (width < 0 || height < 0) return; + if (yMove + height < 0 || yMove > DISPLAY_HEIGHT) return; + if (xMove + width < 0 || xMove > DISPLAY_WIDTH) return; + + uint8_t rasterHeight = 1 + ((height - 1) >> 3); // fast ceil(height / 8.0) + int8_t yOffset = yMove & 7; + + bytesInData = bytesInData == 0 ? width * rasterHeight : bytesInData; + + int16_t initYMove = yMove; + int8_t initYOffset = yOffset; + + + for (uint16_t i = 0; i < bytesInData; i++) { + + // Reset if next horizontal drawing phase is started. + if ( i % rasterHeight == 0) { + yMove = initYMove; + yOffset = initYOffset; + } + + byte currentByte = pgm_read_byte(data + offset + i); + + int16_t xPos = xMove + (i / rasterHeight); + int16_t yPos = ((yMove >> 3) + (i % rasterHeight)) * DISPLAY_WIDTH; + + int16_t yScreenPos = yMove + yOffset; + int16_t dataPos = xPos + yPos; + + if (dataPos >= 0 && dataPos < DISPLAY_BUFFER_SIZE && + xPos >= 0 && xPos < DISPLAY_WIDTH ) { + + if (yOffset >= 0) { + switch (this->color) { + case WHITE: buffer[dataPos] |= currentByte << yOffset; break; + case BLACK: buffer[dataPos] &= ~(currentByte << yOffset); break; + case INVERSE: buffer[dataPos] ^= currentByte << yOffset; break; + } + if (dataPos < (DISPLAY_BUFFER_SIZE - DISPLAY_WIDTH)) { + switch (this->color) { + case WHITE: buffer[dataPos + DISPLAY_WIDTH] |= currentByte >> (8 - yOffset); break; + case BLACK: buffer[dataPos + DISPLAY_WIDTH] &= ~(currentByte >> (8 - yOffset)); break; + case INVERSE: buffer[dataPos + DISPLAY_WIDTH] ^= currentByte >> (8 - yOffset); break; + } + } + } else { + // Make new offset position + yOffset = -yOffset; + + switch (this->color) { + case WHITE: buffer[dataPos] |= currentByte >> yOffset; break; + case BLACK: buffer[dataPos] &= ~(currentByte >> yOffset); break; + case INVERSE: buffer[dataPos] ^= currentByte >> yOffset; break; + } + + // Prepare for next iteration by moving one block up + yMove -= 8; + + // and setting the new yOffset + yOffset = 8 - yOffset; + } + optimistic_yield(10000); + } + } +} + +// Code form http://playground.arduino.cc/Main/Utf8ascii +uint8_t OLEDDisplay::utf8ascii(byte ascii) { + static uint8_t LASTCHAR; + + if ( ascii < 128 ) { // Standard ASCII-set 0..0x7F handling + LASTCHAR = 0; + return ascii; + } + + uint8_t last = LASTCHAR; // get last char + LASTCHAR = ascii; + + switch (last) { // conversion depnding on first UTF8-character + case 0xC2: return (ascii); break; + case 0xC3: return (ascii | 0xC0); break; + case 0x82: if (ascii == 0xAC) return (0x80); // special case Euro-symbol + } + + return 0; // otherwise: return zero, if character has to be ignored +} + +// You need to free the char! +char* OLEDDisplay::utf8ascii(String str) { + uint16_t k = 0; + uint16_t length = str.length() + 1; + + // Copy the string into a char array + char* s = (char*) malloc(length * sizeof(char)); + if(!s) { + DEBUG_OLEDDISPLAY("[OLEDDISPLAY][utf8ascii] Can't allocate another char array. Drop support for UTF-8.\n"); + return (char*) str.c_str(); + } + str.toCharArray(s, length); + + length--; + + for (uint16_t i=0; i < length; i++) { + char c = utf8ascii(s[i]); + if (c!=0) { + s[k++]=c; + } + } + + s[k]=0; + + // This will leak 's' be sure to free it in the calling function. + return s; +} diff --git a/libraries/oled-ssd1306/OLEDDisplay.h b/libraries/oled-ssd1306/OLEDDisplay.h new file mode 100644 index 00000000..81537a24 --- /dev/null +++ b/libraries/oled-ssd1306/OLEDDisplay.h @@ -0,0 +1,268 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#ifndef OLEDDISPLAY_h +#define OLEDDISPLAY_h + +#include +#include "OLEDDisplayFonts.h" + +//#define DEBUG_OLEDDISPLAY(...) Serial.printf( __VA_ARGS__ ) + +#ifndef DEBUG_OLEDDISPLAY +#define DEBUG_OLEDDISPLAY(...) +#endif + +// Use DOUBLE BUFFERING by default +#ifndef OLEDDISPLAY_REDUCE_MEMORY +#define OLEDDISPLAY_DOUBLE_BUFFER +#endif + + +// Display settings +#define DISPLAY_WIDTH 128 +#define DISPLAY_HEIGHT 64 +#define DISPLAY_BUFFER_SIZE 1024 + +// Header Values +#define JUMPTABLE_BYTES 4 + +#define JUMPTABLE_LSB 1 +#define JUMPTABLE_SIZE 2 +#define JUMPTABLE_WIDTH 3 +#define JUMPTABLE_START 4 + +#define WIDTH_POS 0 +#define HEIGHT_POS 1 +#define FIRST_CHAR_POS 2 +#define CHAR_NUM_POS 3 + + +// Display commands +#define CHARGEPUMP 0x8D +#define COLUMNADDR 0x21 +#define COMSCANDEC 0xC8 +#define COMSCANINC 0xC0 +#define DISPLAYALLON 0xA5 +#define DISPLAYALLON_RESUME 0xA4 +#define DISPLAYOFF 0xAE +#define DISPLAYON 0xAF +#define EXTERNALVCC 0x1 +#define INVERTDISPLAY 0xA7 +#define MEMORYMODE 0x20 +#define NORMALDISPLAY 0xA6 +#define PAGEADDR 0x22 +#define SEGREMAP 0xA0 +#define SETCOMPINS 0xDA +#define SETCONTRAST 0x81 +#define SETDISPLAYCLOCKDIV 0xD5 +#define SETDISPLAYOFFSET 0xD3 +#define SETHIGHCOLUMN 0x10 +#define SETLOWCOLUMN 0x00 +#define SETMULTIPLEX 0xA8 +#define SETPRECHARGE 0xD9 +#define SETSEGMENTREMAP 0xA1 +#define SETSTARTLINE 0x40 +#define SETVCOMDETECT 0xDB +#define SWITCHCAPVCC 0x2 + +#ifndef _swap_int16_t +#define _swap_int16_t(a, b) { int16_t t = a; a = b; b = t; } +#endif + +enum OLEDDISPLAY_COLOR { + BLACK = 0, + WHITE = 1, + INVERSE = 2 +}; + +enum OLEDDISPLAY_TEXT_ALIGNMENT { + TEXT_ALIGN_LEFT = 0, + TEXT_ALIGN_RIGHT = 1, + TEXT_ALIGN_CENTER = 2, + TEXT_ALIGN_CENTER_BOTH = 3 +}; + + +class OLEDDisplay : public Print { + public: + // Initialize the display + bool init(); + + // Free the memory used by the display + void end(); + + // Cycle through the initialization + void resetDisplay(void); + + /* Drawing functions */ + // Sets the color of all pixel operations + void setColor(OLEDDISPLAY_COLOR color); + + // Draw a pixel at given position + void setPixel(int16_t x, int16_t y); + + // Draw a line from position 0 to position 1 + void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1); + + // Draw the border of a rectangle at the given location + void drawRect(int16_t x, int16_t y, int16_t width, int16_t height); + + // Fill the rectangle + void fillRect(int16_t x, int16_t y, int16_t width, int16_t height); + + // Draw the border of a circle + void drawCircle(int16_t x, int16_t y, int16_t radius); + + // Draw all Quadrants specified in the quads bit mask + void drawCircleQuads(int16_t x0, int16_t y0, int16_t radius, uint8_t quads); + + // Fill circle + void fillCircle(int16_t x, int16_t y, int16_t radius); + + // Draw a line horizontally + void drawHorizontalLine(int16_t x, int16_t y, int16_t length); + + // Draw a lin vertically + void drawVerticalLine(int16_t x, int16_t y, int16_t length); + + // Draws a rounded progress bar with the outer dimensions given by width and height. Progress is + // a unsigned byte value between 0 and 100 + void drawProgressBar(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t progress); + + // Draw a bitmap in the internal image format + void drawFastImage(int16_t x, int16_t y, int16_t width, int16_t height, const char *image); + + // Draw a XBM + void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, const char *xbm); + + /* Text functions */ + + // Draws a string at the given location + void drawString(int16_t x, int16_t y, String text); + + // Draws a String with a maximum width at the given location. + // If the given String is wider than the specified width + // The text will be wrapped to the next line at a space or dash + void drawStringMaxWidth(int16_t x, int16_t y, uint16_t maxLineWidth, String text); + + // Returns the width of the const char* with the current + // font settings + uint16_t getStringWidth(const char* text, uint16_t length); + + // Convencience method for the const char version + uint16_t getStringWidth(String text); + + // Specifies relative to which anchor point + // the text is rendered. Available constants: + // TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER_BOTH + void setTextAlignment(OLEDDISPLAY_TEXT_ALIGNMENT textAlignment); + + // Sets the current font. Available default fonts + // ArialMT_Plain_10, ArialMT_Plain_16, ArialMT_Plain_24 + void setFont(const char *fontData); + + /* Display functions */ + + // Turn the display on + void displayOn(void); + + // Turn the display offs + void displayOff(void); + + // Inverted display mode + void invertDisplay(void); + + // Normal display mode + void normalDisplay(void); + + // Set display contrast + void setContrast(char contrast); + + // Turn the display upside down + void flipScreenVertically(); + + // Write the buffer to the display memory + virtual void display(void) = 0; + + // Clear the local pixel buffer + void clear(void); + + // Log buffer implementation + + // This will define the lines and characters you can + // print to the screen. When you exeed the buffer size (lines * chars) + // the output may be truncated due to the size constraint. + bool setLogBuffer(uint16_t lines, uint16_t chars); + + // Draw the log buffer at position (x, y) + void drawLogBuffer(uint16_t x, uint16_t y); + + // Implementent needed function to be compatible with Print class + size_t write(uint8_t c); + size_t write(const char* s); + + uint8_t *buffer; + + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t *buffer_back; + #endif + + protected: + + OLEDDISPLAY_TEXT_ALIGNMENT textAlignment = TEXT_ALIGN_LEFT; + OLEDDISPLAY_COLOR color = WHITE; + + const char *fontData = ArialMT_Plain_10; + + // State values for logBuffer + uint16_t logBufferSize = 0; + uint16_t logBufferFilled = 0; + uint16_t logBufferLine = 0; + uint16_t logBufferMaxLines = 0; + char *logBuffer = NULL; + + // Send a command to the display (low level function) + virtual void sendCommand(uint8_t com) {}; + + // Connect to the display + virtual bool connect() {}; + + // Send all the init commands + void sendInitCommands(); + + // converts utf8 characters to extended ascii + static char* utf8ascii(String s); + static byte utf8ascii(byte ascii); + + void inline drawInternal(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *data, uint16_t offset, uint16_t bytesInData) __attribute__((always_inline)); + + void drawStringInternal(int16_t xMove, int16_t yMove, char* text, uint16_t textLength, uint16_t textWidth); + +}; + +#endif diff --git a/libraries/oled-ssd1306/OLEDDisplayFonts.h b/libraries/oled-ssd1306/OLEDDisplayFonts.h new file mode 100644 index 00000000..6dd21ef6 --- /dev/null +++ b/libraries/oled-ssd1306/OLEDDisplayFonts.h @@ -0,0 +1,1274 @@ +#ifndef OLEDDISPLAYFONTS_h +#define OLEDDISPLAYFONTS_h + +const char ArialMT_Plain_10[] PROGMEM = { + 0x0A, // Width: 10 + 0x0D, // Height: 13 + 0x20, // First Char: 32 + 0xE0, // Numbers of Chars: 224 + + // Jump Table: + 0xFF, 0xFF, 0x00, 0x03, // 32:65535 + 0x00, 0x00, 0x04, 0x03, // 33:0 + 0x00, 0x04, 0x05, 0x04, // 34:4 + 0x00, 0x09, 0x09, 0x06, // 35:9 + 0x00, 0x12, 0x0A, 0x06, // 36:18 + 0x00, 0x1C, 0x10, 0x09, // 37:28 + 0x00, 0x2C, 0x0E, 0x07, // 38:44 + 0x00, 0x3A, 0x01, 0x02, // 39:58 + 0x00, 0x3B, 0x06, 0x03, // 40:59 + 0x00, 0x41, 0x06, 0x03, // 41:65 + 0x00, 0x47, 0x05, 0x04, // 42:71 + 0x00, 0x4C, 0x09, 0x06, // 43:76 + 0x00, 0x55, 0x04, 0x03, // 44:85 + 0x00, 0x59, 0x03, 0x03, // 45:89 + 0x00, 0x5C, 0x04, 0x03, // 46:92 + 0x00, 0x60, 0x05, 0x03, // 47:96 + 0x00, 0x65, 0x0A, 0x06, // 48:101 + 0x00, 0x6F, 0x08, 0x06, // 49:111 + 0x00, 0x77, 0x0A, 0x06, // 50:119 + 0x00, 0x81, 0x0A, 0x06, // 51:129 + 0x00, 0x8B, 0x0B, 0x06, // 52:139 + 0x00, 0x96, 0x0A, 0x06, // 53:150 + 0x00, 0xA0, 0x0A, 0x06, // 54:160 + 0x00, 0xAA, 0x09, 0x06, // 55:170 + 0x00, 0xB3, 0x0A, 0x06, // 56:179 + 0x00, 0xBD, 0x0A, 0x06, // 57:189 + 0x00, 0xC7, 0x04, 0x03, // 58:199 + 0x00, 0xCB, 0x04, 0x03, // 59:203 + 0x00, 0xCF, 0x0A, 0x06, // 60:207 + 0x00, 0xD9, 0x09, 0x06, // 61:217 + 0x00, 0xE2, 0x09, 0x06, // 62:226 + 0x00, 0xEB, 0x0B, 0x06, // 63:235 + 0x00, 0xF6, 0x14, 0x0A, // 64:246 + 0x01, 0x0A, 0x0E, 0x07, // 65:266 + 0x01, 0x18, 0x0C, 0x07, // 66:280 + 0x01, 0x24, 0x0C, 0x07, // 67:292 + 0x01, 0x30, 0x0B, 0x07, // 68:304 + 0x01, 0x3B, 0x0C, 0x07, // 69:315 + 0x01, 0x47, 0x09, 0x06, // 70:327 + 0x01, 0x50, 0x0D, 0x08, // 71:336 + 0x01, 0x5D, 0x0C, 0x07, // 72:349 + 0x01, 0x69, 0x04, 0x03, // 73:361 + 0x01, 0x6D, 0x08, 0x05, // 74:365 + 0x01, 0x75, 0x0E, 0x07, // 75:373 + 0x01, 0x83, 0x0C, 0x06, // 76:387 + 0x01, 0x8F, 0x10, 0x08, // 77:399 + 0x01, 0x9F, 0x0C, 0x07, // 78:415 + 0x01, 0xAB, 0x0E, 0x08, // 79:427 + 0x01, 0xB9, 0x0B, 0x07, // 80:441 + 0x01, 0xC4, 0x0E, 0x08, // 81:452 + 0x01, 0xD2, 0x0C, 0x07, // 82:466 + 0x01, 0xDE, 0x0C, 0x07, // 83:478 + 0x01, 0xEA, 0x0B, 0x06, // 84:490 + 0x01, 0xF5, 0x0C, 0x07, // 85:501 + 0x02, 0x01, 0x0D, 0x07, // 86:513 + 0x02, 0x0E, 0x11, 0x09, // 87:526 + 0x02, 0x1F, 0x0E, 0x07, // 88:543 + 0x02, 0x2D, 0x0D, 0x07, // 89:557 + 0x02, 0x3A, 0x0C, 0x06, // 90:570 + 0x02, 0x46, 0x06, 0x03, // 91:582 + 0x02, 0x4C, 0x06, 0x03, // 92:588 + 0x02, 0x52, 0x04, 0x03, // 93:594 + 0x02, 0x56, 0x09, 0x05, // 94:598 + 0x02, 0x5F, 0x0C, 0x06, // 95:607 + 0x02, 0x6B, 0x03, 0x03, // 96:619 + 0x02, 0x6E, 0x0A, 0x06, // 97:622 + 0x02, 0x78, 0x0A, 0x06, // 98:632 + 0x02, 0x82, 0x0A, 0x05, // 99:642 + 0x02, 0x8C, 0x0A, 0x06, // 100:652 + 0x02, 0x96, 0x0A, 0x06, // 101:662 + 0x02, 0xA0, 0x05, 0x03, // 102:672 + 0x02, 0xA5, 0x0A, 0x06, // 103:677 + 0x02, 0xAF, 0x0A, 0x06, // 104:687 + 0x02, 0xB9, 0x04, 0x02, // 105:697 + 0x02, 0xBD, 0x04, 0x02, // 106:701 + 0x02, 0xC1, 0x08, 0x05, // 107:705 + 0x02, 0xC9, 0x04, 0x02, // 108:713 + 0x02, 0xCD, 0x10, 0x08, // 109:717 + 0x02, 0xDD, 0x0A, 0x06, // 110:733 + 0x02, 0xE7, 0x0A, 0x06, // 111:743 + 0x02, 0xF1, 0x0A, 0x06, // 112:753 + 0x02, 0xFB, 0x0A, 0x06, // 113:763 + 0x03, 0x05, 0x05, 0x03, // 114:773 + 0x03, 0x0A, 0x08, 0x05, // 115:778 + 0x03, 0x12, 0x06, 0x03, // 116:786 + 0x03, 0x18, 0x0A, 0x06, // 117:792 + 0x03, 0x22, 0x09, 0x05, // 118:802 + 0x03, 0x2B, 0x0E, 0x07, // 119:811 + 0x03, 0x39, 0x0A, 0x05, // 120:825 + 0x03, 0x43, 0x09, 0x05, // 121:835 + 0x03, 0x4C, 0x0A, 0x05, // 122:844 + 0x03, 0x56, 0x06, 0x03, // 123:854 + 0x03, 0x5C, 0x04, 0x03, // 124:860 + 0x03, 0x60, 0x05, 0x03, // 125:864 + 0x03, 0x65, 0x09, 0x06, // 126:869 + 0xFF, 0xFF, 0x00, 0x00, // 127:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 128:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 129:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 130:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 131:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 132:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 133:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 134:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 135:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 136:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 137:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 138:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 139:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 140:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 141:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 142:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 143:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 144:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 145:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 146:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 147:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 148:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 149:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 150:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 151:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 152:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 153:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 154:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 155:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 156:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 157:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 158:65535 + 0xFF, 0xFF, 0x00, 0x0A, // 159:65535 + 0xFF, 0xFF, 0x00, 0x03, // 160:65535 + 0x03, 0x6E, 0x04, 0x03, // 161:878 + 0x03, 0x72, 0x0A, 0x06, // 162:882 + 0x03, 0x7C, 0x0C, 0x06, // 163:892 + 0x03, 0x88, 0x0A, 0x06, // 164:904 + 0x03, 0x92, 0x0A, 0x06, // 165:914 + 0x03, 0x9C, 0x04, 0x03, // 166:924 + 0x03, 0xA0, 0x0A, 0x06, // 167:928 + 0x03, 0xAA, 0x05, 0x03, // 168:938 + 0x03, 0xAF, 0x0D, 0x07, // 169:943 + 0x03, 0xBC, 0x07, 0x04, // 170:956 + 0x03, 0xC3, 0x0A, 0x06, // 171:963 + 0x03, 0xCD, 0x09, 0x06, // 172:973 + 0x03, 0xD6, 0x03, 0x03, // 173:982 + 0x03, 0xD9, 0x0D, 0x07, // 174:985 + 0x03, 0xE6, 0x0B, 0x06, // 175:998 + 0x03, 0xF1, 0x07, 0x04, // 176:1009 + 0x03, 0xF8, 0x0A, 0x05, // 177:1016 + 0x04, 0x02, 0x05, 0x03, // 178:1026 + 0x04, 0x07, 0x05, 0x03, // 179:1031 + 0x04, 0x0C, 0x05, 0x03, // 180:1036 + 0x04, 0x11, 0x0A, 0x06, // 181:1041 + 0x04, 0x1B, 0x09, 0x05, // 182:1051 + 0x04, 0x24, 0x03, 0x03, // 183:1060 + 0x04, 0x27, 0x06, 0x03, // 184:1063 + 0x04, 0x2D, 0x05, 0x03, // 185:1069 + 0x04, 0x32, 0x07, 0x04, // 186:1074 + 0x04, 0x39, 0x0A, 0x06, // 187:1081 + 0x04, 0x43, 0x10, 0x08, // 188:1091 + 0x04, 0x53, 0x10, 0x08, // 189:1107 + 0x04, 0x63, 0x10, 0x08, // 190:1123 + 0x04, 0x73, 0x0A, 0x06, // 191:1139 + 0x04, 0x7D, 0x0E, 0x07, // 192:1149 + 0x04, 0x8B, 0x0E, 0x07, // 193:1163 + 0x04, 0x99, 0x0E, 0x07, // 194:1177 + 0x04, 0xA7, 0x0E, 0x07, // 195:1191 + 0x04, 0xB5, 0x0E, 0x07, // 196:1205 + 0x04, 0xC3, 0x0E, 0x07, // 197:1219 + 0x04, 0xD1, 0x12, 0x0A, // 198:1233 + 0x04, 0xE3, 0x0C, 0x07, // 199:1251 + 0x04, 0xEF, 0x0C, 0x07, // 200:1263 + 0x04, 0xFB, 0x0C, 0x07, // 201:1275 + 0x05, 0x07, 0x0C, 0x07, // 202:1287 + 0x05, 0x13, 0x0C, 0x07, // 203:1299 + 0x05, 0x1F, 0x05, 0x03, // 204:1311 + 0x05, 0x24, 0x04, 0x03, // 205:1316 + 0x05, 0x28, 0x04, 0x03, // 206:1320 + 0x05, 0x2C, 0x05, 0x03, // 207:1324 + 0x05, 0x31, 0x0B, 0x07, // 208:1329 + 0x05, 0x3C, 0x0C, 0x07, // 209:1340 + 0x05, 0x48, 0x0E, 0x08, // 210:1352 + 0x05, 0x56, 0x0E, 0x08, // 211:1366 + 0x05, 0x64, 0x0E, 0x08, // 212:1380 + 0x05, 0x72, 0x0E, 0x08, // 213:1394 + 0x05, 0x80, 0x0E, 0x08, // 214:1408 + 0x05, 0x8E, 0x0A, 0x06, // 215:1422 + 0x05, 0x98, 0x0D, 0x08, // 216:1432 + 0x05, 0xA5, 0x0C, 0x07, // 217:1445 + 0x05, 0xB1, 0x0C, 0x07, // 218:1457 + 0x05, 0xBD, 0x0C, 0x07, // 219:1469 + 0x05, 0xC9, 0x0C, 0x07, // 220:1481 + 0x05, 0xD5, 0x0D, 0x07, // 221:1493 + 0x05, 0xE2, 0x0B, 0x07, // 222:1506 + 0x05, 0xED, 0x0C, 0x06, // 223:1517 + 0x05, 0xF9, 0x0A, 0x06, // 224:1529 + 0x06, 0x03, 0x0A, 0x06, // 225:1539 + 0x06, 0x0D, 0x0A, 0x06, // 226:1549 + 0x06, 0x17, 0x0A, 0x06, // 227:1559 + 0x06, 0x21, 0x0A, 0x06, // 228:1569 + 0x06, 0x2B, 0x0A, 0x06, // 229:1579 + 0x06, 0x35, 0x10, 0x09, // 230:1589 + 0x06, 0x45, 0x0A, 0x05, // 231:1605 + 0x06, 0x4F, 0x0A, 0x06, // 232:1615 + 0x06, 0x59, 0x0A, 0x06, // 233:1625 + 0x06, 0x63, 0x0A, 0x06, // 234:1635 + 0x06, 0x6D, 0x0A, 0x06, // 235:1645 + 0x06, 0x77, 0x05, 0x03, // 236:1655 + 0x06, 0x7C, 0x04, 0x03, // 237:1660 + 0x06, 0x80, 0x05, 0x03, // 238:1664 + 0x06, 0x85, 0x05, 0x03, // 239:1669 + 0x06, 0x8A, 0x0A, 0x06, // 240:1674 + 0x06, 0x94, 0x0A, 0x06, // 241:1684 + 0x06, 0x9E, 0x0A, 0x06, // 242:1694 + 0x06, 0xA8, 0x0A, 0x06, // 243:1704 + 0x06, 0xB2, 0x0A, 0x06, // 244:1714 + 0x06, 0xBC, 0x0A, 0x06, // 245:1724 + 0x06, 0xC6, 0x0A, 0x06, // 246:1734 + 0x06, 0xD0, 0x09, 0x05, // 247:1744 + 0x06, 0xD9, 0x0A, 0x06, // 248:1753 + 0x06, 0xE3, 0x0A, 0x06, // 249:1763 + 0x06, 0xED, 0x0A, 0x06, // 250:1773 + 0x06, 0xF7, 0x0A, 0x06, // 251:1783 + 0x07, 0x01, 0x0A, 0x06, // 252:1793 + 0x07, 0x0B, 0x09, 0x05, // 253:1803 + 0x07, 0x14, 0x0A, 0x06, // 254:1812 + 0x07, 0x1E, 0x09, 0x05, // 255:1822 + + // Font Data: + 0x00,0x00,0xF8,0x02, // 33 + 0x38,0x00,0x00,0x00,0x38, // 34 + 0xA0,0x03,0xE0,0x00,0xB8,0x03,0xE0,0x00,0xB8, // 35 + 0x30,0x01,0x28,0x02,0xF8,0x07,0x48,0x02,0x90,0x01, // 36 + 0x00,0x00,0x30,0x00,0x48,0x00,0x30,0x03,0xC0,0x00,0xB0,0x01,0x48,0x02,0x80,0x01, // 37 + 0x80,0x01,0x50,0x02,0x68,0x02,0xA8,0x02,0x18,0x01,0x80,0x03,0x80,0x02, // 38 + 0x38, // 39 + 0xE0,0x03,0x10,0x04,0x08,0x08, // 40 + 0x08,0x08,0x10,0x04,0xE0,0x03, // 41 + 0x28,0x00,0x18,0x00,0x28, // 42 + 0x40,0x00,0x40,0x00,0xF0,0x01,0x40,0x00,0x40, // 43 + 0x00,0x00,0x00,0x06, // 44 + 0x80,0x00,0x80, // 45 + 0x00,0x00,0x00,0x02, // 46 + 0x00,0x03,0xE0,0x00,0x18, // 47 + 0xF0,0x01,0x08,0x02,0x08,0x02,0x08,0x02,0xF0,0x01, // 48 + 0x00,0x00,0x20,0x00,0x10,0x00,0xF8,0x03, // 49 + 0x10,0x02,0x08,0x03,0x88,0x02,0x48,0x02,0x30,0x02, // 50 + 0x10,0x01,0x08,0x02,0x48,0x02,0x48,0x02,0xB0,0x01, // 51 + 0xC0,0x00,0xA0,0x00,0x90,0x00,0x88,0x00,0xF8,0x03,0x80, // 52 + 0x60,0x01,0x38,0x02,0x28,0x02,0x28,0x02,0xC8,0x01, // 53 + 0xF0,0x01,0x28,0x02,0x28,0x02,0x28,0x02,0xD0,0x01, // 54 + 0x08,0x00,0x08,0x03,0xC8,0x00,0x38,0x00,0x08, // 55 + 0xB0,0x01,0x48,0x02,0x48,0x02,0x48,0x02,0xB0,0x01, // 56 + 0x70,0x01,0x88,0x02,0x88,0x02,0x88,0x02,0xF0,0x01, // 57 + 0x00,0x00,0x20,0x02, // 58 + 0x00,0x00,0x20,0x06, // 59 + 0x00,0x00,0x40,0x00,0xA0,0x00,0xA0,0x00,0x10,0x01, // 60 + 0xA0,0x00,0xA0,0x00,0xA0,0x00,0xA0,0x00,0xA0, // 61 + 0x00,0x00,0x10,0x01,0xA0,0x00,0xA0,0x00,0x40, // 62 + 0x10,0x00,0x08,0x00,0x08,0x00,0xC8,0x02,0x48,0x00,0x30, // 63 + 0x00,0x00,0xC0,0x03,0x30,0x04,0xD0,0x09,0x28,0x0A,0x28,0x0A,0xC8,0x0B,0x68,0x0A,0x10,0x05,0xE0,0x04, // 64 + 0x00,0x02,0xC0,0x01,0xB0,0x00,0x88,0x00,0xB0,0x00,0xC0,0x01,0x00,0x02, // 65 + 0x00,0x00,0xF8,0x03,0x48,0x02,0x48,0x02,0x48,0x02,0xF0,0x01, // 66 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x08,0x02,0x08,0x02,0x10,0x01, // 67 + 0x00,0x00,0xF8,0x03,0x08,0x02,0x08,0x02,0x10,0x01,0xE0, // 68 + 0x00,0x00,0xF8,0x03,0x48,0x02,0x48,0x02,0x48,0x02,0x48,0x02, // 69 + 0x00,0x00,0xF8,0x03,0x48,0x00,0x48,0x00,0x08, // 70 + 0x00,0x00,0xE0,0x00,0x10,0x01,0x08,0x02,0x48,0x02,0x50,0x01,0xC0, // 71 + 0x00,0x00,0xF8,0x03,0x40,0x00,0x40,0x00,0x40,0x00,0xF8,0x03, // 72 + 0x00,0x00,0xF8,0x03, // 73 + 0x00,0x03,0x00,0x02,0x00,0x02,0xF8,0x01, // 74 + 0x00,0x00,0xF8,0x03,0x80,0x00,0x60,0x00,0x90,0x00,0x08,0x01,0x00,0x02, // 75 + 0x00,0x00,0xF8,0x03,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02, // 76 + 0x00,0x00,0xF8,0x03,0x30,0x00,0xC0,0x01,0x00,0x02,0xC0,0x01,0x30,0x00,0xF8,0x03, // 77 + 0x00,0x00,0xF8,0x03,0x30,0x00,0x40,0x00,0x80,0x01,0xF8,0x03, // 78 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x08,0x02,0x08,0x02,0x08,0x02,0xF0,0x01, // 79 + 0x00,0x00,0xF8,0x03,0x48,0x00,0x48,0x00,0x48,0x00,0x30, // 80 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x08,0x02,0x08,0x03,0x08,0x03,0xF0,0x02, // 81 + 0x00,0x00,0xF8,0x03,0x48,0x00,0x48,0x00,0xC8,0x00,0x30,0x03, // 82 + 0x00,0x00,0x30,0x01,0x48,0x02,0x48,0x02,0x48,0x02,0x90,0x01, // 83 + 0x00,0x00,0x08,0x00,0x08,0x00,0xF8,0x03,0x08,0x00,0x08, // 84 + 0x00,0x00,0xF8,0x01,0x00,0x02,0x00,0x02,0x00,0x02,0xF8,0x01, // 85 + 0x08,0x00,0x70,0x00,0x80,0x01,0x00,0x02,0x80,0x01,0x70,0x00,0x08, // 86 + 0x18,0x00,0xE0,0x01,0x00,0x02,0xF0,0x01,0x08,0x00,0xF0,0x01,0x00,0x02,0xE0,0x01,0x18, // 87 + 0x00,0x02,0x08,0x01,0x90,0x00,0x60,0x00,0x90,0x00,0x08,0x01,0x00,0x02, // 88 + 0x08,0x00,0x10,0x00,0x20,0x00,0xC0,0x03,0x20,0x00,0x10,0x00,0x08, // 89 + 0x08,0x03,0x88,0x02,0xC8,0x02,0x68,0x02,0x38,0x02,0x18,0x02, // 90 + 0x00,0x00,0xF8,0x0F,0x08,0x08, // 91 + 0x18,0x00,0xE0,0x00,0x00,0x03, // 92 + 0x08,0x08,0xF8,0x0F, // 93 + 0x40,0x00,0x30,0x00,0x08,0x00,0x30,0x00,0x40, // 94 + 0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x08, // 95 + 0x08,0x00,0x10, // 96 + 0x00,0x00,0x00,0x03,0xA0,0x02,0xA0,0x02,0xE0,0x03, // 97 + 0x00,0x00,0xF8,0x03,0x20,0x02,0x20,0x02,0xC0,0x01, // 98 + 0x00,0x00,0xC0,0x01,0x20,0x02,0x20,0x02,0x40,0x01, // 99 + 0x00,0x00,0xC0,0x01,0x20,0x02,0x20,0x02,0xF8,0x03, // 100 + 0x00,0x00,0xC0,0x01,0xA0,0x02,0xA0,0x02,0xC0,0x02, // 101 + 0x20,0x00,0xF0,0x03,0x28, // 102 + 0x00,0x00,0xC0,0x05,0x20,0x0A,0x20,0x0A,0xE0,0x07, // 103 + 0x00,0x00,0xF8,0x03,0x20,0x00,0x20,0x00,0xC0,0x03, // 104 + 0x00,0x00,0xE8,0x03, // 105 + 0x00,0x08,0xE8,0x07, // 106 + 0xF8,0x03,0x80,0x00,0xC0,0x01,0x20,0x02, // 107 + 0x00,0x00,0xF8,0x03, // 108 + 0x00,0x00,0xE0,0x03,0x20,0x00,0x20,0x00,0xE0,0x03,0x20,0x00,0x20,0x00,0xC0,0x03, // 109 + 0x00,0x00,0xE0,0x03,0x20,0x00,0x20,0x00,0xC0,0x03, // 110 + 0x00,0x00,0xC0,0x01,0x20,0x02,0x20,0x02,0xC0,0x01, // 111 + 0x00,0x00,0xE0,0x0F,0x20,0x02,0x20,0x02,0xC0,0x01, // 112 + 0x00,0x00,0xC0,0x01,0x20,0x02,0x20,0x02,0xE0,0x0F, // 113 + 0x00,0x00,0xE0,0x03,0x20, // 114 + 0x40,0x02,0xA0,0x02,0xA0,0x02,0x20,0x01, // 115 + 0x20,0x00,0xF8,0x03,0x20,0x02, // 116 + 0x00,0x00,0xE0,0x01,0x00,0x02,0x00,0x02,0xE0,0x03, // 117 + 0x20,0x00,0xC0,0x01,0x00,0x02,0xC0,0x01,0x20, // 118 + 0xE0,0x01,0x00,0x02,0xC0,0x01,0x20,0x00,0xC0,0x01,0x00,0x02,0xE0,0x01, // 119 + 0x20,0x02,0x40,0x01,0x80,0x00,0x40,0x01,0x20,0x02, // 120 + 0x20,0x00,0xC0,0x09,0x00,0x06,0xC0,0x01,0x20, // 121 + 0x20,0x02,0x20,0x03,0xA0,0x02,0x60,0x02,0x20,0x02, // 122 + 0x80,0x00,0x78,0x0F,0x08,0x08, // 123 + 0x00,0x00,0xF8,0x0F, // 124 + 0x08,0x08,0x78,0x0F,0x80, // 125 + 0xC0,0x00,0x40,0x00,0xC0,0x00,0x80,0x00,0xC0, // 126 + 0x00,0x00,0xA0,0x0F, // 161 + 0x00,0x00,0xC0,0x01,0xA0,0x0F,0x78,0x02,0x40,0x01, // 162 + 0x40,0x02,0x70,0x03,0xC8,0x02,0x48,0x02,0x08,0x02,0x10,0x02, // 163 + 0x00,0x00,0xE0,0x01,0x20,0x01,0x20,0x01,0xE0,0x01, // 164 + 0x48,0x01,0x70,0x01,0xC0,0x03,0x70,0x01,0x48,0x01, // 165 + 0x00,0x00,0x38,0x0F, // 166 + 0xD0,0x04,0x28,0x09,0x48,0x09,0x48,0x0A,0x90,0x05, // 167 + 0x08,0x00,0x00,0x00,0x08, // 168 + 0xE0,0x00,0x10,0x01,0x48,0x02,0xA8,0x02,0xA8,0x02,0x10,0x01,0xE0, // 169 + 0x68,0x00,0x68,0x00,0x68,0x00,0x78, // 170 + 0x00,0x00,0x80,0x01,0x40,0x02,0x80,0x01,0x40,0x02, // 171 + 0x20,0x00,0x20,0x00,0x20,0x00,0x20,0x00,0xE0, // 172 + 0x80,0x00,0x80, // 173 + 0xE0,0x00,0x10,0x01,0xE8,0x02,0x68,0x02,0xC8,0x02,0x10,0x01,0xE0, // 174 + 0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02, // 175 + 0x00,0x00,0x38,0x00,0x28,0x00,0x38, // 176 + 0x40,0x02,0x40,0x02,0xF0,0x03,0x40,0x02,0x40,0x02, // 177 + 0x48,0x00,0x68,0x00,0x58, // 178 + 0x48,0x00,0x58,0x00,0x68, // 179 + 0x00,0x00,0x10,0x00,0x08, // 180 + 0x00,0x00,0xE0,0x0F,0x00,0x02,0x00,0x02,0xE0,0x03, // 181 + 0x70,0x00,0xF8,0x0F,0x08,0x00,0xF8,0x0F,0x08, // 182 + 0x00,0x00,0x40, // 183 + 0x00,0x00,0x00,0x14,0x00,0x18, // 184 + 0x00,0x00,0x10,0x00,0x78, // 185 + 0x30,0x00,0x48,0x00,0x48,0x00,0x30, // 186 + 0x00,0x00,0x40,0x02,0x80,0x01,0x40,0x02,0x80,0x01, // 187 + 0x00,0x00,0x10,0x02,0x78,0x01,0xC0,0x00,0x20,0x01,0x90,0x01,0xC8,0x03,0x00,0x01, // 188 + 0x00,0x00,0x10,0x02,0x78,0x01,0x80,0x00,0x60,0x00,0x50,0x02,0x48,0x03,0xC0,0x02, // 189 + 0x48,0x00,0x58,0x00,0x68,0x03,0x80,0x00,0x60,0x01,0x90,0x01,0xC8,0x03,0x00,0x01, // 190 + 0x00,0x00,0x00,0x06,0x00,0x09,0xA0,0x09,0x00,0x04, // 191 + 0x00,0x02,0xC0,0x01,0xB0,0x00,0x89,0x00,0xB2,0x00,0xC0,0x01,0x00,0x02, // 192 + 0x00,0x02,0xC0,0x01,0xB0,0x00,0x8A,0x00,0xB1,0x00,0xC0,0x01,0x00,0x02, // 193 + 0x00,0x02,0xC0,0x01,0xB2,0x00,0x89,0x00,0xB2,0x00,0xC0,0x01,0x00,0x02, // 194 + 0x00,0x02,0xC2,0x01,0xB1,0x00,0x8A,0x00,0xB1,0x00,0xC0,0x01,0x00,0x02, // 195 + 0x00,0x02,0xC0,0x01,0xB2,0x00,0x88,0x00,0xB2,0x00,0xC0,0x01,0x00,0x02, // 196 + 0x00,0x02,0xC0,0x01,0xBE,0x00,0x8A,0x00,0xBE,0x00,0xC0,0x01,0x00,0x02, // 197 + 0x00,0x03,0xC0,0x00,0xE0,0x00,0x98,0x00,0x88,0x00,0xF8,0x03,0x48,0x02,0x48,0x02,0x48,0x02, // 198 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x08,0x16,0x08,0x1A,0x10,0x01, // 199 + 0x00,0x00,0xF8,0x03,0x49,0x02,0x4A,0x02,0x48,0x02,0x48,0x02, // 200 + 0x00,0x00,0xF8,0x03,0x48,0x02,0x4A,0x02,0x49,0x02,0x48,0x02, // 201 + 0x00,0x00,0xFA,0x03,0x49,0x02,0x4A,0x02,0x48,0x02,0x48,0x02, // 202 + 0x00,0x00,0xF8,0x03,0x4A,0x02,0x48,0x02,0x4A,0x02,0x48,0x02, // 203 + 0x00,0x00,0xF9,0x03,0x02, // 204 + 0x02,0x00,0xF9,0x03, // 205 + 0x01,0x00,0xFA,0x03, // 206 + 0x02,0x00,0xF8,0x03,0x02, // 207 + 0x40,0x00,0xF8,0x03,0x48,0x02,0x48,0x02,0x10,0x01,0xE0, // 208 + 0x00,0x00,0xFA,0x03,0x31,0x00,0x42,0x00,0x81,0x01,0xF8,0x03, // 209 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x09,0x02,0x0A,0x02,0x08,0x02,0xF0,0x01, // 210 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x0A,0x02,0x09,0x02,0x08,0x02,0xF0,0x01, // 211 + 0x00,0x00,0xF0,0x01,0x08,0x02,0x0A,0x02,0x09,0x02,0x0A,0x02,0xF0,0x01, // 212 + 0x00,0x00,0xF0,0x01,0x0A,0x02,0x09,0x02,0x0A,0x02,0x09,0x02,0xF0,0x01, // 213 + 0x00,0x00,0xF0,0x01,0x0A,0x02,0x08,0x02,0x0A,0x02,0x08,0x02,0xF0,0x01, // 214 + 0x10,0x01,0xA0,0x00,0xE0,0x00,0xA0,0x00,0x10,0x01, // 215 + 0x00,0x00,0xF0,0x02,0x08,0x03,0xC8,0x02,0x28,0x02,0x18,0x03,0xE8, // 216 + 0x00,0x00,0xF8,0x01,0x01,0x02,0x02,0x02,0x00,0x02,0xF8,0x01, // 217 + 0x00,0x00,0xF8,0x01,0x02,0x02,0x01,0x02,0x00,0x02,0xF8,0x01, // 218 + 0x00,0x00,0xF8,0x01,0x02,0x02,0x01,0x02,0x02,0x02,0xF8,0x01, // 219 + 0x00,0x00,0xF8,0x01,0x02,0x02,0x00,0x02,0x02,0x02,0xF8,0x01, // 220 + 0x08,0x00,0x10,0x00,0x20,0x00,0xC2,0x03,0x21,0x00,0x10,0x00,0x08, // 221 + 0x00,0x00,0xF8,0x03,0x10,0x01,0x10,0x01,0x10,0x01,0xE0, // 222 + 0x00,0x00,0xF0,0x03,0x08,0x01,0x48,0x02,0xB0,0x02,0x80,0x01, // 223 + 0x00,0x00,0x00,0x03,0xA4,0x02,0xA8,0x02,0xE0,0x03, // 224 + 0x00,0x00,0x00,0x03,0xA8,0x02,0xA4,0x02,0xE0,0x03, // 225 + 0x00,0x00,0x00,0x03,0xA8,0x02,0xA4,0x02,0xE8,0x03, // 226 + 0x00,0x00,0x08,0x03,0xA4,0x02,0xA8,0x02,0xE4,0x03, // 227 + 0x00,0x00,0x00,0x03,0xA8,0x02,0xA0,0x02,0xE8,0x03, // 228 + 0x00,0x00,0x00,0x03,0xAE,0x02,0xAA,0x02,0xEE,0x03, // 229 + 0x00,0x00,0x40,0x03,0xA0,0x02,0xA0,0x02,0xC0,0x01,0xA0,0x02,0xA0,0x02,0xC0,0x02, // 230 + 0x00,0x00,0xC0,0x01,0x20,0x16,0x20,0x1A,0x40,0x01, // 231 + 0x00,0x00,0xC0,0x01,0xA4,0x02,0xA8,0x02,0xC0,0x02, // 232 + 0x00,0x00,0xC0,0x01,0xA8,0x02,0xA4,0x02,0xC0,0x02, // 233 + 0x00,0x00,0xC0,0x01,0xA8,0x02,0xA4,0x02,0xC8,0x02, // 234 + 0x00,0x00,0xC0,0x01,0xA8,0x02,0xA0,0x02,0xC8,0x02, // 235 + 0x00,0x00,0xE4,0x03,0x08, // 236 + 0x08,0x00,0xE4,0x03, // 237 + 0x08,0x00,0xE4,0x03,0x08, // 238 + 0x08,0x00,0xE0,0x03,0x08, // 239 + 0x00,0x00,0xC0,0x01,0x28,0x02,0x38,0x02,0xE0,0x01, // 240 + 0x00,0x00,0xE8,0x03,0x24,0x00,0x28,0x00,0xC4,0x03, // 241 + 0x00,0x00,0xC0,0x01,0x24,0x02,0x28,0x02,0xC0,0x01, // 242 + 0x00,0x00,0xC0,0x01,0x28,0x02,0x24,0x02,0xC0,0x01, // 243 + 0x00,0x00,0xC0,0x01,0x28,0x02,0x24,0x02,0xC8,0x01, // 244 + 0x00,0x00,0xC8,0x01,0x24,0x02,0x28,0x02,0xC4,0x01, // 245 + 0x00,0x00,0xC0,0x01,0x28,0x02,0x20,0x02,0xC8,0x01, // 246 + 0x40,0x00,0x40,0x00,0x50,0x01,0x40,0x00,0x40, // 247 + 0x00,0x00,0xC0,0x02,0xA0,0x03,0x60,0x02,0xA0,0x01, // 248 + 0x00,0x00,0xE0,0x01,0x04,0x02,0x08,0x02,0xE0,0x03, // 249 + 0x00,0x00,0xE0,0x01,0x08,0x02,0x04,0x02,0xE0,0x03, // 250 + 0x00,0x00,0xE8,0x01,0x04,0x02,0x08,0x02,0xE0,0x03, // 251 + 0x00,0x00,0xE0,0x01,0x08,0x02,0x00,0x02,0xE8,0x03, // 252 + 0x20,0x00,0xC0,0x09,0x08,0x06,0xC4,0x01,0x20, // 253 + 0x00,0x00,0xF8,0x0F,0x20,0x02,0x20,0x02,0xC0,0x01, // 254 + 0x20,0x00,0xC8,0x09,0x00,0x06,0xC8,0x01,0x20 // 255 +}; + +const char ArialMT_Plain_16[] PROGMEM = { + 0x10, // Width: 16 + 0x13, // Height: 19 + 0x20, // First Char: 32 + 0xE0, // Numbers of Chars: 224 + + // Jump Table: + 0xFF, 0xFF, 0x00, 0x04, // 32:65535 + 0x00, 0x00, 0x08, 0x04, // 33:0 + 0x00, 0x08, 0x0D, 0x06, // 34:8 + 0x00, 0x15, 0x1A, 0x09, // 35:21 + 0x00, 0x2F, 0x17, 0x09, // 36:47 + 0x00, 0x46, 0x26, 0x0E, // 37:70 + 0x00, 0x6C, 0x1D, 0x0B, // 38:108 + 0x00, 0x89, 0x04, 0x03, // 39:137 + 0x00, 0x8D, 0x0C, 0x05, // 40:141 + 0x00, 0x99, 0x0B, 0x05, // 41:153 + 0x00, 0xA4, 0x0D, 0x06, // 42:164 + 0x00, 0xB1, 0x17, 0x09, // 43:177 + 0x00, 0xC8, 0x09, 0x04, // 44:200 + 0x00, 0xD1, 0x0B, 0x05, // 45:209 + 0x00, 0xDC, 0x08, 0x04, // 46:220 + 0x00, 0xE4, 0x0A, 0x04, // 47:228 + 0x00, 0xEE, 0x17, 0x09, // 48:238 + 0x01, 0x05, 0x11, 0x09, // 49:261 + 0x01, 0x16, 0x17, 0x09, // 50:278 + 0x01, 0x2D, 0x17, 0x09, // 51:301 + 0x01, 0x44, 0x17, 0x09, // 52:324 + 0x01, 0x5B, 0x17, 0x09, // 53:347 + 0x01, 0x72, 0x17, 0x09, // 54:370 + 0x01, 0x89, 0x16, 0x09, // 55:393 + 0x01, 0x9F, 0x17, 0x09, // 56:415 + 0x01, 0xB6, 0x17, 0x09, // 57:438 + 0x01, 0xCD, 0x05, 0x04, // 58:461 + 0x01, 0xD2, 0x06, 0x04, // 59:466 + 0x01, 0xD8, 0x17, 0x09, // 60:472 + 0x01, 0xEF, 0x17, 0x09, // 61:495 + 0x02, 0x06, 0x17, 0x09, // 62:518 + 0x02, 0x1D, 0x16, 0x09, // 63:541 + 0x02, 0x33, 0x2F, 0x10, // 64:563 + 0x02, 0x62, 0x1D, 0x0B, // 65:610 + 0x02, 0x7F, 0x1D, 0x0B, // 66:639 + 0x02, 0x9C, 0x20, 0x0C, // 67:668 + 0x02, 0xBC, 0x20, 0x0C, // 68:700 + 0x02, 0xDC, 0x1D, 0x0B, // 69:732 + 0x02, 0xF9, 0x19, 0x0A, // 70:761 + 0x03, 0x12, 0x20, 0x0C, // 71:786 + 0x03, 0x32, 0x1D, 0x0C, // 72:818 + 0x03, 0x4F, 0x05, 0x04, // 73:847 + 0x03, 0x54, 0x14, 0x08, // 74:852 + 0x03, 0x68, 0x1D, 0x0B, // 75:872 + 0x03, 0x85, 0x17, 0x09, // 76:901 + 0x03, 0x9C, 0x23, 0x0D, // 77:924 + 0x03, 0xBF, 0x1D, 0x0C, // 78:959 + 0x03, 0xDC, 0x20, 0x0C, // 79:988 + 0x03, 0xFC, 0x1C, 0x0B, // 80:1020 + 0x04, 0x18, 0x20, 0x0C, // 81:1048 + 0x04, 0x38, 0x1D, 0x0C, // 82:1080 + 0x04, 0x55, 0x1D, 0x0B, // 83:1109 + 0x04, 0x72, 0x19, 0x0A, // 84:1138 + 0x04, 0x8B, 0x1D, 0x0C, // 85:1163 + 0x04, 0xA8, 0x1C, 0x0B, // 86:1192 + 0x04, 0xC4, 0x2B, 0x0F, // 87:1220 + 0x04, 0xEF, 0x20, 0x0B, // 88:1263 + 0x05, 0x0F, 0x19, 0x0B, // 89:1295 + 0x05, 0x28, 0x1A, 0x0A, // 90:1320 + 0x05, 0x42, 0x0C, 0x04, // 91:1346 + 0x05, 0x4E, 0x0B, 0x04, // 92:1358 + 0x05, 0x59, 0x09, 0x04, // 93:1369 + 0x05, 0x62, 0x14, 0x08, // 94:1378 + 0x05, 0x76, 0x1B, 0x09, // 95:1398 + 0x05, 0x91, 0x07, 0x05, // 96:1425 + 0x05, 0x98, 0x17, 0x09, // 97:1432 + 0x05, 0xAF, 0x17, 0x09, // 98:1455 + 0x05, 0xC6, 0x14, 0x08, // 99:1478 + 0x05, 0xDA, 0x17, 0x09, // 100:1498 + 0x05, 0xF1, 0x17, 0x09, // 101:1521 + 0x06, 0x08, 0x0A, 0x04, // 102:1544 + 0x06, 0x12, 0x17, 0x09, // 103:1554 + 0x06, 0x29, 0x14, 0x09, // 104:1577 + 0x06, 0x3D, 0x05, 0x04, // 105:1597 + 0x06, 0x42, 0x06, 0x04, // 106:1602 + 0x06, 0x48, 0x17, 0x08, // 107:1608 + 0x06, 0x5F, 0x05, 0x04, // 108:1631 + 0x06, 0x64, 0x23, 0x0D, // 109:1636 + 0x06, 0x87, 0x14, 0x09, // 110:1671 + 0x06, 0x9B, 0x17, 0x09, // 111:1691 + 0x06, 0xB2, 0x17, 0x09, // 112:1714 + 0x06, 0xC9, 0x18, 0x09, // 113:1737 + 0x06, 0xE1, 0x0D, 0x05, // 114:1761 + 0x06, 0xEE, 0x14, 0x08, // 115:1774 + 0x07, 0x02, 0x0B, 0x04, // 116:1794 + 0x07, 0x0D, 0x14, 0x09, // 117:1805 + 0x07, 0x21, 0x13, 0x08, // 118:1825 + 0x07, 0x34, 0x1F, 0x0C, // 119:1844 + 0x07, 0x53, 0x14, 0x08, // 120:1875 + 0x07, 0x67, 0x13, 0x08, // 121:1895 + 0x07, 0x7A, 0x14, 0x08, // 122:1914 + 0x07, 0x8E, 0x0F, 0x05, // 123:1934 + 0x07, 0x9D, 0x06, 0x04, // 124:1949 + 0x07, 0xA3, 0x0E, 0x05, // 125:1955 + 0x07, 0xB1, 0x17, 0x09, // 126:1969 + 0xFF, 0xFF, 0x00, 0x00, // 127:65535 + 0xFF, 0xFF, 0x00, 0x10, // 128:65535 + 0xFF, 0xFF, 0x00, 0x10, // 129:65535 + 0xFF, 0xFF, 0x00, 0x10, // 130:65535 + 0xFF, 0xFF, 0x00, 0x10, // 131:65535 + 0xFF, 0xFF, 0x00, 0x10, // 132:65535 + 0xFF, 0xFF, 0x00, 0x10, // 133:65535 + 0xFF, 0xFF, 0x00, 0x10, // 134:65535 + 0xFF, 0xFF, 0x00, 0x10, // 135:65535 + 0xFF, 0xFF, 0x00, 0x10, // 136:65535 + 0xFF, 0xFF, 0x00, 0x10, // 137:65535 + 0xFF, 0xFF, 0x00, 0x10, // 138:65535 + 0xFF, 0xFF, 0x00, 0x10, // 139:65535 + 0xFF, 0xFF, 0x00, 0x10, // 140:65535 + 0xFF, 0xFF, 0x00, 0x10, // 141:65535 + 0xFF, 0xFF, 0x00, 0x10, // 142:65535 + 0xFF, 0xFF, 0x00, 0x10, // 143:65535 + 0xFF, 0xFF, 0x00, 0x10, // 144:65535 + 0xFF, 0xFF, 0x00, 0x10, // 145:65535 + 0xFF, 0xFF, 0x00, 0x10, // 146:65535 + 0xFF, 0xFF, 0x00, 0x10, // 147:65535 + 0xFF, 0xFF, 0x00, 0x10, // 148:65535 + 0xFF, 0xFF, 0x00, 0x10, // 149:65535 + 0xFF, 0xFF, 0x00, 0x10, // 150:65535 + 0xFF, 0xFF, 0x00, 0x10, // 151:65535 + 0xFF, 0xFF, 0x00, 0x10, // 152:65535 + 0xFF, 0xFF, 0x00, 0x10, // 153:65535 + 0xFF, 0xFF, 0x00, 0x10, // 154:65535 + 0xFF, 0xFF, 0x00, 0x10, // 155:65535 + 0xFF, 0xFF, 0x00, 0x10, // 156:65535 + 0xFF, 0xFF, 0x00, 0x10, // 157:65535 + 0xFF, 0xFF, 0x00, 0x10, // 158:65535 + 0xFF, 0xFF, 0x00, 0x10, // 159:65535 + 0xFF, 0xFF, 0x00, 0x04, // 160:65535 + 0x07, 0xC8, 0x09, 0x05, // 161:1992 + 0x07, 0xD1, 0x17, 0x09, // 162:2001 + 0x07, 0xE8, 0x17, 0x09, // 163:2024 + 0x07, 0xFF, 0x14, 0x09, // 164:2047 + 0x08, 0x13, 0x1A, 0x09, // 165:2067 + 0x08, 0x2D, 0x06, 0x04, // 166:2093 + 0x08, 0x33, 0x17, 0x09, // 167:2099 + 0x08, 0x4A, 0x07, 0x05, // 168:2122 + 0x08, 0x51, 0x23, 0x0C, // 169:2129 + 0x08, 0x74, 0x0E, 0x06, // 170:2164 + 0x08, 0x82, 0x14, 0x09, // 171:2178 + 0x08, 0x96, 0x17, 0x09, // 172:2198 + 0x08, 0xAD, 0x0B, 0x05, // 173:2221 + 0x08, 0xB8, 0x23, 0x0C, // 174:2232 + 0x08, 0xDB, 0x19, 0x09, // 175:2267 + 0x08, 0xF4, 0x0D, 0x06, // 176:2292 + 0x09, 0x01, 0x17, 0x09, // 177:2305 + 0x09, 0x18, 0x0E, 0x05, // 178:2328 + 0x09, 0x26, 0x0D, 0x05, // 179:2342 + 0x09, 0x33, 0x0A, 0x05, // 180:2355 + 0x09, 0x3D, 0x17, 0x09, // 181:2365 + 0x09, 0x54, 0x19, 0x09, // 182:2388 + 0x09, 0x6D, 0x08, 0x05, // 183:2413 + 0x09, 0x75, 0x0C, 0x05, // 184:2421 + 0x09, 0x81, 0x0B, 0x05, // 185:2433 + 0x09, 0x8C, 0x0D, 0x06, // 186:2444 + 0x09, 0x99, 0x17, 0x09, // 187:2457 + 0x09, 0xB0, 0x26, 0x0D, // 188:2480 + 0x09, 0xD6, 0x26, 0x0D, // 189:2518 + 0x09, 0xFC, 0x26, 0x0D, // 190:2556 + 0x0A, 0x22, 0x1A, 0x0A, // 191:2594 + 0x0A, 0x3C, 0x1D, 0x0B, // 192:2620 + 0x0A, 0x59, 0x1D, 0x0B, // 193:2649 + 0x0A, 0x76, 0x1D, 0x0B, // 194:2678 + 0x0A, 0x93, 0x1D, 0x0B, // 195:2707 + 0x0A, 0xB0, 0x1D, 0x0B, // 196:2736 + 0x0A, 0xCD, 0x1D, 0x0B, // 197:2765 + 0x0A, 0xEA, 0x2C, 0x10, // 198:2794 + 0x0B, 0x16, 0x20, 0x0C, // 199:2838 + 0x0B, 0x36, 0x1D, 0x0B, // 200:2870 + 0x0B, 0x53, 0x1D, 0x0B, // 201:2899 + 0x0B, 0x70, 0x1D, 0x0B, // 202:2928 + 0x0B, 0x8D, 0x1D, 0x0B, // 203:2957 + 0x0B, 0xAA, 0x05, 0x04, // 204:2986 + 0x0B, 0xAF, 0x07, 0x04, // 205:2991 + 0x0B, 0xB6, 0x0A, 0x04, // 206:2998 + 0x0B, 0xC0, 0x07, 0x04, // 207:3008 + 0x0B, 0xC7, 0x20, 0x0C, // 208:3015 + 0x0B, 0xE7, 0x1D, 0x0C, // 209:3047 + 0x0C, 0x04, 0x20, 0x0C, // 210:3076 + 0x0C, 0x24, 0x20, 0x0C, // 211:3108 + 0x0C, 0x44, 0x20, 0x0C, // 212:3140 + 0x0C, 0x64, 0x20, 0x0C, // 213:3172 + 0x0C, 0x84, 0x20, 0x0C, // 214:3204 + 0x0C, 0xA4, 0x17, 0x09, // 215:3236 + 0x0C, 0xBB, 0x20, 0x0C, // 216:3259 + 0x0C, 0xDB, 0x1D, 0x0C, // 217:3291 + 0x0C, 0xF8, 0x1D, 0x0C, // 218:3320 + 0x0D, 0x15, 0x1D, 0x0C, // 219:3349 + 0x0D, 0x32, 0x1D, 0x0C, // 220:3378 + 0x0D, 0x4F, 0x19, 0x0B, // 221:3407 + 0x0D, 0x68, 0x1D, 0x0B, // 222:3432 + 0x0D, 0x85, 0x17, 0x0A, // 223:3461 + 0x0D, 0x9C, 0x17, 0x09, // 224:3484 + 0x0D, 0xB3, 0x17, 0x09, // 225:3507 + 0x0D, 0xCA, 0x17, 0x09, // 226:3530 + 0x0D, 0xE1, 0x17, 0x09, // 227:3553 + 0x0D, 0xF8, 0x17, 0x09, // 228:3576 + 0x0E, 0x0F, 0x17, 0x09, // 229:3599 + 0x0E, 0x26, 0x29, 0x0E, // 230:3622 + 0x0E, 0x4F, 0x14, 0x08, // 231:3663 + 0x0E, 0x63, 0x17, 0x09, // 232:3683 + 0x0E, 0x7A, 0x17, 0x09, // 233:3706 + 0x0E, 0x91, 0x17, 0x09, // 234:3729 + 0x0E, 0xA8, 0x17, 0x09, // 235:3752 + 0x0E, 0xBF, 0x05, 0x04, // 236:3775 + 0x0E, 0xC4, 0x07, 0x04, // 237:3780 + 0x0E, 0xCB, 0x0A, 0x04, // 238:3787 + 0x0E, 0xD5, 0x07, 0x04, // 239:3797 + 0x0E, 0xDC, 0x17, 0x09, // 240:3804 + 0x0E, 0xF3, 0x14, 0x09, // 241:3827 + 0x0F, 0x07, 0x17, 0x09, // 242:3847 + 0x0F, 0x1E, 0x17, 0x09, // 243:3870 + 0x0F, 0x35, 0x17, 0x09, // 244:3893 + 0x0F, 0x4C, 0x17, 0x09, // 245:3916 + 0x0F, 0x63, 0x17, 0x09, // 246:3939 + 0x0F, 0x7A, 0x17, 0x09, // 247:3962 + 0x0F, 0x91, 0x17, 0x0A, // 248:3985 + 0x0F, 0xA8, 0x14, 0x09, // 249:4008 + 0x0F, 0xBC, 0x14, 0x09, // 250:4028 + 0x0F, 0xD0, 0x14, 0x09, // 251:4048 + 0x0F, 0xE4, 0x14, 0x09, // 252:4068 + 0x0F, 0xF8, 0x13, 0x08, // 253:4088 + 0x10, 0x0B, 0x17, 0x09, // 254:4107 + 0x10, 0x22, 0x13, 0x08, // 255:4130 + + // Font Data: + 0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x5F, // 33 + 0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78, // 34 + 0x80,0x08,0x00,0x80,0x78,0x00,0xC0,0x0F,0x00,0xB8,0x08,0x00,0x80,0x08,0x00,0x80,0x78,0x00,0xC0,0x0F,0x00,0xB8,0x08,0x00,0x80,0x08, // 35 + 0x00,0x00,0x00,0xE0,0x10,0x00,0x10,0x21,0x00,0x08,0x41,0x00,0xFC,0xFF,0x00,0x08,0x42,0x00,0x10,0x22,0x00,0x20,0x1C, // 36 + 0x00,0x00,0x00,0xF0,0x00,0x00,0x08,0x01,0x00,0x08,0x01,0x00,0x08,0x61,0x00,0xF0,0x18,0x00,0x00,0x06,0x00,0xC0,0x01,0x00,0x30,0x3C,0x00,0x08,0x42,0x00,0x00,0x42,0x00,0x00,0x42,0x00,0x00,0x3C, // 37 + 0x00,0x00,0x00,0x00,0x1C,0x00,0x70,0x22,0x00,0x88,0x41,0x00,0x08,0x43,0x00,0x88,0x44,0x00,0x70,0x28,0x00,0x00,0x10,0x00,0x00,0x28,0x00,0x00,0x44, // 38 + 0x00,0x00,0x00,0x78, // 39 + 0x00,0x00,0x00,0x80,0x3F,0x00,0x70,0xC0,0x01,0x08,0x00,0x02, // 40 + 0x00,0x00,0x00,0x08,0x00,0x02,0x70,0xC0,0x01,0x80,0x3F, // 41 + 0x10,0x00,0x00,0xD0,0x00,0x00,0x38,0x00,0x00,0xD0,0x00,0x00,0x10, // 42 + 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0xC0,0x1F,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02, // 43 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x01, // 44 + 0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08, // 45 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40, // 46 + 0x00,0x60,0x00,0x00,0x1E,0x00,0xE0,0x01,0x00,0x18, // 47 + 0x00,0x00,0x00,0xE0,0x1F,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0xE0,0x1F, // 48 + 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0x00,0x10,0x00,0x00,0xF8,0x7F, // 49 + 0x00,0x00,0x00,0x20,0x40,0x00,0x10,0x60,0x00,0x08,0x50,0x00,0x08,0x48,0x00,0x08,0x44,0x00,0x10,0x43,0x00,0xE0,0x40, // 50 + 0x00,0x00,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x88,0x41,0x00,0xF0,0x22,0x00,0x00,0x1C, // 51 + 0x00,0x0C,0x00,0x00,0x0A,0x00,0x00,0x09,0x00,0xC0,0x08,0x00,0x20,0x08,0x00,0x10,0x08,0x00,0xF8,0x7F,0x00,0x00,0x08, // 52 + 0x00,0x00,0x00,0xC0,0x11,0x00,0xB8,0x20,0x00,0x88,0x40,0x00,0x88,0x40,0x00,0x88,0x40,0x00,0x08,0x21,0x00,0x08,0x1E, // 53 + 0x00,0x00,0x00,0xE0,0x1F,0x00,0x10,0x21,0x00,0x88,0x40,0x00,0x88,0x40,0x00,0x88,0x40,0x00,0x10,0x21,0x00,0x20,0x1E, // 54 + 0x00,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x78,0x00,0x08,0x07,0x00,0xC8,0x00,0x00,0x28,0x00,0x00,0x18, // 55 + 0x00,0x00,0x00,0x60,0x1C,0x00,0x90,0x22,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x90,0x22,0x00,0x60,0x1C, // 56 + 0x00,0x00,0x00,0xE0,0x11,0x00,0x10,0x22,0x00,0x08,0x44,0x00,0x08,0x44,0x00,0x08,0x44,0x00,0x10,0x22,0x00,0xE0,0x1F, // 57 + 0x00,0x00,0x00,0x40,0x40, // 58 + 0x00,0x00,0x00,0x40,0xC0,0x01, // 59 + 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x05,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x40,0x10, // 60 + 0x00,0x00,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08, // 61 + 0x00,0x00,0x00,0x40,0x10,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x80,0x08,0x00,0x00,0x05,0x00,0x00,0x05,0x00,0x00,0x02, // 62 + 0x00,0x00,0x00,0x60,0x00,0x00,0x10,0x00,0x00,0x08,0x00,0x00,0x08,0x5C,0x00,0x08,0x02,0x00,0x10,0x01,0x00,0xE0, // 63 + 0x00,0x00,0x00,0x00,0x3F,0x00,0xC0,0x40,0x00,0x20,0x80,0x00,0x10,0x1E,0x01,0x10,0x21,0x01,0x88,0x40,0x02,0x48,0x40,0x02,0x48,0x40,0x02,0x48,0x20,0x02,0x88,0x7C,0x02,0xC8,0x43,0x02,0x10,0x40,0x02,0x10,0x20,0x01,0x60,0x10,0x01,0x80,0x8F, // 64 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x70,0x04,0x00,0x08,0x04,0x00,0x70,0x04,0x00,0x80,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 65 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x90,0x22,0x00,0x60,0x1C, // 66 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10, // 67 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 68 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x40, // 69 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08, // 70 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x42,0x00,0x08,0x42,0x00,0x10,0x22,0x00,0x20,0x12,0x00,0x00,0x0E, // 71 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0xF8,0x7F, // 72 + 0x00,0x00,0x00,0xF8,0x7F, // 73 + 0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0xF8,0x3F, // 74 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x00,0x01,0x00,0x80,0x03,0x00,0x40,0x04,0x00,0x20,0x18,0x00,0x10,0x20,0x00,0x08,0x40, // 75 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40, // 76 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x30,0x00,0x00,0xC0,0x00,0x00,0x00,0x03,0x00,0x00,0x1C,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x00,0x03,0x00,0xC0,0x00,0x00,0x30,0x00,0x00,0xF8,0x7F, // 77 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x10,0x00,0x00,0x60,0x00,0x00,0x80,0x00,0x00,0x00,0x03,0x00,0x00,0x04,0x00,0x00,0x18,0x00,0x00,0x20,0x00,0xF8,0x7F, // 78 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 79 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x10,0x01,0x00,0xE0, // 80 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x08,0x50,0x00,0x08,0x50,0x00,0x10,0x20,0x00,0x20,0x70,0x00,0xC0,0x4F, // 81 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x02,0x00,0x08,0x06,0x00,0x08,0x1A,0x00,0x10,0x21,0x00,0xE0,0x40, // 82 + 0x00,0x00,0x00,0x60,0x10,0x00,0x90,0x20,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x42,0x00,0x08,0x42,0x00,0x10,0x22,0x00,0x20,0x1C, // 83 + 0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0xF8,0x7F,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08, // 84 + 0x00,0x00,0x00,0xF8,0x1F,0x00,0x00,0x20,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xF8,0x1F, // 85 + 0x00,0x00,0x00,0x18,0x00,0x00,0xE0,0x00,0x00,0x00,0x07,0x00,0x00,0x18,0x00,0x00,0x60,0x00,0x00,0x18,0x00,0x00,0x07,0x00,0xE0,0x00,0x00,0x18, // 86 + 0x18,0x00,0x00,0xE0,0x01,0x00,0x00,0x1E,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x03,0x00,0x70,0x00,0x00,0x08,0x00,0x00,0x70,0x00,0x00,0x80,0x03,0x00,0x00,0x1C,0x00,0x00,0x60,0x00,0x00,0x1E,0x00,0xE0,0x01,0x00,0x18, // 87 + 0x00,0x40,0x00,0x08,0x20,0x00,0x10,0x10,0x00,0x60,0x0C,0x00,0x80,0x02,0x00,0x00,0x01,0x00,0x80,0x02,0x00,0x60,0x0C,0x00,0x10,0x10,0x00,0x08,0x20,0x00,0x00,0x40, // 88 + 0x08,0x00,0x00,0x30,0x00,0x00,0x40,0x00,0x00,0x80,0x01,0x00,0x00,0x7E,0x00,0x80,0x01,0x00,0x40,0x00,0x00,0x30,0x00,0x00,0x08, // 89 + 0x00,0x40,0x00,0x08,0x60,0x00,0x08,0x58,0x00,0x08,0x44,0x00,0x08,0x43,0x00,0x88,0x40,0x00,0x68,0x40,0x00,0x18,0x40,0x00,0x08,0x40, // 90 + 0x00,0x00,0x00,0xF8,0xFF,0x03,0x08,0x00,0x02,0x08,0x00,0x02, // 91 + 0x18,0x00,0x00,0xE0,0x01,0x00,0x00,0x1E,0x00,0x00,0x60, // 92 + 0x08,0x00,0x02,0x08,0x00,0x02,0xF8,0xFF,0x03, // 93 + 0x00,0x01,0x00,0xC0,0x00,0x00,0x30,0x00,0x00,0x08,0x00,0x00,0x30,0x00,0x00,0xC0,0x00,0x00,0x00,0x01, // 94 + 0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02, // 95 + 0x00,0x00,0x00,0x08,0x00,0x00,0x10, // 96 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x40,0x42,0x00,0x40,0x22,0x00,0x80,0x7F, // 97 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 98 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20, // 99 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0xF8,0x7F, // 100 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x24,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x80,0x24,0x00,0x00,0x17, // 101 + 0x40,0x00,0x00,0xF0,0x7F,0x00,0x48,0x00,0x00,0x48, // 102 + 0x00,0x00,0x00,0x00,0x1F,0x01,0x80,0x20,0x02,0x40,0x40,0x02,0x40,0x40,0x02,0x40,0x40,0x02,0x80,0x20,0x01,0xC0,0xFF, // 103 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x80,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x80,0x7F, // 104 + 0x00,0x00,0x00,0xC8,0x7F, // 105 + 0x00,0x00,0x02,0xC8,0xFF,0x01, // 106 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x00,0x08,0x00,0x00,0x04,0x00,0x00,0x06,0x00,0x00,0x19,0x00,0x80,0x20,0x00,0x40,0x40, // 107 + 0x00,0x00,0x00,0xF8,0x7F, // 108 + 0x00,0x00,0x00,0xC0,0x7F,0x00,0x80,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x80,0x7F,0x00,0x80,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x80,0x7F, // 109 + 0x00,0x00,0x00,0xC0,0x7F,0x00,0x80,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x80,0x7F, // 110 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 111 + 0x00,0x00,0x00,0xC0,0xFF,0x03,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 112 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0xC0,0xFF,0x03, // 113 + 0x00,0x00,0x00,0xC0,0x7F,0x00,0x80,0x00,0x00,0x40,0x00,0x00,0x40, // 114 + 0x00,0x00,0x00,0x80,0x23,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x80,0x38, // 115 + 0x40,0x00,0x00,0xF0,0x7F,0x00,0x40,0x40,0x00,0x40,0x40, // 116 + 0x00,0x00,0x00,0xC0,0x3F,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xC0,0x7F, // 117 + 0xC0,0x00,0x00,0x00,0x03,0x00,0x00,0x1C,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x00,0x03,0x00,0xC0, // 118 + 0xC0,0x00,0x00,0x00,0x1F,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x00,0x03,0x00,0xC0,0x00,0x00,0x00,0x03,0x00,0x00,0x1C,0x00,0x00,0x60,0x00,0x00,0x1F,0x00,0xC0, // 119 + 0x40,0x40,0x00,0x80,0x20,0x00,0x00,0x1B,0x00,0x00,0x04,0x00,0x00,0x1B,0x00,0x80,0x20,0x00,0x40,0x40, // 120 + 0xC0,0x01,0x00,0x00,0x06,0x02,0x00,0x38,0x02,0x00,0xE0,0x01,0x00,0x38,0x00,0x00,0x07,0x00,0xC0, // 121 + 0x40,0x40,0x00,0x40,0x60,0x00,0x40,0x58,0x00,0x40,0x44,0x00,0x40,0x43,0x00,0xC0,0x40,0x00,0x40,0x40, // 122 + 0x00,0x04,0x00,0x00,0x04,0x00,0xF0,0xFB,0x01,0x08,0x00,0x02,0x08,0x00,0x02, // 123 + 0x00,0x00,0x00,0xF8,0xFF,0x03, // 124 + 0x08,0x00,0x02,0x08,0x00,0x02,0xF0,0xFB,0x01,0x00,0x04,0x00,0x00,0x04, // 125 + 0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x01, // 126 + 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xFF,0x03, // 161 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x03,0x40,0xF0,0x00,0x40,0x4E,0x00,0xC0,0x41,0x00,0xB8,0x20,0x00,0x00,0x11, // 162 + 0x00,0x41,0x00,0xE0,0x31,0x00,0x10,0x2F,0x00,0x08,0x21,0x00,0x08,0x21,0x00,0x08,0x40,0x00,0x10,0x40,0x00,0x20,0x20, // 163 + 0x00,0x00,0x00,0x40,0x0B,0x00,0x80,0x04,0x00,0x40,0x08,0x00,0x40,0x08,0x00,0x80,0x04,0x00,0x40,0x0B, // 164 + 0x08,0x0A,0x00,0x10,0x0A,0x00,0x60,0x0A,0x00,0x80,0x0B,0x00,0x00,0x7E,0x00,0x80,0x0B,0x00,0x60,0x0A,0x00,0x10,0x0A,0x00,0x08,0x0A, // 165 + 0x00,0x00,0x00,0xF8,0xF1,0x03, // 166 + 0x00,0x86,0x00,0x70,0x09,0x01,0xC8,0x10,0x02,0x88,0x10,0x02,0x08,0x21,0x02,0x08,0x61,0x02,0x30,0xD2,0x01,0x00,0x0C, // 167 + 0x08,0x00,0x00,0x00,0x00,0x00,0x08, // 168 + 0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0xC8,0x47,0x00,0x28,0x48,0x00,0x28,0x48,0x00,0x28,0x48,0x00,0x28,0x48,0x00,0x48,0x44,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 169 + 0xD0,0x00,0x00,0x48,0x01,0x00,0x28,0x01,0x00,0x28,0x01,0x00,0xF0,0x01, // 170 + 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x1B,0x00,0x80,0x20,0x00,0x00,0x04,0x00,0x00,0x1B,0x00,0x80,0x20, // 171 + 0x00,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x80,0x0F, // 172 + 0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08, // 173 + 0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0xE8,0x4F,0x00,0x28,0x41,0x00,0x28,0x41,0x00,0x28,0x43,0x00,0x28,0x45,0x00,0xC8,0x48,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 174 + 0x04,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x04, // 175 + 0x00,0x00,0x00,0x30,0x00,0x00,0x48,0x00,0x00,0x48,0x00,0x00,0x30, // 176 + 0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x41,0x00,0x00,0x41,0x00,0xE0,0x4F,0x00,0x00,0x41,0x00,0x00,0x41,0x00,0x00,0x41, // 177 + 0x10,0x01,0x00,0x88,0x01,0x00,0x48,0x01,0x00,0x48,0x01,0x00,0x30,0x01, // 178 + 0x90,0x00,0x00,0x08,0x01,0x00,0x08,0x01,0x00,0x28,0x01,0x00,0xD8, // 179 + 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x08, // 180 + 0x00,0x00,0x00,0xC0,0xFF,0x03,0x00,0x20,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xC0,0x7F, // 181 + 0xF0,0x00,0x00,0xF8,0x00,0x00,0xF8,0x01,0x00,0xF8,0x01,0x00,0xF8,0xFF,0x03,0x08,0x00,0x00,0x08,0x00,0x00,0xF8,0xFF,0x03,0x08, // 182 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02, // 183 + 0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x80,0x02,0x00,0x00,0x03, // 184 + 0x00,0x00,0x00,0x10,0x00,0x00,0x08,0x00,0x00,0xF8,0x01, // 185 + 0xF0,0x00,0x00,0x08,0x01,0x00,0x08,0x01,0x00,0x08,0x01,0x00,0xF0, // 186 + 0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x20,0x00,0x00,0x1B,0x00,0x00,0x04,0x00,0x80,0x20,0x00,0x00,0x1B,0x00,0x00,0x04, // 187 + 0x00,0x00,0x00,0x10,0x00,0x00,0x08,0x40,0x00,0xF8,0x21,0x00,0x00,0x10,0x00,0x00,0x0C,0x00,0x00,0x02,0x00,0x80,0x01,0x00,0x40,0x30,0x00,0x30,0x28,0x00,0x08,0x24,0x00,0x00,0x7E,0x00,0x00,0x20, // 188 + 0x00,0x00,0x00,0x10,0x00,0x00,0x08,0x40,0x00,0xF8,0x31,0x00,0x00,0x08,0x00,0x00,0x04,0x00,0x00,0x03,0x00,0x80,0x00,0x00,0x60,0x44,0x00,0x10,0x62,0x00,0x08,0x52,0x00,0x00,0x52,0x00,0x00,0x4C, // 189 + 0x90,0x00,0x00,0x08,0x01,0x00,0x08,0x41,0x00,0x28,0x21,0x00,0xD8,0x18,0x00,0x00,0x04,0x00,0x00,0x03,0x00,0x80,0x00,0x00,0x40,0x30,0x00,0x30,0x28,0x00,0x08,0x24,0x00,0x00,0x7E,0x00,0x00,0x20, // 190 + 0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x10,0x01,0x00,0x08,0x02,0x40,0x07,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x01,0x00,0xC0, // 191 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x71,0x04,0x00,0x0A,0x04,0x00,0x70,0x04,0x00,0x80,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 192 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x70,0x04,0x00,0x0A,0x04,0x00,0x71,0x04,0x00,0x80,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 193 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x72,0x04,0x00,0x09,0x04,0x00,0x71,0x04,0x00,0x82,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 194 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x72,0x04,0x00,0x09,0x04,0x00,0x72,0x04,0x00,0x81,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 195 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x72,0x04,0x00,0x08,0x04,0x00,0x72,0x04,0x00,0x80,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 196 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x1C,0x00,0x80,0x07,0x00,0x7E,0x04,0x00,0x0A,0x04,0x00,0x7E,0x04,0x00,0x80,0x07,0x00,0x00,0x1C,0x00,0x00,0x60, // 197 + 0x00,0x60,0x00,0x00,0x18,0x00,0x00,0x06,0x00,0x80,0x05,0x00,0x60,0x04,0x00,0x18,0x04,0x00,0x08,0x04,0x00,0x08,0x04,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41, // 198 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x08,0x40,0x02,0x08,0xC0,0x02,0x08,0x40,0x03,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10, // 199 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x09,0x41,0x00,0x0A,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x40, // 200 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x0A,0x41,0x00,0x09,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x40, // 201 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x0A,0x41,0x00,0x09,0x41,0x00,0x09,0x41,0x00,0x0A,0x41,0x00,0x08,0x41,0x00,0x08,0x40, // 202 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x0A,0x41,0x00,0x08,0x41,0x00,0x0A,0x41,0x00,0x08,0x41,0x00,0x08,0x41,0x00,0x08,0x40, // 203 + 0x01,0x00,0x00,0xFA,0x7F, // 204 + 0x00,0x00,0x00,0xFA,0x7F,0x00,0x01, // 205 + 0x02,0x00,0x00,0xF9,0x7F,0x00,0x01,0x00,0x00,0x02, // 206 + 0x02,0x00,0x00,0xF8,0x7F,0x00,0x02, // 207 + 0x00,0x02,0x00,0xF8,0x7F,0x00,0x08,0x42,0x00,0x08,0x42,0x00,0x08,0x42,0x00,0x08,0x42,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 208 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x10,0x00,0x00,0x60,0x00,0x00,0x82,0x00,0x00,0x01,0x03,0x00,0x02,0x04,0x00,0x01,0x18,0x00,0x00,0x20,0x00,0xF8,0x7F, // 209 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x09,0x40,0x00,0x0A,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 210 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x0A,0x40,0x00,0x09,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 211 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x0A,0x40,0x00,0x09,0x40,0x00,0x09,0x40,0x00,0x0A,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 212 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x0A,0x40,0x00,0x09,0x40,0x00,0x0A,0x40,0x00,0x09,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 213 + 0x00,0x00,0x00,0xC0,0x0F,0x00,0x20,0x10,0x00,0x10,0x20,0x00,0x08,0x40,0x00,0x0A,0x40,0x00,0x08,0x40,0x00,0x0A,0x40,0x00,0x10,0x20,0x00,0x20,0x10,0x00,0xC0,0x0F, // 214 + 0x00,0x00,0x00,0x40,0x10,0x00,0x80,0x08,0x00,0x00,0x05,0x00,0x00,0x07,0x00,0x00,0x05,0x00,0x80,0x08,0x00,0x40,0x10, // 215 + 0x00,0x00,0x00,0xC0,0x4F,0x00,0x20,0x30,0x00,0x10,0x30,0x00,0x08,0x4C,0x00,0x08,0x42,0x00,0x08,0x41,0x00,0xC8,0x40,0x00,0x30,0x20,0x00,0x30,0x10,0x00,0xC8,0x0F, // 216 + 0x00,0x00,0x00,0xF8,0x1F,0x00,0x00,0x20,0x00,0x00,0x40,0x00,0x01,0x40,0x00,0x02,0x40,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xF8,0x1F, // 217 + 0x00,0x00,0x00,0xF8,0x1F,0x00,0x00,0x20,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x02,0x40,0x00,0x01,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xF8,0x1F, // 218 + 0x00,0x00,0x00,0xF8,0x1F,0x00,0x00,0x20,0x00,0x00,0x40,0x00,0x02,0x40,0x00,0x01,0x40,0x00,0x01,0x40,0x00,0x02,0x40,0x00,0x00,0x20,0x00,0xF8,0x1F, // 219 + 0x00,0x00,0x00,0xF8,0x1F,0x00,0x00,0x20,0x00,0x00,0x40,0x00,0x02,0x40,0x00,0x00,0x40,0x00,0x02,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xF8,0x1F, // 220 + 0x08,0x00,0x00,0x30,0x00,0x00,0x40,0x00,0x00,0x80,0x01,0x00,0x02,0x7E,0x00,0x81,0x01,0x00,0x40,0x00,0x00,0x30,0x00,0x00,0x08, // 221 + 0x00,0x00,0x00,0xF8,0x7F,0x00,0x20,0x10,0x00,0x20,0x10,0x00,0x20,0x10,0x00,0x20,0x10,0x00,0x20,0x10,0x00,0x20,0x10,0x00,0x40,0x08,0x00,0x80,0x07, // 222 + 0x00,0x00,0x00,0xE0,0x7F,0x00,0x10,0x00,0x00,0x08,0x20,0x00,0x88,0x43,0x00,0x70,0x42,0x00,0x00,0x44,0x00,0x00,0x38, // 223 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x40,0x44,0x00,0x48,0x44,0x00,0x50,0x42,0x00,0x40,0x22,0x00,0x80,0x7F, // 224 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x40,0x44,0x00,0x50,0x44,0x00,0x48,0x42,0x00,0x40,0x22,0x00,0x80,0x7F, // 225 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x50,0x44,0x00,0x48,0x44,0x00,0x48,0x42,0x00,0x50,0x22,0x00,0x80,0x7F, // 226 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x50,0x44,0x00,0x48,0x44,0x00,0x50,0x42,0x00,0x48,0x22,0x00,0x80,0x7F, // 227 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x50,0x44,0x00,0x40,0x44,0x00,0x50,0x42,0x00,0x40,0x22,0x00,0x80,0x7F, // 228 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x5C,0x44,0x00,0x54,0x44,0x00,0x5C,0x42,0x00,0x40,0x22,0x00,0x80,0x7F, // 229 + 0x00,0x00,0x00,0x00,0x39,0x00,0x80,0x44,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x40,0x42,0x00,0x40,0x22,0x00,0x80,0x3F,0x00,0x80,0x24,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x40,0x44,0x00,0x80,0x24,0x00,0x00,0x17, // 230 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x40,0x40,0x02,0x40,0xC0,0x02,0x40,0x40,0x03,0x80,0x20, // 231 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x24,0x00,0x48,0x44,0x00,0x50,0x44,0x00,0x40,0x44,0x00,0x80,0x24,0x00,0x00,0x17, // 232 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x24,0x00,0x40,0x44,0x00,0x50,0x44,0x00,0x48,0x44,0x00,0x80,0x24,0x00,0x00,0x17, // 233 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x24,0x00,0x50,0x44,0x00,0x48,0x44,0x00,0x48,0x44,0x00,0x90,0x24,0x00,0x00,0x17, // 234 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x24,0x00,0x50,0x44,0x00,0x40,0x44,0x00,0x50,0x44,0x00,0x80,0x24,0x00,0x00,0x17, // 235 + 0x08,0x00,0x00,0xD0,0x7F, // 236 + 0x00,0x00,0x00,0xD0,0x7F,0x00,0x08, // 237 + 0x10,0x00,0x00,0xC8,0x7F,0x00,0x08,0x00,0x00,0x10, // 238 + 0x10,0x00,0x00,0xC0,0x7F,0x00,0x10, // 239 + 0x00,0x00,0x00,0x00,0x1F,0x00,0xA0,0x20,0x00,0x68,0x40,0x00,0x58,0x40,0x00,0x70,0x40,0x00,0xE8,0x20,0x00,0x00,0x1F, // 240 + 0x00,0x00,0x00,0xC0,0x7F,0x00,0x90,0x00,0x00,0x48,0x00,0x00,0x50,0x00,0x00,0x48,0x00,0x00,0x80,0x7F, // 241 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x48,0x40,0x00,0x50,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 242 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x40,0x40,0x00,0x50,0x40,0x00,0x48,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 243 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x50,0x40,0x00,0x48,0x40,0x00,0x48,0x40,0x00,0x90,0x20,0x00,0x00,0x1F, // 244 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x50,0x40,0x00,0x48,0x40,0x00,0x50,0x40,0x00,0x88,0x20,0x00,0x00,0x1F, // 245 + 0x00,0x00,0x00,0x00,0x1F,0x00,0x80,0x20,0x00,0x50,0x40,0x00,0x40,0x40,0x00,0x50,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 246 + 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x80,0x0A,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x02, // 247 + 0x00,0x00,0x00,0x00,0x5F,0x00,0x80,0x30,0x00,0x40,0x48,0x00,0x40,0x44,0x00,0x40,0x42,0x00,0x80,0x21,0x00,0x40,0x1F, // 248 + 0x00,0x00,0x00,0xC0,0x3F,0x00,0x00,0x40,0x00,0x08,0x40,0x00,0x10,0x40,0x00,0x00,0x20,0x00,0xC0,0x7F, // 249 + 0x00,0x00,0x00,0xC0,0x3F,0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x10,0x40,0x00,0x08,0x20,0x00,0xC0,0x7F, // 250 + 0x00,0x00,0x00,0xC0,0x3F,0x00,0x10,0x40,0x00,0x08,0x40,0x00,0x08,0x40,0x00,0x10,0x20,0x00,0xC0,0x7F, // 251 + 0x00,0x00,0x00,0xD0,0x3F,0x00,0x00,0x40,0x00,0x10,0x40,0x00,0x00,0x40,0x00,0x00,0x20,0x00,0xC0,0x7F, // 252 + 0xC0,0x01,0x00,0x00,0x06,0x02,0x00,0x38,0x02,0x10,0xE0,0x01,0x08,0x38,0x00,0x00,0x07,0x00,0xC0, // 253 + 0x00,0x00,0x00,0xF8,0xFF,0x03,0x80,0x20,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x40,0x40,0x00,0x80,0x20,0x00,0x00,0x1F, // 254 + 0xC0,0x01,0x00,0x00,0x06,0x02,0x10,0x38,0x02,0x00,0xE0,0x01,0x10,0x38,0x00,0x00,0x07,0x00,0xC0 // 255 +}; +const char ArialMT_Plain_24[] PROGMEM = { + 0x18, // Width: 24 + 0x1C, // Height: 28 + 0x20, // First Char: 32 + 0xE0, // Numbers of Chars: 224 + + // Jump Table: + 0xFF, 0xFF, 0x00, 0x07, // 32:65535 + 0x00, 0x00, 0x13, 0x07, // 33:0 + 0x00, 0x13, 0x1A, 0x09, // 34:19 + 0x00, 0x2D, 0x33, 0x0D, // 35:45 + 0x00, 0x60, 0x2F, 0x0D, // 36:96 + 0x00, 0x8F, 0x4F, 0x15, // 37:143 + 0x00, 0xDE, 0x3B, 0x10, // 38:222 + 0x01, 0x19, 0x0A, 0x05, // 39:281 + 0x01, 0x23, 0x1C, 0x08, // 40:291 + 0x01, 0x3F, 0x1B, 0x08, // 41:319 + 0x01, 0x5A, 0x21, 0x09, // 42:346 + 0x01, 0x7B, 0x32, 0x0E, // 43:379 + 0x01, 0xAD, 0x10, 0x07, // 44:429 + 0x01, 0xBD, 0x1B, 0x08, // 45:445 + 0x01, 0xD8, 0x0F, 0x07, // 46:472 + 0x01, 0xE7, 0x19, 0x07, // 47:487 + 0x02, 0x00, 0x2F, 0x0D, // 48:512 + 0x02, 0x2F, 0x23, 0x0D, // 49:559 + 0x02, 0x52, 0x2F, 0x0D, // 50:594 + 0x02, 0x81, 0x2F, 0x0D, // 51:641 + 0x02, 0xB0, 0x2F, 0x0D, // 52:688 + 0x02, 0xDF, 0x2F, 0x0D, // 53:735 + 0x03, 0x0E, 0x2F, 0x0D, // 54:782 + 0x03, 0x3D, 0x2D, 0x0D, // 55:829 + 0x03, 0x6A, 0x2F, 0x0D, // 56:874 + 0x03, 0x99, 0x2F, 0x0D, // 57:921 + 0x03, 0xC8, 0x0F, 0x07, // 58:968 + 0x03, 0xD7, 0x10, 0x07, // 59:983 + 0x03, 0xE7, 0x2F, 0x0E, // 60:999 + 0x04, 0x16, 0x2F, 0x0E, // 61:1046 + 0x04, 0x45, 0x2E, 0x0E, // 62:1093 + 0x04, 0x73, 0x2E, 0x0D, // 63:1139 + 0x04, 0xA1, 0x5B, 0x18, // 64:1185 + 0x04, 0xFC, 0x3B, 0x10, // 65:1276 + 0x05, 0x37, 0x3B, 0x10, // 66:1335 + 0x05, 0x72, 0x3F, 0x11, // 67:1394 + 0x05, 0xB1, 0x3F, 0x11, // 68:1457 + 0x05, 0xF0, 0x3B, 0x10, // 69:1520 + 0x06, 0x2B, 0x35, 0x0F, // 70:1579 + 0x06, 0x60, 0x43, 0x13, // 71:1632 + 0x06, 0xA3, 0x3B, 0x11, // 72:1699 + 0x06, 0xDE, 0x0F, 0x07, // 73:1758 + 0x06, 0xED, 0x27, 0x0C, // 74:1773 + 0x07, 0x14, 0x3F, 0x10, // 75:1812 + 0x07, 0x53, 0x2F, 0x0D, // 76:1875 + 0x07, 0x82, 0x43, 0x14, // 77:1922 + 0x07, 0xC5, 0x3B, 0x11, // 78:1989 + 0x08, 0x00, 0x47, 0x13, // 79:2048 + 0x08, 0x47, 0x3A, 0x10, // 80:2119 + 0x08, 0x81, 0x47, 0x13, // 81:2177 + 0x08, 0xC8, 0x3F, 0x11, // 82:2248 + 0x09, 0x07, 0x3B, 0x10, // 83:2311 + 0x09, 0x42, 0x35, 0x0F, // 84:2370 + 0x09, 0x77, 0x3B, 0x11, // 85:2423 + 0x09, 0xB2, 0x39, 0x10, // 86:2482 + 0x09, 0xEB, 0x59, 0x17, // 87:2539 + 0x0A, 0x44, 0x3B, 0x10, // 88:2628 + 0x0A, 0x7F, 0x3D, 0x10, // 89:2687 + 0x0A, 0xBC, 0x37, 0x0F, // 90:2748 + 0x0A, 0xF3, 0x14, 0x07, // 91:2803 + 0x0B, 0x07, 0x1B, 0x07, // 92:2823 + 0x0B, 0x22, 0x18, 0x07, // 93:2850 + 0x0B, 0x3A, 0x2A, 0x0B, // 94:2874 + 0x0B, 0x64, 0x34, 0x0D, // 95:2916 + 0x0B, 0x98, 0x11, 0x08, // 96:2968 + 0x0B, 0xA9, 0x2F, 0x0D, // 97:2985 + 0x0B, 0xD8, 0x33, 0x0D, // 98:3032 + 0x0C, 0x0B, 0x2B, 0x0C, // 99:3083 + 0x0C, 0x36, 0x2F, 0x0D, // 100:3126 + 0x0C, 0x65, 0x2F, 0x0D, // 101:3173 + 0x0C, 0x94, 0x1A, 0x07, // 102:3220 + 0x0C, 0xAE, 0x2F, 0x0D, // 103:3246 + 0x0C, 0xDD, 0x2F, 0x0D, // 104:3293 + 0x0D, 0x0C, 0x0F, 0x05, // 105:3340 + 0x0D, 0x1B, 0x10, 0x05, // 106:3355 + 0x0D, 0x2B, 0x2F, 0x0C, // 107:3371 + 0x0D, 0x5A, 0x0F, 0x05, // 108:3418 + 0x0D, 0x69, 0x47, 0x14, // 109:3433 + 0x0D, 0xB0, 0x2F, 0x0D, // 110:3504 + 0x0D, 0xDF, 0x2F, 0x0D, // 111:3551 + 0x0E, 0x0E, 0x33, 0x0D, // 112:3598 + 0x0E, 0x41, 0x30, 0x0D, // 113:3649 + 0x0E, 0x71, 0x1E, 0x08, // 114:3697 + 0x0E, 0x8F, 0x2B, 0x0C, // 115:3727 + 0x0E, 0xBA, 0x1B, 0x07, // 116:3770 + 0x0E, 0xD5, 0x2F, 0x0D, // 117:3797 + 0x0F, 0x04, 0x2A, 0x0C, // 118:3844 + 0x0F, 0x2E, 0x42, 0x11, // 119:3886 + 0x0F, 0x70, 0x2B, 0x0C, // 120:3952 + 0x0F, 0x9B, 0x2A, 0x0C, // 121:3995 + 0x0F, 0xC5, 0x2B, 0x0C, // 122:4037 + 0x0F, 0xF0, 0x1C, 0x08, // 123:4080 + 0x10, 0x0C, 0x10, 0x06, // 124:4108 + 0x10, 0x1C, 0x1B, 0x08, // 125:4124 + 0x10, 0x37, 0x32, 0x0E, // 126:4151 + 0xFF, 0xFF, 0x00, 0x00, // 127:65535 + 0xFF, 0xFF, 0x00, 0x18, // 128:65535 + 0xFF, 0xFF, 0x00, 0x18, // 129:65535 + 0xFF, 0xFF, 0x00, 0x18, // 130:65535 + 0xFF, 0xFF, 0x00, 0x18, // 131:65535 + 0xFF, 0xFF, 0x00, 0x18, // 132:65535 + 0xFF, 0xFF, 0x00, 0x18, // 133:65535 + 0xFF, 0xFF, 0x00, 0x18, // 134:65535 + 0xFF, 0xFF, 0x00, 0x18, // 135:65535 + 0xFF, 0xFF, 0x00, 0x18, // 136:65535 + 0xFF, 0xFF, 0x00, 0x18, // 137:65535 + 0xFF, 0xFF, 0x00, 0x18, // 138:65535 + 0xFF, 0xFF, 0x00, 0x18, // 139:65535 + 0xFF, 0xFF, 0x00, 0x18, // 140:65535 + 0xFF, 0xFF, 0x00, 0x18, // 141:65535 + 0xFF, 0xFF, 0x00, 0x18, // 142:65535 + 0xFF, 0xFF, 0x00, 0x18, // 143:65535 + 0xFF, 0xFF, 0x00, 0x18, // 144:65535 + 0xFF, 0xFF, 0x00, 0x18, // 145:65535 + 0xFF, 0xFF, 0x00, 0x18, // 146:65535 + 0xFF, 0xFF, 0x00, 0x18, // 147:65535 + 0xFF, 0xFF, 0x00, 0x18, // 148:65535 + 0xFF, 0xFF, 0x00, 0x18, // 149:65535 + 0xFF, 0xFF, 0x00, 0x18, // 150:65535 + 0xFF, 0xFF, 0x00, 0x18, // 151:65535 + 0xFF, 0xFF, 0x00, 0x18, // 152:65535 + 0xFF, 0xFF, 0x00, 0x18, // 153:65535 + 0xFF, 0xFF, 0x00, 0x18, // 154:65535 + 0xFF, 0xFF, 0x00, 0x18, // 155:65535 + 0xFF, 0xFF, 0x00, 0x18, // 156:65535 + 0xFF, 0xFF, 0x00, 0x18, // 157:65535 + 0xFF, 0xFF, 0x00, 0x18, // 158:65535 + 0xFF, 0xFF, 0x00, 0x18, // 159:65535 + 0xFF, 0xFF, 0x00, 0x07, // 160:65535 + 0x10, 0x69, 0x14, 0x08, // 161:4201 + 0x10, 0x7D, 0x2B, 0x0D, // 162:4221 + 0x10, 0xA8, 0x2F, 0x0D, // 163:4264 + 0x10, 0xD7, 0x33, 0x0D, // 164:4311 + 0x11, 0x0A, 0x31, 0x0D, // 165:4362 + 0x11, 0x3B, 0x10, 0x06, // 166:4411 + 0x11, 0x4B, 0x2F, 0x0D, // 167:4427 + 0x11, 0x7A, 0x19, 0x08, // 168:4474 + 0x11, 0x93, 0x46, 0x12, // 169:4499 + 0x11, 0xD9, 0x1A, 0x09, // 170:4569 + 0x11, 0xF3, 0x27, 0x0D, // 171:4595 + 0x12, 0x1A, 0x2F, 0x0E, // 172:4634 + 0x12, 0x49, 0x1B, 0x08, // 173:4681 + 0x12, 0x64, 0x46, 0x12, // 174:4708 + 0x12, 0xAA, 0x31, 0x0D, // 175:4778 + 0x12, 0xDB, 0x1E, 0x0A, // 176:4827 + 0x12, 0xF9, 0x33, 0x0D, // 177:4857 + 0x13, 0x2C, 0x1A, 0x08, // 178:4908 + 0x13, 0x46, 0x1A, 0x08, // 179:4934 + 0x13, 0x60, 0x19, 0x08, // 180:4960 + 0x13, 0x79, 0x2F, 0x0E, // 181:4985 + 0x13, 0xA8, 0x31, 0x0D, // 182:5032 + 0x13, 0xD9, 0x12, 0x08, // 183:5081 + 0x13, 0xEB, 0x18, 0x08, // 184:5099 + 0x14, 0x03, 0x16, 0x08, // 185:5123 + 0x14, 0x19, 0x1E, 0x09, // 186:5145 + 0x14, 0x37, 0x2E, 0x0D, // 187:5175 + 0x14, 0x65, 0x4F, 0x14, // 188:5221 + 0x14, 0xB4, 0x4B, 0x14, // 189:5300 + 0x14, 0xFF, 0x4B, 0x14, // 190:5375 + 0x15, 0x4A, 0x33, 0x0F, // 191:5450 + 0x15, 0x7D, 0x3B, 0x10, // 192:5501 + 0x15, 0xB8, 0x3B, 0x10, // 193:5560 + 0x15, 0xF3, 0x3B, 0x10, // 194:5619 + 0x16, 0x2E, 0x3B, 0x10, // 195:5678 + 0x16, 0x69, 0x3B, 0x10, // 196:5737 + 0x16, 0xA4, 0x3B, 0x10, // 197:5796 + 0x16, 0xDF, 0x5B, 0x18, // 198:5855 + 0x17, 0x3A, 0x3F, 0x11, // 199:5946 + 0x17, 0x79, 0x3B, 0x10, // 200:6009 + 0x17, 0xB4, 0x3B, 0x10, // 201:6068 + 0x17, 0xEF, 0x3B, 0x10, // 202:6127 + 0x18, 0x2A, 0x3B, 0x10, // 203:6186 + 0x18, 0x65, 0x11, 0x07, // 204:6245 + 0x18, 0x76, 0x11, 0x07, // 205:6262 + 0x18, 0x87, 0x15, 0x07, // 206:6279 + 0x18, 0x9C, 0x15, 0x07, // 207:6300 + 0x18, 0xB1, 0x3F, 0x11, // 208:6321 + 0x18, 0xF0, 0x3B, 0x11, // 209:6384 + 0x19, 0x2B, 0x47, 0x13, // 210:6443 + 0x19, 0x72, 0x47, 0x13, // 211:6514 + 0x19, 0xB9, 0x47, 0x13, // 212:6585 + 0x1A, 0x00, 0x47, 0x13, // 213:6656 + 0x1A, 0x47, 0x47, 0x13, // 214:6727 + 0x1A, 0x8E, 0x2B, 0x0E, // 215:6798 + 0x1A, 0xB9, 0x47, 0x13, // 216:6841 + 0x1B, 0x00, 0x3B, 0x11, // 217:6912 + 0x1B, 0x3B, 0x3B, 0x11, // 218:6971 + 0x1B, 0x76, 0x3B, 0x11, // 219:7030 + 0x1B, 0xB1, 0x3B, 0x11, // 220:7089 + 0x1B, 0xEC, 0x3D, 0x10, // 221:7148 + 0x1C, 0x29, 0x3A, 0x10, // 222:7209 + 0x1C, 0x63, 0x37, 0x0F, // 223:7267 + 0x1C, 0x9A, 0x2F, 0x0D, // 224:7322 + 0x1C, 0xC9, 0x2F, 0x0D, // 225:7369 + 0x1C, 0xF8, 0x2F, 0x0D, // 226:7416 + 0x1D, 0x27, 0x2F, 0x0D, // 227:7463 + 0x1D, 0x56, 0x2F, 0x0D, // 228:7510 + 0x1D, 0x85, 0x2F, 0x0D, // 229:7557 + 0x1D, 0xB4, 0x53, 0x15, // 230:7604 + 0x1E, 0x07, 0x2B, 0x0C, // 231:7687 + 0x1E, 0x32, 0x2F, 0x0D, // 232:7730 + 0x1E, 0x61, 0x2F, 0x0D, // 233:7777 + 0x1E, 0x90, 0x2F, 0x0D, // 234:7824 + 0x1E, 0xBF, 0x2F, 0x0D, // 235:7871 + 0x1E, 0xEE, 0x11, 0x07, // 236:7918 + 0x1E, 0xFF, 0x11, 0x07, // 237:7935 + 0x1F, 0x10, 0x15, 0x07, // 238:7952 + 0x1F, 0x25, 0x15, 0x07, // 239:7973 + 0x1F, 0x3A, 0x2F, 0x0D, // 240:7994 + 0x1F, 0x69, 0x2F, 0x0D, // 241:8041 + 0x1F, 0x98, 0x2F, 0x0D, // 242:8088 + 0x1F, 0xC7, 0x2F, 0x0D, // 243:8135 + 0x1F, 0xF6, 0x2F, 0x0D, // 244:8182 + 0x20, 0x25, 0x2F, 0x0D, // 245:8229 + 0x20, 0x54, 0x2F, 0x0D, // 246:8276 + 0x20, 0x83, 0x32, 0x0D, // 247:8323 + 0x20, 0xB5, 0x33, 0x0F, // 248:8373 + 0x20, 0xE8, 0x2F, 0x0D, // 249:8424 + 0x21, 0x17, 0x2F, 0x0D, // 250:8471 + 0x21, 0x46, 0x2F, 0x0D, // 251:8518 + 0x21, 0x75, 0x2F, 0x0D, // 252:8565 + 0x21, 0xA4, 0x2A, 0x0C, // 253:8612 + 0x21, 0xCE, 0x2F, 0x0D, // 254:8654 + 0x21, 0xFD, 0x2A, 0x0C, // 255:8701 + + // Font Data: + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x33,0x00,0xE0,0xFF,0x33, // 33 + 0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xE0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xE0,0x07, // 34 + 0x00,0x0C,0x03,0x00,0x00,0x0C,0x33,0x00,0x00,0x0C,0x3F,0x00,0x00,0xFC,0x0F,0x00,0x80,0xFF,0x03,0x00,0xE0,0x0F,0x03,0x00,0x60,0x0C,0x33,0x00,0x00,0x0C,0x3F,0x00,0x00,0xFC,0x0F,0x00,0x80,0xFF,0x03,0x00,0xE0,0x0F,0x03,0x00,0x60,0x0C,0x03,0x00,0x00,0x0C,0x03, // 35 + 0x00,0x00,0x00,0x00,0x80,0x07,0x06,0x00,0xC0,0x0F,0x1E,0x00,0xC0,0x18,0x1C,0x00,0x60,0x18,0x38,0x00,0x60,0x30,0x30,0x00,0xF0,0xFF,0xFF,0x00,0x60,0x30,0x30,0x00,0x60,0x60,0x38,0x00,0xC0,0x60,0x18,0x00,0xC0,0xC1,0x1F,0x00,0x00,0x81,0x07, // 36 + 0x00,0x00,0x00,0x00,0x80,0x0F,0x00,0x00,0xC0,0x1F,0x00,0x00,0x60,0x30,0x00,0x00,0x20,0x20,0x00,0x00,0x20,0x20,0x20,0x00,0x60,0x30,0x38,0x00,0xC0,0x1F,0x1E,0x00,0x80,0x8F,0x0F,0x00,0x00,0xC0,0x03,0x00,0x00,0xF0,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x8F,0x0F,0x00,0xC0,0xC3,0x1F,0x00,0xE0,0x60,0x30,0x00,0x20,0x20,0x20,0x00,0x00,0x20,0x20,0x00,0x00,0x60,0x30,0x00,0x00,0xC0,0x1F,0x00,0x00,0x80,0x0F, // 37 + 0x00,0x00,0x00,0x00,0x00,0x80,0x07,0x00,0x00,0xC0,0x0F,0x00,0x80,0xE3,0x1C,0x00,0xC0,0x77,0x38,0x00,0xE0,0x3C,0x30,0x00,0x60,0x38,0x30,0x00,0x60,0x78,0x30,0x00,0xE0,0xEC,0x38,0x00,0xC0,0x8F,0x1B,0x00,0x80,0x03,0x1F,0x00,0x00,0x00,0x0F,0x00,0x00,0xC0,0x1F,0x00,0x00,0xC0,0x38,0x00,0x00,0x00,0x10, // 38 + 0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xE0,0x07, // 39 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x0F,0x00,0x00,0xFE,0x7F,0x00,0x80,0x0F,0xF0,0x01,0xC0,0x01,0x80,0x03,0x60,0x00,0x00,0x06,0x20,0x00,0x00,0x04, // 40 + 0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x04,0x60,0x00,0x00,0x06,0xC0,0x01,0x80,0x03,0x80,0x0F,0xF0,0x01,0x00,0xFE,0x7F,0x00,0x00,0xF0,0x0F, // 41 + 0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x04,0x00,0x00,0x80,0x0F,0x00,0x00,0xE0,0x03,0x00,0x00,0xE0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x80,0x04,0x00,0x00,0x80, // 42 + 0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xFF,0x0F,0x00,0x00,0xFF,0x0F,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60, // 43 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x03,0x00,0x00,0xF0,0x01, // 44 + 0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01, // 45 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30, // 46 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0xE0,0x0F,0x00,0x00,0xFC,0x01,0x00,0x80,0x3F,0x00,0x00,0xE0,0x03,0x00,0x00,0x60, // 47 + 0x00,0x00,0x00,0x00,0x00,0xFE,0x03,0x00,0x80,0xFF,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xE0,0x00,0x38,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xE0,0x00,0x38,0x00,0xC0,0x01,0x1C,0x00,0x80,0xFF,0x0F,0x00,0x00,0xFE,0x03, // 48 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x03,0x00,0x00,0x80,0x01,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 49 + 0x00,0x00,0x00,0x00,0x00,0x03,0x30,0x00,0xC0,0x03,0x38,0x00,0xC0,0x00,0x3C,0x00,0x60,0x00,0x36,0x00,0x60,0x00,0x33,0x00,0x60,0x80,0x31,0x00,0x60,0xC0,0x30,0x00,0x60,0x60,0x30,0x00,0xC0,0x30,0x30,0x00,0xC0,0x1F,0x30,0x00,0x00,0x0F,0x30, // 50 + 0x00,0x00,0x00,0x00,0x00,0x01,0x06,0x00,0xC0,0x01,0x0E,0x00,0xC0,0x00,0x1C,0x00,0x60,0x00,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0xC0,0x38,0x30,0x00,0xC0,0x6F,0x18,0x00,0x80,0xC7,0x0F,0x00,0x00,0x80,0x07, // 51 + 0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0xC0,0x03,0x00,0x00,0xF0,0x03,0x00,0x00,0x3C,0x03,0x00,0x00,0x0E,0x03,0x00,0x80,0x07,0x03,0x00,0xC0,0x01,0x03,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03, // 52 + 0x00,0x00,0x00,0x00,0x00,0x30,0x06,0x00,0x80,0x3F,0x0E,0x00,0xE0,0x1F,0x18,0x00,0x60,0x08,0x30,0x00,0x60,0x0C,0x30,0x00,0x60,0x0C,0x30,0x00,0x60,0x0C,0x30,0x00,0x60,0x0C,0x30,0x00,0x60,0x18,0x1C,0x00,0x60,0xF0,0x0F,0x00,0x00,0xE0,0x03, // 53 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x03,0x00,0x80,0xFF,0x0F,0x00,0xC0,0x63,0x1C,0x00,0xC0,0x30,0x38,0x00,0x60,0x18,0x30,0x00,0x60,0x18,0x30,0x00,0x60,0x18,0x30,0x00,0x60,0x18,0x30,0x00,0xE0,0x30,0x18,0x00,0xC0,0xF1,0x0F,0x00,0x80,0xC1,0x07, // 54 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x3C,0x00,0x60,0x80,0x3F,0x00,0x60,0xE0,0x03,0x00,0x60,0x78,0x00,0x00,0x60,0x0E,0x00,0x00,0x60,0x03,0x00,0x00,0xE0,0x01,0x00,0x00,0x60, // 55 + 0x00,0x00,0x00,0x00,0x00,0x80,0x07,0x00,0x80,0xC7,0x1F,0x00,0xC0,0x6F,0x18,0x00,0xE0,0x38,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0xE0,0x38,0x30,0x00,0xC0,0x6F,0x18,0x00,0x80,0xC7,0x1F,0x00,0x00,0x80,0x07, // 56 + 0x00,0x00,0x00,0x00,0x00,0x1F,0x0C,0x00,0x80,0x7F,0x1C,0x00,0xC0,0x61,0x38,0x00,0x60,0xC0,0x30,0x00,0x60,0xC0,0x30,0x00,0x60,0xC0,0x30,0x00,0x60,0xC0,0x30,0x00,0x60,0x60,0x18,0x00,0xC0,0x31,0x1E,0x00,0x80,0xFF,0x0F,0x00,0x00,0xFE,0x01, // 57 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30, // 58 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x30,0x03,0x00,0x06,0xF0,0x01, // 59 + 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0xD8,0x00,0x00,0x00,0xD8,0x00,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x04,0x01,0x00,0x00,0x06,0x03,0x00,0x00,0x06,0x03,0x00,0x00,0x03,0x06, // 60 + 0x00,0x00,0x00,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01, // 61 + 0x00,0x00,0x00,0x00,0x00,0x03,0x06,0x00,0x00,0x06,0x03,0x00,0x00,0x06,0x03,0x00,0x00,0x04,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0x8C,0x01,0x00,0x00,0xD8,0x00,0x00,0x00,0xD8,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x20, // 62 + 0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x80,0x03,0x00,0x00,0xC0,0x01,0x00,0x00,0xE0,0x00,0x00,0x00,0x60,0x80,0x33,0x00,0x60,0xC0,0x33,0x00,0x60,0xE0,0x00,0x00,0x60,0x30,0x00,0x00,0xC0,0x38,0x00,0x00,0xC0,0x1F,0x00,0x00,0x00,0x07, // 63 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x0F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x1E,0xF0,0x00,0x00,0x07,0xC0,0x01,0x80,0xC3,0x87,0x01,0xC0,0xF1,0x9F,0x03,0xC0,0x38,0x18,0x03,0xC0,0x0C,0x30,0x03,0x60,0x0E,0x30,0x06,0x60,0x06,0x30,0x06,0x60,0x06,0x18,0x06,0x60,0x06,0x0C,0x06,0x60,0x0C,0x1E,0x06,0x60,0xF8,0x3F,0x06,0xE0,0xFE,0x31,0x06,0xC0,0x0E,0x30,0x06,0xC0,0x01,0x18,0x03,0x80,0x03,0x1C,0x03,0x00,0x07,0x8F,0x01,0x00,0xFE,0x87,0x01,0x00,0xF8,0xC1,0x00,0x00,0x00,0x40, // 64 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x00,0xFE,0x01,0x00,0x80,0x8F,0x01,0x00,0xE0,0x83,0x01,0x00,0x60,0x80,0x01,0x00,0xE0,0x83,0x01,0x00,0x80,0x8F,0x01,0x00,0x00,0xFE,0x01,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 65 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0xC0,0x78,0x30,0x00,0xC0,0xFF,0x18,0x00,0x80,0xC7,0x1F,0x00,0x00,0x80,0x07, // 66 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x03,0x0F,0x00,0x00,0x02,0x03, // 67 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xE0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x03,0x0E,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 68 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30, // 69 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60, // 70 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x18,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x60,0x30,0x00,0x60,0x60,0x30,0x00,0xE0,0x60,0x38,0x00,0xC0,0x60,0x18,0x00,0xC0,0x61,0x18,0x00,0x80,0xE3,0x0F,0x00,0x00,0xE2,0x0F, // 71 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 72 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 73 + 0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x38,0x00,0xE0,0xFF,0x1F,0x00,0xE0,0xFF,0x0F, // 74 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0xE0,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x7C,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0xE7,0x01,0x00,0x80,0x83,0x07,0x00,0xC0,0x01,0x0F,0x00,0xE0,0x00,0x1E,0x00,0x60,0x00,0x38,0x00,0x20,0x00,0x30,0x00,0x00,0x00,0x20, // 75 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30, // 76 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0x01,0x00,0x00,0xC0,0x0F,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3F,0x00,0x00,0xE0,0x07,0x00,0x00,0xFE,0x00,0x00,0xC0,0x0F,0x00,0x00,0xE0,0x01,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 77 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0xC0,0x01,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0xE0,0x01,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x0F,0x00,0x00,0x00,0x1C,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 78 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x38,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xE0,0x00,0x38,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x0F,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 79 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0x60,0x60,0x00,0x00,0xC0,0x30,0x00,0x00,0xC0,0x3F,0x00,0x00,0x00,0x0F, // 80 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x0C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x18,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x36,0x00,0x60,0x00,0x36,0x00,0xE0,0x00,0x3C,0x00,0xC0,0x00,0x1C,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x3F,0x00,0x00,0xFF,0x77,0x00,0x00,0xFC,0x61, // 81 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x70,0x00,0x00,0x60,0xF0,0x00,0x00,0x60,0xF0,0x03,0x00,0x60,0xB0,0x07,0x00,0xE0,0x18,0x1F,0x00,0xC0,0x1F,0x3C,0x00,0x80,0x0F,0x30,0x00,0x00,0x00,0x20, // 82 + 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x07,0x0F,0x00,0xC0,0x1F,0x1C,0x00,0xC0,0x18,0x18,0x00,0x60,0x38,0x38,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x70,0x30,0x00,0xC0,0x60,0x18,0x00,0xC0,0xE1,0x18,0x00,0x80,0xC3,0x0F,0x00,0x00,0x83,0x07, // 83 + 0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60, // 84 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x00,0xE0,0xFF,0x0F,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x1C,0x00,0xE0,0xFF,0x0F,0x00,0xE0,0xFF,0x03, // 85 + 0x20,0x00,0x00,0x00,0xE0,0x01,0x00,0x00,0xC0,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0xF8,0x01,0x00,0x00,0xC0,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x3E,0x00,0x00,0xC0,0x0F,0x00,0x00,0xF8,0x01,0x00,0x00,0x3E,0x00,0x00,0xC0,0x0F,0x00,0x00,0xE0,0x01,0x00,0x00,0x20, // 86 + 0x60,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0x80,0xFF,0x00,0x00,0x00,0xF8,0x0F,0x00,0x00,0x80,0x3F,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3F,0x00,0x00,0xE0,0x0F,0x00,0x00,0xFC,0x01,0x00,0x80,0x1F,0x00,0x00,0xE0,0x03,0x00,0x00,0x60,0x00,0x00,0x00,0xE0,0x03,0x00,0x00,0x80,0x1F,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xE0,0x0F,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x30,0x00,0x00,0x80,0x3F,0x00,0x00,0xF8,0x0F,0x00,0x80,0xFF,0x00,0x00,0xE0,0x07,0x00,0x00,0x60, // 87 + 0x00,0x00,0x20,0x00,0x20,0x00,0x30,0x00,0x60,0x00,0x3C,0x00,0xE0,0x01,0x1E,0x00,0xC0,0x83,0x07,0x00,0x00,0xCF,0x03,0x00,0x00,0xFE,0x01,0x00,0x00,0x38,0x00,0x00,0x00,0xFE,0x01,0x00,0x00,0xCF,0x03,0x00,0xC0,0x03,0x07,0x00,0xE0,0x01,0x1E,0x00,0x60,0x00,0x3C,0x00,0x20,0x00,0x30,0x00,0x00,0x00,0x20, // 88 + 0x20,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xC0,0x01,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0xF0,0x3F,0x00,0x00,0xF0,0x3F,0x00,0x00,0x3C,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x07,0x00,0x00,0xC0,0x03,0x00,0x00,0xE0,0x01,0x00,0x00,0x60,0x00,0x00,0x00,0x20, // 89 + 0x00,0x00,0x30,0x00,0x60,0x00,0x38,0x00,0x60,0x00,0x3C,0x00,0x60,0x00,0x37,0x00,0x60,0x80,0x33,0x00,0x60,0xC0,0x31,0x00,0x60,0xE0,0x30,0x00,0x60,0x38,0x30,0x00,0x60,0x1C,0x30,0x00,0x60,0x0E,0x30,0x00,0x60,0x07,0x30,0x00,0xE0,0x01,0x30,0x00,0xE0,0x00,0x30,0x00,0x60,0x00,0x30, // 90 + 0x00,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x07,0xE0,0xFF,0xFF,0x07,0x60,0x00,0x00,0x06,0x60,0x00,0x00,0x06, // 91 + 0x60,0x00,0x00,0x00,0xE0,0x03,0x00,0x00,0x80,0x3F,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xE0,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 92 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x06,0x60,0x00,0x00,0x06,0xE0,0xFF,0xFF,0x07,0xE0,0xFF,0xFF,0x07, // 93 + 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x1F,0x00,0x00,0xC0,0x07,0x00,0x00,0xE0,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0xC0,0x07,0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x20, // 94 + 0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06, // 95 + 0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x80, // 96 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0x00,0x1C,0x1F,0x00,0x00,0x8C,0x39,0x00,0x00,0x86,0x31,0x00,0x00,0x86,0x31,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x18,0x00,0x00,0xCE,0x0C,0x00,0x00,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 97 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x18,0x0C,0x00,0x00,0x0C,0x18,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xE0,0x03, // 98 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x38,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0x18,0x0C, // 99 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x03,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x38,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0C,0x18,0x00,0x00,0x18,0x0C,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 100 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0xDC,0x1C,0x00,0x00,0xCE,0x38,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xCE,0x38,0x00,0x00,0xDC,0x18,0x00,0x00,0xF8,0x0C,0x00,0x00,0xF0,0x04, // 101 + 0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0xC0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x06,0x00,0x00,0x60,0x06,0x00,0x00,0x60,0x06, // 102 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x83,0x01,0x00,0xF8,0x8F,0x03,0x00,0x1C,0x1C,0x07,0x00,0x0E,0x38,0x06,0x00,0x06,0x30,0x06,0x00,0x06,0x30,0x06,0x00,0x06,0x30,0x06,0x00,0x0C,0x18,0x07,0x00,0x18,0x8C,0x03,0x00,0xFE,0xFF,0x01,0x00,0xFE,0xFF, // 103 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x18,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0xFC,0x3F,0x00,0x00,0xF8,0x3F, // 104 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0xFE,0x3F,0x00,0x60,0xFE,0x3F, // 105 + 0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x60,0xFE,0xFF,0x07,0x60,0xFE,0xFF,0x03, // 106 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0xC0,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0xF0,0x01,0x00,0x00,0x98,0x07,0x00,0x00,0x0C,0x0E,0x00,0x00,0x06,0x3C,0x00,0x00,0x02,0x30,0x00,0x00,0x00,0x20, // 107 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 108 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F,0x00,0x00,0x0C,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0xFC,0x3F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x0C,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0xFC,0x3F,0x00,0x00,0xF8,0x3F, // 109 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F,0x00,0x00,0x18,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0xFC,0x3F,0x00,0x00,0xF8,0x3F, // 110 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x38,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xF0,0x07, // 111 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,0x07,0x00,0xFE,0xFF,0x07,0x00,0x18,0x0C,0x00,0x00,0x0C,0x18,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xE0,0x03, // 112 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x03,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x38,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0C,0x18,0x00,0x00,0x18,0x0C,0x00,0x00,0xFE,0xFF,0x07,0x00,0xFE,0xFF,0x07, // 113 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F,0x00,0x00,0x0C,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06, // 114 + 0x00,0x00,0x00,0x00,0x00,0x38,0x0C,0x00,0x00,0x7C,0x1C,0x00,0x00,0xEE,0x38,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x31,0x00,0x00,0xC6,0x31,0x00,0x00,0x8E,0x39,0x00,0x00,0x9C,0x1F,0x00,0x00,0x18,0x0F, // 115 + 0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0xC0,0xFF,0x1F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30, // 116 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x0F,0x00,0x00,0xFE,0x1F,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x0C,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F, // 117 + 0x00,0x06,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0xC0,0x07,0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x1F,0x00,0x00,0xC0,0x07,0x00,0x00,0xF8,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x06, // 118 + 0x00,0x0E,0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x1F,0x00,0x00,0x00,0x38,0x00,0x00,0x80,0x1F,0x00,0x00,0xE0,0x03,0x00,0x00,0x7C,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x7C,0x00,0x00,0x00,0xE0,0x03,0x00,0x00,0x80,0x1F,0x00,0x00,0x00,0x38,0x00,0x00,0x80,0x1F,0x00,0x00,0xF0,0x03,0x00,0x00,0x7E,0x00,0x00,0x00,0x0E, // 119 + 0x00,0x02,0x20,0x00,0x00,0x06,0x30,0x00,0x00,0x1E,0x3C,0x00,0x00,0x38,0x0E,0x00,0x00,0xF0,0x07,0x00,0x00,0xC0,0x01,0x00,0x00,0xE0,0x07,0x00,0x00,0x38,0x0E,0x00,0x00,0x1C,0x3C,0x00,0x00,0x0E,0x30,0x00,0x00,0x02,0x20, // 120 + 0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x7E,0x00,0x06,0x00,0xF0,0x01,0x06,0x00,0x80,0x0F,0x07,0x00,0x00,0xFE,0x03,0x00,0x00,0xFC,0x00,0x00,0xC0,0x1F,0x00,0x00,0xF8,0x03,0x00,0x00,0x3E,0x00,0x00,0x00,0x06, // 121 + 0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x06,0x3C,0x00,0x00,0x06,0x3E,0x00,0x00,0x06,0x37,0x00,0x00,0xC6,0x33,0x00,0x00,0xE6,0x30,0x00,0x00,0x76,0x30,0x00,0x00,0x3E,0x30,0x00,0x00,0x1E,0x30,0x00,0x00,0x06,0x30, // 122 + 0x00,0x00,0x00,0x00,0x00,0x80,0x01,0x00,0x00,0xC0,0x03,0x00,0xC0,0x7F,0xFE,0x03,0xE0,0x3F,0xFC,0x07,0x60,0x00,0x00,0x06,0x60,0x00,0x00,0x06, // 123 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x0F,0xE0,0xFF,0xFF,0x0F, // 124 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x06,0x60,0x00,0x00,0x06,0xE0,0x3F,0xFC,0x07,0xC0,0x7F,0xFF,0x03,0x00,0xC0,0x03,0x00,0x00,0x80,0x01, // 125 + 0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x60, // 126 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE6,0xFF,0x07,0x00,0xE6,0xFF,0x07, // 161 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x9C,0x07,0x00,0x0E,0x78,0x00,0x00,0x06,0x3F,0x00,0x00,0xF6,0x30,0x00,0x00,0x0E,0x30,0x00,0xE0,0x0D,0x1C,0x00,0x00,0x1C,0x0E,0x00,0x00,0x10,0x06, // 162 + 0x00,0x60,0x10,0x00,0x00,0x60,0x38,0x00,0x00,0x7F,0x1C,0x00,0xC0,0xFF,0x1F,0x00,0xE0,0xE0,0x19,0x00,0x60,0x60,0x18,0x00,0x60,0x60,0x18,0x00,0x60,0x60,0x30,0x00,0xE0,0x00,0x30,0x00,0xC0,0x01,0x30,0x00,0x80,0x01,0x38,0x00,0x00,0x00,0x10, // 163 + 0x00,0x00,0x00,0x00,0x00,0x02,0x04,0x00,0x00,0xF7,0x0E,0x00,0x00,0xFE,0x07,0x00,0x00,0x0C,0x03,0x00,0x00,0x06,0x06,0x00,0x00,0x06,0x06,0x00,0x00,0x06,0x06,0x00,0x00,0x06,0x06,0x00,0x00,0x0C,0x03,0x00,0x00,0xFE,0x07,0x00,0x00,0xF7,0x0E,0x00,0x00,0x02,0x04, // 164 + 0xE0,0x60,0x06,0x00,0xC0,0x61,0x06,0x00,0x80,0x67,0x06,0x00,0x00,0x7E,0x06,0x00,0x00,0x7C,0x06,0x00,0x00,0xF0,0x3F,0x00,0x00,0xF0,0x3F,0x00,0x00,0x7C,0x06,0x00,0x00,0x7E,0x06,0x00,0x80,0x67,0x06,0x00,0xC0,0x61,0x06,0x00,0xE0,0x60,0x06,0x00,0x20, // 165 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x7F,0xF8,0x0F,0xE0,0x7F,0xF8,0x0F, // 166 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x80,0xF3,0xC1,0x00,0xC0,0x1F,0xC3,0x03,0xE0,0x0C,0x07,0x03,0x60,0x1C,0x06,0x06,0x60,0x18,0x0C,0x06,0x60,0x30,0x1C,0x06,0xE0,0x70,0x38,0x07,0xC0,0xE1,0xF4,0x03,0x80,0xC1,0xE7,0x01,0x00,0x80,0x03, // 167 + 0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60, // 168 + 0x00,0xF8,0x00,0x00,0x00,0xFE,0x03,0x00,0x00,0x07,0x07,0x00,0x80,0x01,0x0C,0x00,0xC0,0x79,0x1C,0x00,0xC0,0xFE,0x19,0x00,0x60,0x86,0x31,0x00,0x60,0x03,0x33,0x00,0x60,0x03,0x33,0x00,0x60,0x03,0x33,0x00,0x60,0x03,0x33,0x00,0x60,0x87,0x33,0x00,0xC0,0x86,0x19,0x00,0xC0,0x85,0x1C,0x00,0x80,0x01,0x0C,0x00,0x00,0x07,0x07,0x00,0x00,0xFE,0x03,0x00,0x00,0xF8, // 169 + 0x00,0x00,0x00,0x00,0xC0,0x1C,0x00,0x00,0xE0,0x3E,0x00,0x00,0x60,0x32,0x00,0x00,0x60,0x32,0x00,0x00,0xE0,0x3F,0x00,0x00,0xC0,0x3F, // 170 + 0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0xE0,0x03,0x00,0x00,0x78,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x84,0x10,0x00,0x00,0xE0,0x03,0x00,0x00,0x78,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x04,0x10, // 171 + 0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFC,0x01, // 172 + 0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,0x01, // 173 + 0x00,0xF8,0x00,0x00,0x00,0xFE,0x03,0x00,0x00,0x07,0x07,0x00,0x80,0x01,0x0C,0x00,0xC0,0x01,0x1C,0x00,0xC0,0xFE,0x1B,0x00,0x60,0xFE,0x33,0x00,0x60,0x66,0x30,0x00,0x60,0x66,0x30,0x00,0x60,0xE6,0x30,0x00,0x60,0xFE,0x31,0x00,0x60,0x3C,0x33,0x00,0xC0,0x00,0x1A,0x00,0xC0,0x01,0x1C,0x00,0x80,0x01,0x0C,0x00,0x00,0x07,0x07,0x00,0x00,0xFE,0x03,0x00,0x00,0xF8, // 174 + 0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x0C, // 175 + 0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x40,0x04,0x00,0x00,0x20,0x08,0x00,0x00,0x20,0x08,0x00,0x00,0x20,0x08,0x00,0x00,0x40,0x04,0x00,0x00,0x80,0x03, // 176 + 0x00,0x00,0x00,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0xFF,0x3F,0x00,0x00,0xFF,0x3F,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30,0x00,0x00,0x60,0x30, // 177 + 0x40,0x20,0x00,0x00,0x60,0x30,0x00,0x00,0x20,0x38,0x00,0x00,0x20,0x2C,0x00,0x00,0x20,0x26,0x00,0x00,0xE0,0x23,0x00,0x00,0xC0,0x21, // 178 + 0x40,0x10,0x00,0x00,0x60,0x30,0x00,0x00,0x20,0x20,0x00,0x00,0x20,0x22,0x00,0x00,0x20,0x22,0x00,0x00,0xE0,0x3D,0x00,0x00,0xC0,0x1D, // 179 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x20, // 180 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFF,0x07,0x00,0xFE,0xFF,0x07,0x00,0x00,0x1C,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x1C,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F, // 181 + 0x00,0x0F,0x00,0x00,0xC0,0x3F,0x00,0x00,0xC0,0x3F,0x00,0x00,0xE0,0x7F,0x00,0x00,0xE0,0x7F,0x00,0x00,0xE0,0xFF,0xFF,0x07,0xE0,0xFF,0xFF,0x07,0x60,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x07,0xE0,0xFF,0xFF,0x07,0x60,0x00,0x00,0x00,0x60, // 182 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x60, // 183 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0xC0,0x02,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x01, // 184 + 0x00,0x00,0x00,0x00,0x80,0x01,0x00,0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0xE0,0x3F,0x00,0x00,0xE0,0x3F, // 185 + 0x00,0x00,0x00,0x00,0x80,0x0F,0x00,0x00,0xC0,0x1F,0x00,0x00,0xE0,0x38,0x00,0x00,0x60,0x30,0x00,0x00,0xE0,0x38,0x00,0x00,0xC0,0x1F,0x00,0x00,0x80,0x0F, // 186 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x10,0x00,0x00,0x1C,0x1C,0x00,0x00,0x78,0x0F,0x00,0x00,0xE0,0x03,0x00,0x00,0x84,0x10,0x00,0x00,0x1C,0x1C,0x00,0x00,0x78,0x0F,0x00,0x00,0xE0,0x03,0x00,0x00,0x80, // 187 + 0x00,0x00,0x00,0x00,0x80,0x01,0x00,0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x20,0x00,0xE0,0x3F,0x38,0x00,0xE0,0x3F,0x1C,0x00,0x00,0x00,0x0E,0x00,0x00,0x80,0x03,0x00,0x00,0xC0,0x01,0x00,0x00,0xE0,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x07,0x0C,0x00,0xC0,0x01,0x0E,0x00,0xE0,0x80,0x0B,0x00,0x60,0xC0,0x08,0x00,0x00,0xE0,0x3F,0x00,0x00,0xE0,0x3F,0x00,0x00,0x00,0x08, // 188 + 0x00,0x00,0x00,0x00,0x80,0x01,0x00,0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x20,0x00,0xE0,0x3F,0x30,0x00,0xE0,0x3F,0x1C,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x07,0x00,0x00,0xC0,0x01,0x00,0x00,0xE0,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x4E,0x20,0x00,0x00,0x67,0x30,0x00,0xC0,0x21,0x38,0x00,0xE0,0x20,0x2C,0x00,0x60,0x20,0x26,0x00,0x00,0xE0,0x27,0x00,0x00,0xC0,0x21, // 189 + 0x40,0x10,0x00,0x00,0x60,0x30,0x00,0x00,0x20,0x20,0x00,0x00,0x20,0x22,0x20,0x00,0x20,0x22,0x30,0x00,0xE0,0x3D,0x38,0x00,0xC0,0x1D,0x0E,0x00,0x00,0x00,0x07,0x00,0x00,0x80,0x03,0x00,0x00,0xE0,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x0E,0x0C,0x00,0x00,0x07,0x0E,0x00,0x80,0x83,0x0B,0x00,0xE0,0xC0,0x08,0x00,0x60,0xE0,0x3F,0x00,0x20,0xE0,0x3F,0x00,0x00,0x00,0x08, // 190 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xF8,0x03,0x00,0x00,0x1E,0x03,0x00,0x00,0x07,0x07,0x00,0xE6,0x03,0x06,0x00,0xE6,0x01,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x00,0x80,0x03,0x00,0x00,0xC0,0x01,0x00,0x00,0xC0, // 191 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x00,0xFE,0x01,0x00,0x82,0x8F,0x01,0x00,0xE6,0x83,0x01,0x00,0x6E,0x80,0x01,0x00,0xE8,0x83,0x01,0x00,0x80,0x8F,0x01,0x00,0x00,0xFE,0x01,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 192 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x00,0xFE,0x01,0x00,0x80,0x8F,0x01,0x00,0xE8,0x83,0x01,0x00,0x6E,0x80,0x01,0x00,0xE6,0x83,0x01,0x00,0x82,0x8F,0x01,0x00,0x00,0xFE,0x01,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 193 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x00,0xFE,0x01,0x00,0x88,0x8F,0x01,0x00,0xEC,0x83,0x01,0x00,0x66,0x80,0x01,0x00,0xE6,0x83,0x01,0x00,0x8C,0x8F,0x01,0x00,0x08,0xFE,0x01,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 194 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x0C,0xFE,0x01,0x00,0x8E,0x8F,0x01,0x00,0xE6,0x83,0x01,0x00,0x66,0x80,0x01,0x00,0xEC,0x83,0x01,0x00,0x8C,0x8F,0x01,0x00,0x0E,0xFE,0x01,0x00,0x06,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 195 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x00,0xFE,0x01,0x00,0x8C,0x8F,0x01,0x00,0xEC,0x83,0x01,0x00,0x60,0x80,0x01,0x00,0xE0,0x83,0x01,0x00,0x8C,0x8F,0x01,0x00,0x0C,0xFE,0x01,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 196 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3E,0x00,0x00,0x80,0x0F,0x00,0x00,0xF0,0x03,0x00,0x00,0xFE,0x01,0x00,0x9C,0x8F,0x01,0x00,0xE2,0x83,0x01,0x00,0x62,0x80,0x01,0x00,0xE2,0x83,0x01,0x00,0x9C,0x8F,0x01,0x00,0x00,0xFE,0x01,0x00,0x00,0xF0,0x03,0x00,0x00,0x80,0x0F,0x00,0x00,0x00,0x3E,0x00,0x00,0x00,0x30, // 197 + 0x00,0x00,0x30,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x0F,0x00,0x00,0xC0,0x03,0x00,0x00,0xF0,0x01,0x00,0x00,0xBC,0x01,0x00,0x00,0x8F,0x01,0x00,0xC0,0x83,0x01,0x00,0xE0,0x80,0x01,0x00,0x60,0x80,0x01,0x00,0x60,0x80,0x01,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30, // 198 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0x60,0x00,0x30,0x02,0x60,0x00,0x30,0x02,0x60,0x00,0xF0,0x02,0x60,0x00,0xB0,0x03,0x60,0x00,0x30,0x01,0x60,0x00,0x30,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x03,0x0F,0x00,0x00,0x02,0x03, // 199 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x62,0x30,0x30,0x00,0x66,0x30,0x30,0x00,0x6E,0x30,0x30,0x00,0x68,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30, // 200 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x68,0x30,0x30,0x00,0x6E,0x30,0x30,0x00,0x66,0x30,0x30,0x00,0x62,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30, // 201 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x68,0x30,0x30,0x00,0x6C,0x30,0x30,0x00,0x66,0x30,0x30,0x00,0x66,0x30,0x30,0x00,0x6C,0x30,0x30,0x00,0x68,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30, // 202 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x6C,0x30,0x30,0x00,0x6C,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x6C,0x30,0x30,0x00,0x6C,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30, // 203 + 0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0xE6,0xFF,0x3F,0x00,0xEE,0xFF,0x3F,0x00,0x08, // 204 + 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0xEE,0xFF,0x3F,0x00,0xE6,0xFF,0x3F,0x00,0x02, // 205 + 0x08,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0xE6,0xFF,0x3F,0x00,0xE6,0xFF,0x3F,0x00,0x0C,0x00,0x00,0x00,0x08, // 206 + 0x0C,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x0C,0x00,0x00,0x00,0x0C, // 207 + 0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x30,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xE0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x03,0x0E,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 208 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0xC0,0x01,0x00,0x00,0x8C,0x03,0x00,0x00,0x0E,0x0E,0x00,0x00,0x06,0x3C,0x00,0x00,0x06,0x70,0x00,0x00,0x0C,0xE0,0x01,0x00,0x0C,0x80,0x03,0x00,0x0E,0x00,0x0F,0x00,0x06,0x00,0x1C,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F, // 209 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x38,0x00,0x62,0x00,0x30,0x00,0x66,0x00,0x30,0x00,0x6E,0x00,0x30,0x00,0x68,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xE0,0x00,0x38,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x0F,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 210 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x38,0x00,0x60,0x00,0x30,0x00,0x68,0x00,0x30,0x00,0x6E,0x00,0x30,0x00,0x66,0x00,0x30,0x00,0x62,0x00,0x30,0x00,0xE0,0x00,0x38,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x0F,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 211 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x38,0x00,0x68,0x00,0x30,0x00,0x6C,0x00,0x30,0x00,0x66,0x00,0x30,0x00,0x66,0x00,0x30,0x00,0x6C,0x00,0x30,0x00,0xE8,0x00,0x38,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x0F,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 212 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xCC,0x00,0x18,0x00,0xEE,0x00,0x38,0x00,0x66,0x00,0x30,0x00,0x66,0x00,0x30,0x00,0x6C,0x00,0x30,0x00,0x6C,0x00,0x30,0x00,0x6E,0x00,0x30,0x00,0xE6,0x00,0x38,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x0F,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 213 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x01,0x00,0x00,0xFF,0x07,0x00,0x80,0x07,0x0F,0x00,0xC0,0x01,0x1C,0x00,0xC0,0x00,0x18,0x00,0xE0,0x00,0x38,0x00,0x6C,0x00,0x30,0x00,0x6C,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x6C,0x00,0x30,0x00,0xEC,0x00,0x38,0x00,0xC0,0x00,0x18,0x00,0xC0,0x01,0x1C,0x00,0x80,0x07,0x0F,0x00,0x00,0xFF,0x07,0x00,0x00,0xFC,0x01, // 214 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x03,0x00,0x00,0x8E,0x03,0x00,0x00,0xDC,0x01,0x00,0x00,0xF8,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0xDC,0x01,0x00,0x00,0x8E,0x03,0x00,0x00,0x06,0x03, // 215 + 0x00,0x00,0x00,0x00,0x00,0xFC,0x21,0x00,0x00,0xFF,0x77,0x00,0x80,0x07,0x3F,0x00,0xC0,0x01,0x1E,0x00,0xC0,0x00,0x1F,0x00,0xE0,0x80,0x3B,0x00,0x60,0xC0,0x31,0x00,0x60,0xE0,0x30,0x00,0x60,0x70,0x30,0x00,0x60,0x38,0x30,0x00,0x60,0x1C,0x30,0x00,0xE0,0x0E,0x38,0x00,0xC0,0x07,0x18,0x00,0xC0,0x03,0x1C,0x00,0xE0,0x07,0x0F,0x00,0x70,0xFF,0x07,0x00,0x20,0xFC,0x01, // 216 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x00,0xE0,0xFF,0x0F,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x38,0x00,0x02,0x00,0x30,0x00,0x06,0x00,0x30,0x00,0x0E,0x00,0x30,0x00,0x08,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x1C,0x00,0xE0,0xFF,0x0F,0x00,0xE0,0xFF,0x03, // 217 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x00,0xE0,0xFF,0x0F,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x30,0x00,0x08,0x00,0x30,0x00,0x0E,0x00,0x30,0x00,0x06,0x00,0x30,0x00,0x02,0x00,0x30,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x1C,0x00,0xE0,0xFF,0x0F,0x00,0xE0,0xFF,0x03, // 218 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x00,0xE0,0xFF,0x0F,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x38,0x00,0x08,0x00,0x30,0x00,0x0C,0x00,0x30,0x00,0x06,0x00,0x30,0x00,0x06,0x00,0x30,0x00,0x0C,0x00,0x30,0x00,0x08,0x00,0x38,0x00,0x00,0x00,0x1C,0x00,0xE0,0xFF,0x0F,0x00,0xE0,0xFF,0x03, // 219 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x03,0x00,0xE0,0xFF,0x0F,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x38,0x00,0x0C,0x00,0x30,0x00,0x0C,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x0C,0x00,0x30,0x00,0x0C,0x00,0x38,0x00,0x00,0x00,0x1C,0x00,0xE0,0xFF,0x0F,0x00,0xE0,0xFF,0x03, // 220 + 0x20,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0xC0,0x01,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x3C,0x00,0x00,0x08,0xF0,0x3F,0x00,0x0E,0xF0,0x3F,0x00,0x06,0x3C,0x00,0x00,0x02,0x1E,0x00,0x00,0x00,0x07,0x00,0x00,0xC0,0x03,0x00,0x00,0xE0,0x01,0x00,0x00,0x60,0x00,0x00,0x00,0x20, // 221 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0x3F,0x00,0xE0,0xFF,0x3F,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x06,0x00,0x00,0x03,0x07,0x00,0x00,0x86,0x03,0x00,0x00,0xFE,0x01,0x00,0x00,0xF8, // 222 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xFF,0x3F,0x00,0xC0,0xFF,0x3F,0x00,0xC0,0x00,0x00,0x00,0x60,0x00,0x08,0x00,0x60,0x00,0x1C,0x00,0x60,0x00,0x38,0x00,0xE0,0x78,0x30,0x00,0xC0,0x7F,0x30,0x00,0x80,0xC7,0x30,0x00,0x00,0x80,0x39,0x00,0x00,0x80,0x1F,0x00,0x00,0x00,0x0F, // 223 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0x00,0x1C,0x1F,0x00,0x00,0x8C,0x39,0x00,0x20,0x86,0x31,0x00,0x60,0x86,0x31,0x00,0xE0,0xC6,0x30,0x00,0x80,0xC6,0x18,0x00,0x00,0xCE,0x0C,0x00,0x00,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 224 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0x00,0x1C,0x1F,0x00,0x00,0x8C,0x39,0x00,0x00,0x86,0x31,0x00,0x80,0x86,0x31,0x00,0xE0,0xC6,0x30,0x00,0x60,0xC6,0x18,0x00,0x20,0xCE,0x0C,0x00,0x00,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 225 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0x00,0x1C,0x1F,0x00,0x80,0x8C,0x39,0x00,0xC0,0x86,0x31,0x00,0x60,0x86,0x31,0x00,0x60,0xC6,0x30,0x00,0xC0,0xC6,0x18,0x00,0x80,0xCE,0x0C,0x00,0x00,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 226 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0xC0,0x1C,0x1F,0x00,0xE0,0x8C,0x39,0x00,0x60,0x86,0x31,0x00,0x60,0x86,0x31,0x00,0xC0,0xC6,0x30,0x00,0xC0,0xC6,0x18,0x00,0xE0,0xCE,0x0C,0x00,0x60,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 227 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0x00,0x1C,0x1F,0x00,0xC0,0x8C,0x39,0x00,0xC0,0x86,0x31,0x00,0x00,0x86,0x31,0x00,0x00,0xC6,0x30,0x00,0xC0,0xC6,0x18,0x00,0xC0,0xCE,0x0C,0x00,0x00,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 228 + 0x00,0x00,0x00,0x00,0x00,0x18,0x0E,0x00,0x00,0x1C,0x1F,0x00,0x00,0x8C,0x39,0x00,0x70,0x86,0x31,0x00,0x88,0x86,0x31,0x00,0x88,0xC6,0x30,0x00,0x88,0xC6,0x18,0x00,0x70,0xCE,0x0C,0x00,0x00,0xFC,0x1F,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x20, // 229 + 0x00,0x00,0x00,0x00,0x00,0x10,0x0F,0x00,0x00,0x9C,0x1F,0x00,0x00,0xCC,0x39,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0x66,0x18,0x00,0x00,0x6E,0x1C,0x00,0x00,0xFC,0x0F,0x00,0x00,0xFC,0x1F,0x00,0x00,0xCC,0x1C,0x00,0x00,0xCE,0x38,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xCC,0x18,0x00,0x00,0xF8,0x0C,0x00,0x00,0xE0,0x04, // 230 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x38,0x02,0x00,0x06,0x30,0x02,0x00,0x06,0xF0,0x02,0x00,0x06,0xB0,0x03,0x00,0x0E,0x38,0x01,0x00,0x1C,0x1C,0x00,0x00,0x18,0x0C, // 231 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0xDC,0x1C,0x00,0x20,0xCE,0x38,0x00,0x60,0xC6,0x30,0x00,0xE0,0xC6,0x30,0x00,0x80,0xC6,0x30,0x00,0x00,0xCE,0x38,0x00,0x00,0xDC,0x18,0x00,0x00,0xF8,0x0C,0x00,0x00,0xF0,0x04, // 232 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0xDC,0x1C,0x00,0x00,0xCE,0x38,0x00,0x80,0xC6,0x30,0x00,0xE0,0xC6,0x30,0x00,0x60,0xC6,0x30,0x00,0x20,0xCE,0x38,0x00,0x00,0xDC,0x18,0x00,0x00,0xF8,0x0C,0x00,0x00,0xF0,0x04, // 233 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0xDC,0x1C,0x00,0x80,0xCE,0x38,0x00,0xC0,0xC6,0x30,0x00,0x60,0xC6,0x30,0x00,0x60,0xC6,0x30,0x00,0xC0,0xCE,0x38,0x00,0x80,0xDC,0x18,0x00,0x00,0xF8,0x0C,0x00,0x00,0xF0,0x04, // 234 + 0x00,0x00,0x00,0x00,0x00,0xE0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0xDC,0x1C,0x00,0xC0,0xCE,0x38,0x00,0xC0,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0x00,0xC6,0x30,0x00,0xC0,0xCE,0x38,0x00,0xC0,0xDC,0x18,0x00,0x00,0xF8,0x0C,0x00,0x00,0xF0,0x04, // 235 + 0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x60,0xFE,0x3F,0x00,0xE0,0xFE,0x3F,0x00,0x80, // 236 + 0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0xE0,0xFE,0x3F,0x00,0x60,0xFE,0x3F,0x00,0x20, // 237 + 0x80,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x60,0xFE,0x3F,0x00,0x60,0xFE,0x3F,0x00,0xC0,0x00,0x00,0x00,0x80, // 238 + 0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F,0x00,0xC0,0x00,0x00,0x00,0xC0, // 239 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1D,0x1C,0x00,0xA0,0x0F,0x38,0x00,0xA0,0x06,0x30,0x00,0xE0,0x06,0x30,0x00,0xC0,0x06,0x30,0x00,0xC0,0x0F,0x38,0x00,0x20,0x1F,0x1C,0x00,0x00,0xFC,0x0F,0x00,0x00,0xE0,0x07, // 240 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x3F,0x00,0xC0,0xFE,0x3F,0x00,0xE0,0x18,0x00,0x00,0x60,0x0C,0x00,0x00,0x60,0x06,0x00,0x00,0xC0,0x06,0x00,0x00,0xC0,0x06,0x00,0x00,0xE0,0x0E,0x00,0x00,0x60,0xFC,0x3F,0x00,0x00,0xF8,0x3F, // 241 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x20,0x0E,0x38,0x00,0x60,0x06,0x30,0x00,0xE0,0x06,0x30,0x00,0x80,0x06,0x30,0x00,0x00,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xF0,0x07, // 242 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x38,0x00,0x80,0x06,0x30,0x00,0xE0,0x06,0x30,0x00,0x60,0x06,0x30,0x00,0x20,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xF0,0x07, // 243 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0x80,0x0E,0x38,0x00,0xC0,0x06,0x30,0x00,0x60,0x06,0x30,0x00,0x60,0x06,0x30,0x00,0xC0,0x0E,0x38,0x00,0x80,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xF0,0x07, // 244 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0xC0,0x1C,0x1C,0x00,0xE0,0x0E,0x38,0x00,0x60,0x06,0x30,0x00,0x60,0x06,0x30,0x00,0xC0,0x06,0x30,0x00,0xC0,0x0E,0x38,0x00,0xE0,0x1C,0x1C,0x00,0x60,0xF8,0x0F,0x00,0x00,0xF0,0x07, // 245 + 0x00,0x00,0x00,0x00,0x00,0xF0,0x07,0x00,0x00,0xF8,0x0F,0x00,0x00,0x1C,0x1C,0x00,0xC0,0x0E,0x38,0x00,0xC0,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0xC0,0x0E,0x38,0x00,0xC0,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xF0,0x07, // 246 + 0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0xB6,0x01,0x00,0x00,0xB6,0x01,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30, // 247 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x67,0x00,0x00,0xF8,0x7F,0x00,0x00,0x1C,0x1C,0x00,0x00,0x0E,0x3F,0x00,0x00,0x86,0x33,0x00,0x00,0xE6,0x31,0x00,0x00,0x76,0x30,0x00,0x00,0x3E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xFF,0x0F,0x00,0x00,0xF3,0x07, // 248 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x0F,0x00,0x00,0xFE,0x1F,0x00,0x20,0x00,0x38,0x00,0x60,0x00,0x30,0x00,0xE0,0x00,0x30,0x00,0x80,0x00,0x30,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x0C,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F, // 249 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x0F,0x00,0x00,0xFE,0x1F,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x30,0x00,0x80,0x00,0x30,0x00,0xE0,0x00,0x30,0x00,0x60,0x00,0x18,0x00,0x20,0x00,0x0C,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F, // 250 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x0F,0x00,0x00,0xFE,0x1F,0x00,0x80,0x00,0x38,0x00,0xC0,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0x60,0x00,0x30,0x00,0xC0,0x00,0x18,0x00,0x80,0x00,0x0C,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F, // 251 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x0F,0x00,0x00,0xFE,0x1F,0x00,0xC0,0x00,0x38,0x00,0xC0,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x30,0x00,0xC0,0x00,0x18,0x00,0xC0,0x00,0x0C,0x00,0x00,0xFE,0x3F,0x00,0x00,0xFE,0x3F, // 252 + 0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x7E,0x00,0x06,0x00,0xF0,0x01,0x06,0x00,0x80,0x0F,0x07,0x80,0x00,0xFE,0x03,0xE0,0x00,0xFC,0x00,0x60,0xC0,0x1F,0x00,0x20,0xF8,0x03,0x00,0x00,0x3E,0x00,0x00,0x00,0x06, // 253 + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x07,0xE0,0xFF,0xFF,0x07,0x00,0x1C,0x18,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x06,0x30,0x00,0x00,0x0E,0x38,0x00,0x00,0x1C,0x1C,0x00,0x00,0xF8,0x0F,0x00,0x00,0xF0,0x03, // 254 + 0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x7E,0x00,0x06,0xC0,0xF0,0x01,0x06,0xC0,0x80,0x0F,0x07,0x00,0x00,0xFE,0x03,0x00,0x00,0xFC,0x00,0xC0,0xC0,0x1F,0x00,0xC0,0xF8,0x03,0x00,0x00,0x3E,0x00,0x00,0x00,0x06 // 255 +}; +#endif diff --git a/libraries/oled-ssd1306/OLEDDisplayUi.cpp b/libraries/oled-ssd1306/OLEDDisplayUi.cpp new file mode 100644 index 00000000..94232cdf --- /dev/null +++ b/libraries/oled-ssd1306/OLEDDisplayUi.cpp @@ -0,0 +1,406 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +#include "OLEDDisplayUi.h" + +OLEDDisplayUi::OLEDDisplayUi(OLEDDisplay *display) { + this->display = display; +} + +void OLEDDisplayUi::init() { + this->display->init(); +} + +void OLEDDisplayUi::setTargetFPS(uint8_t fps){ + float oldInterval = this->updateInterval; + this->updateInterval = ((float) 1.0 / (float) fps) * 1000; + + // Calculate new ticksPerFrame + float changeRatio = oldInterval / (float) this->updateInterval; + this->ticksPerFrame *= changeRatio; + this->ticksPerTransition *= changeRatio; +} + +// -/------ Automatic controll ------\- + +void OLEDDisplayUi::enableAutoTransition(){ + this->autoTransition = true; +} +void OLEDDisplayUi::disableAutoTransition(){ + this->autoTransition = false; +} +void OLEDDisplayUi::setAutoTransitionForwards(){ + this->state.frameTransitionDirection = 1; + this->lastTransitionDirection = 1; +} +void OLEDDisplayUi::setAutoTransitionBackwards(){ + this->state.frameTransitionDirection = -1; + this->lastTransitionDirection = -1; +} +void OLEDDisplayUi::setTimePerFrame(uint16_t time){ + this->ticksPerFrame = (int) ( (float) time / (float) updateInterval); +} +void OLEDDisplayUi::setTimePerTransition(uint16_t time){ + this->ticksPerTransition = (int) ( (float) time / (float) updateInterval); +} + +// -/------ Customize indicator position and style -------\- +void OLEDDisplayUi::enableIndicator(){ + this->state.isIndicatorDrawen = true; +} + +void OLEDDisplayUi::disableIndicator(){ + this->state.isIndicatorDrawen = false; +} + +void OLEDDisplayUi::enableAllIndicators(){ + this->shouldDrawIndicators = true; +} + +void OLEDDisplayUi::disableAllIndicators(){ + this->shouldDrawIndicators = false; +} + +void OLEDDisplayUi::setIndicatorPosition(IndicatorPosition pos) { + this->indicatorPosition = pos; +} +void OLEDDisplayUi::setIndicatorDirection(IndicatorDirection dir) { + this->indicatorDirection = dir; +} +void OLEDDisplayUi::setActiveSymbol(const char* symbol) { + this->activeSymbol = symbol; +} +void OLEDDisplayUi::setInactiveSymbol(const char* symbol) { + this->inactiveSymbol = symbol; +} + + +// -/----- Frame settings -----\- +void OLEDDisplayUi::setFrameAnimation(AnimationDirection dir) { + this->frameAnimationDirection = dir; +} +void OLEDDisplayUi::setFrames(FrameCallback* frameFunctions, uint8_t frameCount) { + this->frameFunctions = frameFunctions; + this->frameCount = frameCount; + this->resetState(); +} + +// -/----- Overlays ------\- +void OLEDDisplayUi::setOverlays(OverlayCallback* overlayFunctions, uint8_t overlayCount){ + this->overlayFunctions = overlayFunctions; + this->overlayCount = overlayCount; +} + +// -/----- Loading Process -----\- + +void OLEDDisplayUi::setLoadingDrawFunction(LoadingDrawFunction loadingDrawFunction) { + this->loadingDrawFunction = loadingDrawFunction; +} + +void OLEDDisplayUi::runLoadingProcess(LoadingStage* stages, uint8_t stagesCount) { + uint8_t progress = 0; + uint8_t increment = 100 / stagesCount; + + for (uint8_t i = 0; i < stagesCount; i++) { + display->clear(); + this->loadingDrawFunction(this->display, &stages[i], progress); + display->display(); + + stages[i].callback(); + + progress += increment; + optimistic_yield(10000); + } + + display->clear(); + this->loadingDrawFunction(this->display, &stages[stagesCount-1], progress); + display->display(); + + delay(150); +} + +// -/----- Manuel control -----\- +void OLEDDisplayUi::nextFrame() { + if (this->state.frameState != IN_TRANSITION) { + this->state.manuelControll = true; + this->state.frameState = IN_TRANSITION; + this->state.ticksSinceLastStateSwitch = 0; + this->lastTransitionDirection = this->state.frameTransitionDirection; + this->state.frameTransitionDirection = 1; + } +} +void OLEDDisplayUi::previousFrame() { + if (this->state.frameState != IN_TRANSITION) { + this->state.manuelControll = true; + this->state.frameState = IN_TRANSITION; + this->state.ticksSinceLastStateSwitch = 0; + this->lastTransitionDirection = this->state.frameTransitionDirection; + this->state.frameTransitionDirection = -1; + } +} + +void OLEDDisplayUi::switchToFrame(uint8_t frame) { + if (frame >= this->frameCount) return; + this->state.ticksSinceLastStateSwitch = 0; + if (frame == this->state.currentFrame) return; + this->state.frameState = FIXED; + this->state.currentFrame = frame; + this->state.isIndicatorDrawen = true; +} + +void OLEDDisplayUi::transitionToFrame(uint8_t frame) { + if (frame >= this->frameCount) return; + this->state.ticksSinceLastStateSwitch = 0; + if (frame == this->state.currentFrame) return; + this->nextFrameNumber = frame; + this->lastTransitionDirection = this->state.frameTransitionDirection; + this->state.manuelControll = true; + this->state.frameState = IN_TRANSITION; + this->state.frameTransitionDirection = frame < this->state.currentFrame ? -1 : 1; +} + + +// -/----- State information -----\- +OLEDDisplayUiState* OLEDDisplayUi::getUiState(){ + return &this->state; +} + + +int8_t OLEDDisplayUi::update(){ + long frameStart = millis(); + int8_t timeBudget = this->updateInterval - (frameStart - this->state.lastUpdate); + if ( timeBudget <= 0) { + // Implement frame skipping to ensure time budget is keept + if (this->autoTransition && this->state.lastUpdate != 0) this->state.ticksSinceLastStateSwitch += ceil(-timeBudget / this->updateInterval); + + this->state.lastUpdate = frameStart; + this->tick(); + } + return this->updateInterval - (millis() - frameStart); +} + + +void OLEDDisplayUi::tick() { + this->state.ticksSinceLastStateSwitch++; + + switch (this->state.frameState) { + case IN_TRANSITION: + if (this->state.ticksSinceLastStateSwitch >= this->ticksPerTransition){ + this->state.frameState = FIXED; + this->state.currentFrame = getNextFrameNumber(); + this->state.ticksSinceLastStateSwitch = 0; + this->nextFrameNumber = -1; + } + break; + case FIXED: + // Revert manuelControll + if (this->state.manuelControll) { + this->state.frameTransitionDirection = this->lastTransitionDirection; + this->state.manuelControll = false; + } + if (this->state.ticksSinceLastStateSwitch >= this->ticksPerFrame){ + if (this->autoTransition){ + this->state.frameState = IN_TRANSITION; + } + this->state.ticksSinceLastStateSwitch = 0; + } + break; + } + + this->display->clear(); + this->drawFrame(); + if (shouldDrawIndicators) { + this->drawIndicator(); + } + this->drawOverlays(); + this->display->display(); +} + +void OLEDDisplayUi::resetState() { + this->state.lastUpdate = 0; + this->state.ticksSinceLastStateSwitch = 0; + this->state.frameState = FIXED; + this->state.currentFrame = 0; + this->state.isIndicatorDrawen = true; +} + +void OLEDDisplayUi::drawFrame(){ + switch (this->state.frameState){ + case IN_TRANSITION: { + float progress = (float) this->state.ticksSinceLastStateSwitch / (float) this->ticksPerTransition; + int16_t x, y, x1, y1; + switch(this->frameAnimationDirection){ + case SLIDE_LEFT: + x = -128 * progress; + y = 0; + x1 = x + 128; + y1 = 0; + break; + case SLIDE_RIGHT: + x = 128 * progress; + y = 0; + x1 = x - 128; + y1 = 0; + break; + case SLIDE_UP: + x = 0; + y = -64 * progress; + x1 = 0; + y1 = y + 64; + break; + case SLIDE_DOWN: + x = 0; + y = 64 * progress; + x1 = 0; + y1 = y - 64; + break; + } + + // Invert animation if direction is reversed. + int8_t dir = this->state.frameTransitionDirection >= 0 ? 1 : -1; + x *= dir; y *= dir; x1 *= dir; y1 *= dir; + + bool drawenCurrentFrame; + + + // Prope each frameFunction for the indicator Drawen state + this->enableIndicator(); + (this->frameFunctions[this->state.currentFrame])(this->display, &this->state, x, y); + drawenCurrentFrame = this->state.isIndicatorDrawen; + + this->enableIndicator(); + (this->frameFunctions[this->getNextFrameNumber()])(this->display, &this->state, x1, y1); + + // Build up the indicatorDrawState + if (drawenCurrentFrame && !this->state.isIndicatorDrawen) { + // Drawen now but not next + this->indicatorDrawState = 2; + } else if (!drawenCurrentFrame && this->state.isIndicatorDrawen) { + // Not drawen now but next + this->indicatorDrawState = 1; + } else if (!drawenCurrentFrame && !this->state.isIndicatorDrawen) { + // Not drawen in both frames + this->indicatorDrawState = 3; + } + + // If the indicator isn't draw in the current frame + // reflect it in state.isIndicatorDrawen + if (!drawenCurrentFrame) this->state.isIndicatorDrawen = false; + + break; + } + case FIXED: + // Always assume that the indicator is drawn! + // And set indicatorDrawState to "not known yet" + this->indicatorDrawState = 0; + this->enableIndicator(); + (this->frameFunctions[this->state.currentFrame])(this->display, &this->state, 0, 0); + break; + } +} + +void OLEDDisplayUi::drawIndicator() { + + // Only draw if the indicator is invisible + // for both frames or + // the indiactor is shown and we are IN_TRANSITION + if (this->indicatorDrawState == 3 || (!this->state.isIndicatorDrawen && this->state.frameState != IN_TRANSITION)) { + return; + } + + uint8_t posOfHighlightFrame; + float indicatorFadeProgress = 0; + + // if the indicator needs to be slided in we want to + // highlight the next frame in the transition + uint8_t frameToHighlight = this->indicatorDrawState == 1 ? this->getNextFrameNumber() : this->state.currentFrame; + + // Calculate the frame that needs to be highlighted + // based on the Direction the indiactor is drawn + switch (this->indicatorDirection){ + case LEFT_RIGHT: + posOfHighlightFrame = frameToHighlight; + break; + case RIGHT_LEFT: + posOfHighlightFrame = this->frameCount - frameToHighlight; + break; + } + + switch (this->indicatorDrawState) { + case 1: // Indicator was not drawn in this frame but will be in next + // Slide IN + indicatorFadeProgress = 1 - ((float) this->state.ticksSinceLastStateSwitch / (float) this->ticksPerTransition); + break; + case 2: // Indicator was drawn in this frame but not in next + // Slide OUT + indicatorFadeProgress = ((float) this->state.ticksSinceLastStateSwitch / (float) this->ticksPerTransition); + break; + } + + uint16_t frameStartPos = (12 * frameCount / 2); + const char *image; + uint16_t x,y; + for (byte i = 0; i < this->frameCount; i++) { + + switch (this->indicatorPosition){ + case TOP: + y = 0 - (8 * indicatorFadeProgress); + x = 64 - frameStartPos + 12 * i; + break; + case BOTTOM: + y = 56 + (8 * indicatorFadeProgress); + x = 64 - frameStartPos + 12 * i; + break; + case RIGHT: + x = 120 + (8 * indicatorFadeProgress); + y = 32 - frameStartPos + 2 + 12 * i; + break; + case LEFT: + x = 0 - (8 * indicatorFadeProgress); + y = 32 - frameStartPos + 2 + 12 * i; + break; + } + + if (posOfHighlightFrame == i) { + image = this->activeSymbol; + } else { + image = this->inactiveSymbol; + } + + this->display->drawFastImage(x, y, 8, 8, image); + } +} + +void OLEDDisplayUi::drawOverlays() { + for (uint8_t i=0;ioverlayCount;i++){ + (this->overlayFunctions[i])(this->display, &this->state); + } +} + +uint8_t OLEDDisplayUi::getNextFrameNumber(){ + if (this->nextFrameNumber != -1) return this->nextFrameNumber; + return (this->state.currentFrame + this->frameCount + this->state.frameTransitionDirection) % this->frameCount; +} diff --git a/libraries/oled-ssd1306/OLEDDisplayUi.h b/libraries/oled-ssd1306/OLEDDisplayUi.h new file mode 100644 index 00000000..35a1e99b --- /dev/null +++ b/libraries/oled-ssd1306/OLEDDisplayUi.h @@ -0,0 +1,305 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +#ifndef OLEDDISPLAYUI_h +#define OLEDDISPLAYUI_h + +#include +#include "OLEDDisplay.h" + +//#define DEBUG_OLEDDISPLAYUI(...) Serial.printf( __VA_ARGS__ ) + +#ifndef DEBUG_OLEDDISPLAYUI +#define DEBUG_OLEDDISPLAYUI(...) +#endif + +enum AnimationDirection { + SLIDE_UP, + SLIDE_DOWN, + SLIDE_LEFT, + SLIDE_RIGHT +}; + +enum IndicatorPosition { + TOP, + RIGHT, + BOTTOM, + LEFT +}; + +enum IndicatorDirection { + LEFT_RIGHT, + RIGHT_LEFT +}; + +enum FrameState { + IN_TRANSITION, + FIXED +}; + + +const char ANIMATION_activeSymbol[] PROGMEM = { + 0x00, 0x18, 0x3c, 0x7e, 0x7e, 0x3c, 0x18, 0x00 +}; + +const char ANIMATION_inactiveSymbol[] PROGMEM = { + 0x00, 0x0, 0x0, 0x18, 0x18, 0x0, 0x0, 0x00 +}; + + +// Structure of the UiState +struct OLEDDisplayUiState { + uint64_t lastUpdate = 0; + uint16_t ticksSinceLastStateSwitch = 0; + + FrameState frameState = FIXED; + uint8_t currentFrame = 0; + + bool isIndicatorDrawen = true; + + // Normal = 1, Inverse = -1; + int8_t frameTransitionDirection = 1; + + bool manuelControll = false; + + // Custom data that can be used by the user + void* userData = NULL; +}; + +struct LoadingStage { + const char* process; + void (*callback)(); +}; + +typedef void (*FrameCallback)(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y); +typedef void (*OverlayCallback)(OLEDDisplay *display, OLEDDisplayUiState* state); +typedef void (*LoadingDrawFunction)(OLEDDisplay *display, LoadingStage* stage, uint8_t progress); + +class OLEDDisplayUi { + private: + OLEDDisplay *display; + + // Symbols for the Indicator + IndicatorPosition indicatorPosition = BOTTOM; + IndicatorDirection indicatorDirection = LEFT_RIGHT; + + const char* activeSymbol = ANIMATION_activeSymbol; + const char* inactiveSymbol = ANIMATION_inactiveSymbol; + + bool shouldDrawIndicators = true; + + // Values for the Frames + AnimationDirection frameAnimationDirection = SLIDE_RIGHT; + + int8_t lastTransitionDirection = 1; + + uint16_t ticksPerFrame = 151; // ~ 5000ms at 30 FPS + uint16_t ticksPerTransition = 15; // ~ 500ms at 30 FPS + + bool autoTransition = true; + + FrameCallback* frameFunctions; + uint8_t frameCount = 0; + + // Internally used to transition to a specific frame + int8_t nextFrameNumber = -1; + + // Values for Overlays + OverlayCallback* overlayFunctions; + uint8_t overlayCount = 0; + + // Will the Indicator be drawen + // 3 Not drawn in both frames + // 2 Drawn this frame but not next + // 1 Not drown this frame but next + // 0 Not known yet + uint8_t indicatorDrawState = 1; + + // Loading screen + LoadingDrawFunction loadingDrawFunction = [](OLEDDisplay *display, LoadingStage* stage, uint8_t progress) { + display->setTextAlignment(TEXT_ALIGN_CENTER); + display->setFont(ArialMT_Plain_10); + display->drawString(64, 18, stage->process); + display->drawProgressBar(4, 32, 120, 8, progress); + }; + + // UI State + OLEDDisplayUiState state; + + // Bookeeping for update + uint8_t updateInterval = 33; + + uint8_t getNextFrameNumber(); + void drawIndicator(); + void drawFrame(); + void drawOverlays(); + void tick(); + void resetState(); + + public: + + OLEDDisplayUi(OLEDDisplay *display); + + /** + * Initialise the display + */ + void init(); + + /** + * Configure the internal used target FPS + */ + void setTargetFPS(uint8_t fps); + + // Automatic Controll + /** + * Enable automatic transition to next frame after the some time can be configured with `setTimePerFrame` and `setTimePerTransition`. + */ + void enableAutoTransition(); + + /** + * Disable automatic transition to next frame. + */ + void disableAutoTransition(); + + /** + * Set the direction if the automatic transitioning + */ + void setAutoTransitionForwards(); + void setAutoTransitionBackwards(); + + /** + * Set the approx. time a frame is displayed + */ + void setTimePerFrame(uint16_t time); + + /** + * Set the approx. time a transition will take + */ + void setTimePerTransition(uint16_t time); + + // Customize indicator position and style + + /** + * Draw the indicator. + * This is the defaut state for all frames if + * the indicator was hidden on the previous frame + * it will be slided in. + */ + void enableIndicator(); + + /** + * Don't draw the indicator. + * This will slide out the indicator + * when transitioning to the next frame. + */ + void disableIndicator(); + + /** + * Enable drawing of indicators + */ + void enableAllIndicators(); + + /** + * Disable draw of indicators. + */ + void disableAllIndicators(); + + /** + * Set the position of the indicator bar. + */ + void setIndicatorPosition(IndicatorPosition pos); + + /** + * Set the direction of the indicator bar. Defining the order of frames ASCENDING / DESCENDING + */ + void setIndicatorDirection(IndicatorDirection dir); + + /** + * Set the symbol to indicate an active frame in the indicator bar. + */ + void setActiveSymbol(const char* symbol); + + /** + * Set the symbol to indicate an inactive frame in the indicator bar. + */ + void setInactiveSymbol(const char* symbol); + + + // Frame settings + + /** + * Configure what animation is used to transition from one frame to another + */ + void setFrameAnimation(AnimationDirection dir); + + /** + * Add frame drawing functions + */ + void setFrames(FrameCallback* frameFunctions, uint8_t frameCount); + + // Overlay + + /** + * Add overlays drawing functions that are draw independent of the Frames + */ + void setOverlays(OverlayCallback* overlayFunctions, uint8_t overlayCount); + + + // Loading animation + /** + * Set the function that will draw each step + * in the loading animation + */ + void setLoadingDrawFunction(LoadingDrawFunction loadingFunction); + + + /** + * Run the loading process + */ + void runLoadingProcess(LoadingStage* stages, uint8_t stagesCount); + + + // Manual Control + void nextFrame(); + void previousFrame(); + + /** + * Switch without transition to frame `frame`. + */ + void switchToFrame(uint8_t frame); + + /** + * Transition to frame `frame`, when the `frame` number is bigger than the current + * frame the forward animation will be used, otherwise the backwards animation is used. + */ + void transitionToFrame(uint8_t frame); + + // State Info + OLEDDisplayUiState* getUiState(); + + int8_t update(); +}; +#endif diff --git a/libraries/oled-ssd1306/README.md b/libraries/oled-ssd1306/README.md new file mode 100644 index 00000000..01c134c3 --- /dev/null +++ b/libraries/oled-ssd1306/README.md @@ -0,0 +1,393 @@ +esp8266-oled-ssd1306 [![Build Status](https://travis-ci.org/squix78/esp8266-oled-ssd1306.svg?branch=dev-branch-3.0.0)](https://travis-ci.org/squix78/esp8266-oled-ssd1306) +============ + +> We just released version 3.0.0. Please have a look at our [upgrade guide](UPGRADE-3.0.md) + +This is a driver for the SSD1306 based 128x64 pixel OLED display running on the Arduino/ESP8266 platform. +Can be used with either the I2C or SPI version of the display + +You can either download this library as a zip file and unpack it to your Arduino/libraries folder or (once it has been added) choose it from the Arduino library manager. + +It is also available as a platformio library. Just execute the following command: +``` +platformio lib install 562 +``` + +## Credits +This library has initially been written by Daniel Eichhorn (@squix78). Many thanks go to Fabrice Weinberg (@FWeinb) for optimizing and refactoring many aspects of the library. Also many thanks to the many committers who helped to add new features and who fixed many bugs. +The init sequence for the SSD1306 was inspired by Adafruit's library for the same display. + +## Usage + +Check out the examples folder for a few comprehensive demonstrations how to use the library. Also check out the ESP8266 Weather Station library (https://github.com/squix78/esp8266-weather-station) which uses the OLED library to display beautiful weather information. + +## Upgrade + +The API changed a lot with the 3.0 release. If you were using this library with older versions please have a look at the [Upgrade Guide](UPGRADE-3.0.md). + +## Features + +* Draw pixels at given coordinates +* Draw lines from given coordinates to given coordinates +* Draw or fill a rectangle with given dimensions +* Draw Text at given coordinates: + * Define Alignment: Left, Right and Center + * Set the Fontface you want to use (see section Fonts below) + * Limit the width of the text by an amount of pixels. Before this widths will be reached, the renderer will wrap the text to a new line if possible +* Display content in automatically side scrolling carousel + * Define transition cycles + * Define how long one frame will be displayed + * Draw the different frames in callback methods + * One indicator per frame will be automatically displayed. The active frame will be displayed from inactive once + +## Fonts + +Fonts are defined in a proprietary but open format. You can create new font files by choosing from a given list +of open sourced Fonts from this web app: http://oleddisplay.squix.ch +Choose the font family, style and size, check the preview image and if you like what you see click the "Create" button. This will create the font array in a text area form where you can copy and paste it into a new or existing header file. + + +![FontTool](https://github.com/squix78/esp8266-oled-ssd1306/raw/master/resources/FontTool.png) + +## Hardware Abstraction + +The library supports different protocols to access the OLED display. Currently there is support for I2C using the built in Wire.h library, I2C by using the much faster BRZO I2C library [https://github.com/pasko-zh/brzo_i2c] written in assembler and it also supports displays which come with the SPI interface. + +### I2C with Wire.h + +```C++ +#include +#include "SSD1306.h" + +SSD1306 display(ADDRESS, SDA, SDC); +``` +or for a SH1106: +```C++ +#include +#include "SH1106.h" + +SH1106 display(ADDRESS, SDA, SDC); +``` + +### I2C with brzo_i2c + +```C++ +#include +#include "SSD1306Brzo.h" + +SSD1306Brzo display(ADDRESS, SDA, SDC); +``` +or for the SH1106: +```C++ +#include +#include "SH1106Brzo.h" + +SH1106Brzo display(ADDRESS, SDA, SDC); +``` + +### SPI + +```C++ +#include +#include "SSD1306Spi.h" + +SSD1306Spi display(RES, DC, CS); +``` +or for the SH1106: +```C++ +#include +#include "SH1106Spi.h" + +SH1106Spi display(RES, DC, CS); +``` + +## API + +### Display Control + +```C++ +// Initialize the display +void init(); + +// Free the memory used by the display +void end(); + +// Cycle through the initialization +void resetDisplay(void); + +// Connect again to the display through I2C +void reconnect(void); + +// Turn the display on +void displayOn(void); + +// Turn the display offs +void displayOff(void); + +// Clear the local pixel buffer +void clear(void); + +// Write the buffer to the display memory +void display(void); + +// Inverted display mode +void invertDisplay(void); + +// Normal display mode +void normalDisplay(void); + +// Set display contrast +void setContrast(char contrast); + +// Turn the display upside down +void flipScreenVertically(); +``` + +## Pixel drawing + +```C++ + +/* Drawing functions */ +// Sets the color of all pixel operations +void setColor(OLEDDISPLAY_COLOR color); + +// Draw a pixel at given position +void setPixel(int16_t x, int16_t y); + +// Draw a line from position 0 to position 1 +void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1); + +// Draw the border of a rectangle at the given location +void drawRect(int16_t x, int16_t y, int16_t width, int16_t height); + +// Fill the rectangle +void fillRect(int16_t x, int16_t y, int16_t width, int16_t height); + +// Draw the border of a circle +void drawCircle(int16_t x, int16_t y, int16_t radius); + +// Fill circle +void fillCircle(int16_t x, int16_t y, int16_t radius); + +// Draw a line horizontally +void drawHorizontalLine(int16_t x, int16_t y, int16_t length); + +// Draw a lin vertically +void drawVerticalLine(int16_t x, int16_t y, int16_t length); + +// Draws a rounded progress bar with the outer dimensions given by width and height. Progress is +// a unsigned byte value between 0 and 100 +void drawProgressBar(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t progress); + +// Draw a bitmap in the internal image format +void drawFastImage(int16_t x, int16_t y, int16_t width, int16_t height, const char *image); + +// Draw a XBM +void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, const char* xbm); +``` + +## Text operations + +``` C++ +void drawString(int16_t x, int16_t y, String text); + +// Draws a String with a maximum width at the given location. +// If the given String is wider than the specified width +// The text will be wrapped to the next line at a space or dash +void drawStringMaxWidth(int16_t x, int16_t y, int16_t maxLineWidth, String text); + +// Returns the width of the const char* with the current +// font settings +uint16_t getStringWidth(const char* text, uint16_t length); + +// Convencience method for the const char version +uint16_t getStringWidth(String text); + +// Specifies relative to which anchor point +// the text is rendered. Available constants: +// TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER_BOTH +void setTextAlignment(OLEDDISPLAY_TEXT_ALIGNMENT textAlignment); + +// Sets the current font. Available default fonts +// ArialMT_Plain_10, ArialMT_Plain_16, ArialMT_Plain_24 +// Or create one with the font tool at http://oleddisplay.squix.ch +void setFont(const char* fontData); +``` + +## Ui Library (OLEDDisplayUi) + +The Ui Library is used to provide a basic set of Ui elements called, `Frames` and `Overlays`. A `Frame` is used to provide +information the default behaviour is to display a `Frame` for a defined time and than move to the next. The library also provides an `Indicator` that will be updated accordingly. An `Overlay` on the other hand is a pieces of information (e.g. a clock) that is displayed always at the same position. + + +```C++ +/** + * Initialise the display + */ +void init(); + +/** + * Configure the internal used target FPS + */ +void setTargetFPS(uint8_t fps); + +/** + * Enable automatic transition to next frame after the some time can be configured with + * `setTimePerFrame` and `setTimePerTransition`. + */ +void enableAutoTransition(); + +/** + * Disable automatic transition to next frame. + */ +void disableAutoTransition(); + +/** + * Set the direction if the automatic transitioning + */ +void setAutoTransitionForwards(); +void setAutoTransitionBackwards(); + +/** + * Set the approx. time a frame is displayed + */ +void setTimePerFrame(uint16_t time); + +/** + * Set the approx. time a transition will take + */ +void setTimePerTransition(uint16_t time); + +/** + * Draw the indicator. + * This is the default state for all frames if + * the indicator was hidden on the previous frame + * it will be slided in. + */ +void enableIndicator(); + +/** + * Don't draw the indicator. + * This will slide out the indicator + * when transitioning to the next frame. + */ +void disableIndicator(); + +/** + * Enable drawing of all indicators. + */ +void enableAllIndicators(); + +/** + * Disable drawing of all indicators. + */ +void disableAllIndicators(); + +/** + * Set the position of the indicator bar. + */ +void setIndicatorPosition(IndicatorPosition pos); + +/** + * Set the direction of the indicator bar. Defining the order of frames ASCENDING / DESCENDING + */ +void setIndicatorDirection(IndicatorDirection dir); + +/** + * Set the symbol to indicate an active frame in the indicator bar. + */ +void setActiveSymbol(const char* symbol); + +/** + * Set the symbol to indicate an inactive frame in the indicator bar. + */ +void setInactiveSymbol(const char* symbol); + +/** + * Configure what animation is used to transition from one frame to another + */ +void setFrameAnimation(AnimationDirection dir); + +/** + * Add frame drawing functions + */ +void setFrames(FrameCallback* frameFunctions, uint8_t frameCount); + +/** + * Add overlays drawing functions that are draw independent of the Frames + */ +void setOverlays(OverlayCallback* overlayFunctions, uint8_t overlayCount); + +/** + * Set the function that will draw each step + * in the loading animation + */ +void setLoadingDrawFunction(LoadingDrawFunction loadingDrawFunction); + +/** + * Run the loading process + */ +void runLoadingProcess(LoadingStage* stages, uint8_t stagesCount); + +// Manuell Controll +void nextFrame(); +void previousFrame(); + +/** + * Switch without transition to frame `frame`. + */ +void switchToFrame(uint8_t frame); + +/** + * Transition to frame `frame`, when the `frame` number is bigger than the current + * frame the forward animation will be used, otherwise the backwards animation is used. + */ +void transitionToFrame(uint8_t frame); + +// State Info +OLEDDisplayUiState* getUiState(); + +// This needs to be called in the main loop +// the returned value is the remaining time (in ms) +// you have to draw after drawing to keep the frame budget. +int8_t update(); +``` + +## Example: SSD1306Demo + +### Frame 1 +![DemoFrame1](https://github.com/squix78/esp8266-oled-ssd1306/raw/master/resources/DemoFrame1.jpg) + +This frame shows three things: + * How to draw an xbm image + * How to draw a static text which is not moved by the frame transition + * The active/inactive frame indicators + +### Frame 2 +![DemoFrame2](https://github.com/squix78/esp8266-oled-ssd1306/raw/master/resources/DemoFrame2.jpg) + +Currently there are one fontface with three sizes included in the library: Arial 10, 16 and 24. Once the converter is published you will be able to convert any ttf font into the used format. + +### Frame 3 + +![DemoFrame3](https://github.com/squix78/esp8266-oled-ssd1306/raw/master/resources/DemoFrame3.jpg) + +This frame demonstrates the text alignment. The coordinates in the frame show relative to which position the texts have been rendered. + +### Frame 4 + +![DemoFrame4](https://github.com/squix78/esp8266-oled-ssd1306/raw/master/resources/DemoFrame4.jpg) + +This shows how to use define a maximum width after which the driver automatically wraps a word to the next line. This comes in very handy if you have longer texts to display. + +### SPI version + +![SPIVersion](https://github.com/neptune2/esp8266-oled-ssd1306/raw/master/resources/SPI_version.jpg) + +This shows the code working on the SPI version of the display. See demo code for ESP8266 pins used. + +## Project using this library + + * [QRCode ESP8266](https://github.com/anunpanya/ESP8266_QRcode) (by @anunpanya) + * [Scan I2C](https://github.com/hallard/Scan-I2C-WiFi) (by @hallard) + * [Weather Station](https://github.com/squix78/esp8266-weather-station) (by @squix) diff --git a/libraries/oled-ssd1306/SH1106.h b/libraries/oled-ssd1306/SH1106.h new file mode 100644 index 00000000..55dd4090 --- /dev/null +++ b/libraries/oled-ssd1306/SH1106.h @@ -0,0 +1,36 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#ifndef SH1106_h +#define SH1106_h +#include "SH1106Wire.h" + +// For make SH1106 an alias for SH1106Wire +typedef SH1106Wire SH1106; + + +#endif diff --git a/libraries/oled-ssd1306/SH1106Brzo.h b/libraries/oled-ssd1306/SH1106Brzo.h new file mode 100644 index 00000000..4270066d --- /dev/null +++ b/libraries/oled-ssd1306/SH1106Brzo.h @@ -0,0 +1,133 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#ifndef SH1106Brzo_h +#define SH1106Brzo_h + +#include "OLEDDisplay.h" +#include + +#if F_CPU == 160000000L + #define BRZO_I2C_SPEED 1000 +#else + #define BRZO_I2C_SPEED 800 +#endif + +class SH1106Brzo : public OLEDDisplay { + private: + uint8_t _address; + uint8_t _sda; + uint8_t _scl; + + public: + SH1106Brzo(uint8_t _address, uint8_t _sda, uint8_t _scl) { + this->_address = _address; + this->_sda = _sda; + this->_scl = _scl; + } + + bool connect(){ + brzo_i2c_setup(_sda, _scl, 0); + return true; + } + + void display(void) { + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t minBoundY = ~0; + uint8_t maxBoundY = 0; + + uint8_t minBoundX = ~0; + uint8_t maxBoundX = 0; + uint8_t x, y; + + // Calculate the Y bounding box of changes + // and copy buffer[pos] to buffer_back[pos]; + for (y = 0; y < (DISPLAY_HEIGHT / 8); y++) { + for (x = 0; x < DISPLAY_WIDTH; x++) { + uint16_t pos = x + y * DISPLAY_WIDTH; + if (buffer[pos] != buffer_back[pos]) { + minBoundY = _min(minBoundY, y); + maxBoundY = _max(maxBoundY, y); + minBoundX = _min(minBoundX, x); + maxBoundX = _max(maxBoundX, x); + } + buffer_back[pos] = buffer[pos]; + } + optimistic_yield(10000); + } + + // If the minBoundY wasn't updated + // we can savely assume that buffer_back[pos] == buffer[pos] + // holdes true for all values of pos + if (minBoundY == ~0) return; + + byte k = 0; + uint8_t sendBuffer[17]; + sendBuffer[0] = 0x40; + + // Calculate the colum offset + uint8_t minBoundXp2H = (minBoundX + 2) & 0x0F; + uint8_t minBoundXp2L = 0x10 | ((minBoundX + 2) >> 4 ); + + brzo_i2c_start_transaction(this->_address, BRZO_I2C_SPEED); + + for (y = minBoundY; y <= maxBoundY; y++) { + sendCommand(0xB0 + y); + sendCommand(minBoundXp2H); + sendCommand(minBoundXp2L); + for (x = minBoundX; x <= maxBoundX; x++) { + k++; + sendBuffer[k] = buffer[x + y * DISPLAY_WIDTH]; + if (k == 16) { + brzo_i2c_write(sendBuffer, 17, true); + k = 0; + } + } + if (k != 0) { + brzo_i2c_write(sendBuffer, k + 1, true); + k = 0; + } + optimistic_yield(10000); + } + if (k != 0) { + brzo_i2c_write(sendBuffer, k + 1, true); + } + brzo_i2c_end_transaction(); + #else + #endif + } + + private: + inline void sendCommand(uint8_t com) __attribute__((always_inline)){ + uint8_t command[2] = {0x80 /* command mode */, com}; + brzo_i2c_start_transaction(_address, BRZO_I2C_SPEED); + brzo_i2c_write(command, 2, true); + brzo_i2c_end_transaction(); + } +}; + +#endif diff --git a/libraries/oled-ssd1306/SH1106Spi.h b/libraries/oled-ssd1306/SH1106Spi.h new file mode 100644 index 00000000..48d2cfba --- /dev/null +++ b/libraries/oled-ssd1306/SH1106Spi.h @@ -0,0 +1,128 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#ifndef SH1106Spi_h +#define SH1106Spi_h + +#include "OLEDDisplay.h" +#include + +class SH1106Spi : public OLEDDisplay { + private: + uint8_t _rst; + uint8_t _dc; + + public: + + SH1106Spi(uint8_t _rst, uint8_t _dc) { + this->_rst = _rst; + this->_dc = _dc; + } + + bool connect(){ + pinMode(_dc, OUTPUT); + pinMode(_rst, OUTPUT); + + SPI.begin (); + SPI.setClockDivider (SPI_CLOCK_DIV2); + + // Pulse Reset low for 10ms + digitalWrite(_rst, HIGH); + delay(1); + digitalWrite(_rst, LOW); + delay(10); + digitalWrite(_rst, HIGH); + return true; + } + + void display(void) { + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t minBoundY = ~0; + uint8_t maxBoundY = 0; + + uint8_t minBoundX = ~0; + uint8_t maxBoundX = 0; + + uint8_t x, y; + + // Calculate the Y bounding box of changes + // and copy buffer[pos] to buffer_back[pos]; + for (y = 0; y < (DISPLAY_HEIGHT / 8); y++) { + for (x = 0; x < DISPLAY_WIDTH; x++) { + uint16_t pos = x + y * DISPLAY_WIDTH; + if (buffer[pos] != buffer_back[pos]) { + minBoundY = _min(minBoundY, y); + maxBoundY = _max(maxBoundY, y); + minBoundX = _min(minBoundX, x); + maxBoundX = _max(maxBoundX, x); + } + buffer_back[pos] = buffer[pos]; + } + optimistic_yield(10000); + } + + // If the minBoundY wasn't updated + // we can savely assume that buffer_back[pos] == buffer[pos] + // holdes true for all values of pos + if (minBoundY == ~0) return; + + // Calculate the colum offset + uint8_t minBoundXp2H = (minBoundX + 2) & 0x0F; + uint8_t minBoundXp2L = 0x10 | ((minBoundX + 2) >> 4 ); + + for (y = minBoundY; y <= maxBoundY; y++) { + sendCommand(0xB0 + y); + sendCommand(minBoundXp2H); + sendCommand(minBoundXp2L); + digitalWrite(_dc, HIGH); // data mode + for (x = minBoundX; x <= maxBoundX; x++) { + SPI.transfer(buffer[x + y * DISPLAY_WIDTH]); + } + optimistic_yield(10000); + } + #else + for (uint8_t y=0; y + +#define SH1106_SET_PUMP_VOLTAGE 0X30 +#define SH1106_SET_PUMP_MODE 0XAD +#define SH1106_PUMP_ON 0X8B +#define SH1106_PUMP_OFF 0X8A +//-------------------------------------- + +class SH1106Wire : public OLEDDisplay { + private: + uint8_t _address; + uint8_t _sda; + uint8_t _scl; + + public: + SH1106Wire(uint8_t _address, uint8_t _sda, uint8_t _scl) { + this->_address = _address; + this->_sda = _sda; + this->_scl = _scl; + } + + bool connect() { + Wire.begin(this->_sda, this->_scl); + // Let's use ~700khz if ESP8266 is in 160Mhz mode + // this will be limited to ~400khz if the ESP8266 in 80Mhz mode. + Wire.setClock(700000); + return true; + } + + void display(void) { + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t minBoundY = ~0; + uint8_t maxBoundY = 0; + + uint8_t minBoundX = ~0; + uint8_t maxBoundX = 0; + + uint8_t x, y; + + // Calculate the Y bounding box of changes + // and copy buffer[pos] to buffer_back[pos]; + for (y = 0; y < (DISPLAY_HEIGHT / 8); y++) { + for (x = 0; x < DISPLAY_WIDTH; x++) { + uint16_t pos = x + y * DISPLAY_WIDTH; + if (buffer[pos] != buffer_back[pos]) { + minBoundY = _min(minBoundY, y); + maxBoundY = _max(maxBoundY, y); + minBoundX = _min(minBoundX, x); + maxBoundX = _max(maxBoundX, x); + } + buffer_back[pos] = buffer[pos]; + } + optimistic_yield(10000); + } + + // If the minBoundY wasn't updated + // we can savely assume that buffer_back[pos] == buffer[pos] + // holdes true for all values of pos + if (minBoundY == ~0) return; + + // Calculate the colum offset + uint8_t minBoundXp2H = (minBoundX + 2) & 0x0F; + uint8_t minBoundXp2L = 0x10 | ((minBoundX + 2) >> 4 ); + + byte k = 0; + for (y = minBoundY; y <= maxBoundY; y++) { + sendCommand(0xB0 + y); + sendCommand(minBoundXp2H); + sendCommand(minBoundXp2L); + for (x = minBoundX; x <= maxBoundX; x++) { + if (k == 0) { + Wire.beginTransmission(_address); + Wire.write(0x40); + } + Wire.write(buffer[x + y * DISPLAY_WIDTH]); + k++; + if (k == 16) { + Wire.endTransmission(); + k = 0; + } + } + if (k != 0) { + Wire.endTransmission(); + k = 0; + } + optimistic_yield(10000); + } + + if (k != 0) { + Wire.endTransmission(); + } + #else + uint8_t * p = &buffer[0]; + for (uint8_t y=0; y<8; y++) { + sendCommand(0xB0+y); + sendCommand(0x02); + sendCommand(0x10); + for( uint8_t x=0; x<8; x++) { + Wire.beginTransmission(_address); + Wire.write(0x40); + for (uint8_t k = 0; k < 16; k++) { + Wire.write(*p++); + } + Wire.endTransmission(); + } + } + #endif + } + + private: + inline void sendCommand(uint8_t command) __attribute__((always_inline)){ + Wire.beginTransmission(_address); + Wire.write(0x80); + Wire.write(command); + Wire.endTransmission(); + } + + +}; + +#endif diff --git a/libraries/oled-ssd1306/SSD1306.h b/libraries/oled-ssd1306/SSD1306.h new file mode 100644 index 00000000..f3b79094 --- /dev/null +++ b/libraries/oled-ssd1306/SSD1306.h @@ -0,0 +1,36 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#ifndef SSD1306_h +#define SSD1306_h +#include "SSD1306Wire.h" + +// For legacy support make SSD1306 an alias for SSD1306 +typedef SSD1306Wire SSD1306; + + +#endif diff --git a/libraries/oled-ssd1306/SSD1306Brzo.h b/libraries/oled-ssd1306/SSD1306Brzo.h new file mode 100644 index 00000000..1cccd5da --- /dev/null +++ b/libraries/oled-ssd1306/SSD1306Brzo.h @@ -0,0 +1,149 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Credits for parts of this code go to Mike Rankin. Thank you so much for sharing! + */ + +#ifndef SSD1306Brzo_h +#define SSD1306Brzo_h + +#include "OLEDDisplay.h" +#include + +#if F_CPU == 160000000L + #define BRZO_I2C_SPEED 1000 +#else + #define BRZO_I2C_SPEED 800 +#endif + +class SSD1306Brzo : public OLEDDisplay { + private: + uint8_t _address; + uint8_t _sda; + uint8_t _scl; + + public: + SSD1306Brzo(uint8_t _address, uint8_t _sda, uint8_t _scl) { + this->_address = _address; + this->_sda = _sda; + this->_scl = _scl; + } + + bool connect(){ + brzo_i2c_setup(_sda, _scl, 0); + return true; + } + + void display(void) { + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t minBoundY = ~0; + uint8_t maxBoundY = 0; + + uint8_t minBoundX = ~0; + uint8_t maxBoundX = 0; + + uint8_t x, y; + + // Calculate the Y bounding box of changes + // and copy buffer[pos] to buffer_back[pos]; + for (y = 0; y < (DISPLAY_HEIGHT / 8); y++) { + for (x = 0; x < DISPLAY_WIDTH; x++) { + uint16_t pos = x + y * DISPLAY_WIDTH; + if (buffer[pos] != buffer_back[pos]) { + minBoundY = _min(minBoundY, y); + maxBoundY = _max(maxBoundY, y); + minBoundX = _min(minBoundX, x); + maxBoundX = _max(maxBoundX, x); + } + buffer_back[pos] = buffer[pos]; + } + optimistic_yield(10000); + } + + // If the minBoundY wasn't updated + // we can savely assume that buffer_back[pos] == buffer[pos] + // holdes true for all values of pos + if (minBoundY == ~0) return; + + sendCommand(COLUMNADDR); + sendCommand(minBoundX); + sendCommand(maxBoundX); + + sendCommand(PAGEADDR); + sendCommand(minBoundY); + sendCommand(maxBoundY); + + byte k = 0; + uint8_t sendBuffer[17]; + sendBuffer[0] = 0x40; + brzo_i2c_start_transaction(this->_address, BRZO_I2C_SPEED); + for (y = minBoundY; y <= maxBoundY; y++) { + for (x = minBoundX; x <= maxBoundX; x++) { + k++; + sendBuffer[k] = buffer[x + y * DISPLAY_WIDTH]; + if (k == 16) { + brzo_i2c_write(sendBuffer, 17, true); + k = 0; + } + } + optimistic_yield(10000); + } + brzo_i2c_write(sendBuffer, k + 1, true); + brzo_i2c_end_transaction(); + #else + // No double buffering + sendCommand(COLUMNADDR); + sendCommand(0x0); + sendCommand(0x7F); + + sendCommand(PAGEADDR); + sendCommand(0x0); + sendCommand(0x7); + + uint8_t sendBuffer[17]; + sendBuffer[0] = 0x40; + brzo_i2c_start_transaction(this->_address, BRZO_I2C_SPEED); + for (uint16_t i=0; i + +#if F_CPU == 160000000L + #define BRZO_I2C_SPEED 1000 +#else + #define BRZO_I2C_SPEED 800 +#endif + +class SSD1306Spi : public OLEDDisplay { + private: + uint8_t _rst; + uint8_t _dc; + uint8_t _cs; + + public: + SSD1306Spi(uint8_t _rst, uint8_t _dc, uint8_t _cs) { + this->_rst = _rst; + this->_dc = _dc; + this->_cs = _cs; + } + + bool connect(){ + pinMode(_dc, OUTPUT); + pinMode(_cs, OUTPUT); + pinMode(_rst, OUTPUT); + + SPI.begin (); + SPI.setClockDivider (SPI_CLOCK_DIV2); + + // Pulse Reset low for 10ms + digitalWrite(_rst, HIGH); + delay(1); + digitalWrite(_rst, LOW); + delay(10); + digitalWrite(_rst, HIGH); + return true; + } + + void display(void) { + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t minBoundY = ~0; + uint8_t maxBoundY = 0; + + uint8_t minBoundX = ~0; + uint8_t maxBoundX = 0; + + uint8_t x, y; + + // Calculate the Y bounding box of changes + // and copy buffer[pos] to buffer_back[pos]; + for (y = 0; y < (DISPLAY_HEIGHT / 8); y++) { + for (x = 0; x < DISPLAY_WIDTH; x++) { + uint16_t pos = x + y * DISPLAY_WIDTH; + if (buffer[pos] != buffer_back[pos]) { + minBoundY = _min(minBoundY, y); + maxBoundY = _max(maxBoundY, y); + minBoundX = _min(minBoundX, x); + maxBoundX = _max(maxBoundX, x); + } + buffer_back[pos] = buffer[pos]; + } + optimistic_yield(10000); + } + + // If the minBoundY wasn't updated + // we can savely assume that buffer_back[pos] == buffer[pos] + // holdes true for all values of pos + if (minBoundY == ~0) return; + + sendCommand(COLUMNADDR); + sendCommand(minBoundX); + sendCommand(maxBoundX); + + sendCommand(PAGEADDR); + sendCommand(minBoundY); + sendCommand(maxBoundY); + + digitalWrite(_cs, HIGH); + digitalWrite(_dc, HIGH); // data mode + digitalWrite(_cs, LOW); + for (y = minBoundY; y <= maxBoundY; y++) { + for (x = minBoundX; x <= maxBoundX; x++) { + SPI.transfer(buffer[x + y * DISPLAY_WIDTH]); + } + optimistic_yield(10000); + } + digitalWrite(_cs, HIGH); + #else + // No double buffering + sendCommand(COLUMNADDR); + sendCommand(0x0); + sendCommand(0x7F); + + sendCommand(PAGEADDR); + sendCommand(0x0); + sendCommand(0x7); + + digitalWrite(_cs, HIGH); + digitalWrite(_dc, HIGH); // data mode + digitalWrite(_cs, LOW); + for (uint16_t i=0; i + +class SSD1306Wire : public OLEDDisplay { + private: + uint8_t _address; + uint8_t _sda; + uint8_t _scl; + + public: + SSD1306Wire(uint8_t _address, uint8_t _sda, uint8_t _scl) { + this->_address = _address; + this->_sda = _sda; + this->_scl = _scl; + } + + bool connect() { + Wire.begin(this->_sda, this->_scl); + // Let's use ~700khz if ESP8266 is in 160Mhz mode + // this will be limited to ~400khz if the ESP8266 in 80Mhz mode. + Wire.setClock(700000); + return true; + } + + void display(void) { + #ifdef OLEDDISPLAY_DOUBLE_BUFFER + uint8_t minBoundY = ~0; + uint8_t maxBoundY = 0; + + uint8_t minBoundX = ~0; + uint8_t maxBoundX = 0; + uint8_t x, y; + + // Calculate the Y bounding box of changes + // and copy buffer[pos] to buffer_back[pos]; + for (y = 0; y < (DISPLAY_HEIGHT / 8); y++) { + for (x = 0; x < DISPLAY_WIDTH; x++) { + uint16_t pos = x + y * DISPLAY_WIDTH; + if (buffer[pos] != buffer_back[pos]) { + minBoundY = _min(minBoundY, y); + maxBoundY = _max(maxBoundY, y); + minBoundX = _min(minBoundX, x); + maxBoundX = _max(maxBoundX, x); + } + buffer_back[pos] = buffer[pos]; + } + optimistic_yield(10000); + } + + // If the minBoundY wasn't updated + // we can savely assume that buffer_back[pos] == buffer[pos] + // holdes true for all values of pos + if (minBoundY == ~0) return; + + sendCommand(COLUMNADDR); + sendCommand(minBoundX); + sendCommand(maxBoundX); + + sendCommand(PAGEADDR); + sendCommand(minBoundY); + sendCommand(maxBoundY); + + byte k = 0; + for (y = minBoundY; y <= maxBoundY; y++) { + for (x = minBoundX; x <= maxBoundX; x++) { + if (k == 0) { + Wire.beginTransmission(_address); + Wire.write(0x40); + } + Wire.write(buffer[x + y * DISPLAY_WIDTH]); + k++; + if (k == 16) { + Wire.endTransmission(); + k = 0; + } + } + optimistic_yield(10000); + } + + if (k != 0) { + Wire.endTransmission(); + } + #else + + sendCommand(COLUMNADDR); + sendCommand(0x0); + sendCommand(0x7F); + + sendCommand(PAGEADDR); + sendCommand(0x0); + sendCommand(0x7); + + for (uint16_t i=0; i < DISPLAY_BUFFER_SIZE; i++) { + Wire.beginTransmission(this->_address); + Wire.write(0x40); + for (uint8_t x = 0; x < 16; x++) { + Wire.write(buffer[i]); + i++; + } + i--; + Wire.endTransmission(); + } + #endif + } + + private: + inline void sendCommand(uint8_t command) __attribute__((always_inline)){ + Wire.beginTransmission(_address); + Wire.write(0x80); + Wire.write(command); + Wire.endTransmission(); + } + + +}; + +#endif diff --git a/libraries/oled-ssd1306/UPGRADE-3.0.md b/libraries/oled-ssd1306/UPGRADE-3.0.md new file mode 100644 index 00000000..e7a315bc --- /dev/null +++ b/libraries/oled-ssd1306/UPGRADE-3.0.md @@ -0,0 +1,125 @@ +# Upgrade from 2.0 to 3.0 + +While developing version 3.0 we made some breaking changes to the public +API of this library. This document will help you update your code to work with +version 3.0 + +## Font Definitions + +To get better performance and a smaller font definition format, we change the memory +layout of the font definition format. If you are using custom fonts not included in +this library we updated the font generator [here](http://oleddisplay.squix.ch/#/home). +Please update your fonts to be working with 3.0 by selecting the respective version in the dropdown. + + +## Architectural Changes + +To become a more versatile library for the SSD1306 chipset we abstracted the +hardware connection into subclasses of the base display class now called `OLEDDisplay`. +This library is currently shipping with three implementations: + + * `SSD1306Wire` implementing the I2C protocol using the Wire Library. + * `SSD1306Brzo` implementing the I2C protocol using the faster [`brzo_i2c`](https://github.com/pasko-zh/brzo_i2c) library. + * `SSD1306Spi` implementing the SPI protocol. + +To keep backwards compatiblity with the old API `SSD1306` is an alias of `SSD1306Wire`. +If you are not using the UI components you don't have to change anything to keep your code working. + +## Name Changes + +[Naming things is hard](http://martinfowler.com/bliki/TwoHardThings.html), to better reflect our intention with this library +we changed the name of the base class to `OLEDDisplay` and the UI library accordingly to `OLEDDisplayUi`. +As a consequence the type definitions of all frame and overlay related functions changed. +This means that you have to update all your frame drawing callbacks from: + +```c +bool frame1(SSD1306 *display, SSD1306UiState* state, int x, int y); +``` + +too + +```c +void frame1(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y); +``` + +And your overlay drawing functions from: + +```c +bool overlay1(SSD1306 *display, SSD1306UiState* state); +``` + +too + +```c +void overlay1(OLEDDisplay *display, OLEDDisplayUiState* state); +``` + +## New Features + +### Loading Animation + +While using this library ourself we noticed a pattern emerging. We want to drawing +a loading progress while connecting to WiFi and updating weather data etc. + +The simplest thing was to add the function `drawProgressBar(x, y, width, height, progress)` +,where `progress` is between `0` and `100`, right to the `OLEDDisplay` class. + +But we didn't stop there. We added a new feature to the `OLEDDisplayUi` called `LoadingStages`. +You can define your loading process like this: + +```c++ +LoadingStage loadingStages[] = { + { + .process = "Connect to WiFi", + .callback = []() { + // Connect to WiFi + } + }, + { + .process = "Get time from NTP", + .callback = []() { + // Get current time via NTP + } + } + // more steps +}; + +int LOADING_STAGES_COUNT = sizeof(loadingStages) / sizeof(LoadingStage); +``` + +After defining your array of `LoadingStages` you can then run the loading process by using +`ui.runLoadingProcess(loadingStages, LOADING_STAGES_COUNT)`. This will give you a +nice little loading animation you can see in the beginning of [this](https://vimeo.com/168362918) +video. + +To further customize this you are free to define your own `LoadingDrawFunction` like this: + +```c +void myLoadingDraw(OLEDDisplay *display, LoadingStage* stage, uint8_t progress) { + display->setTextAlignment(TEXT_ALIGN_CENTER); + display->setFont(ArialMT_Plain_10); + // stage->process contains the text of the current progress e.q. "Connect to WiFi" + display->drawString(64, 18, stage->process); + // you could just print the current process without the progress bar + display->drawString(64, 28, progress); +} +``` + +After defining a function like that, you can pass it to the Ui library by use +`ui.setLoadingDrawFunction(myLoadingDraw)`. + + +### Text Logging + +It is always useful to display some text on the display without worrying to much +where it goes and managing it. In 3.0 we made the `OLEDDisplay` class implement +[`Print`](https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/Print.h) +so you can use it like you would use `Serial`. We calls this feature `LogBuffer` +and the only thing you have to do is to define how many lines you want to display +and how many characters there are on average on each. This is done by calling +`setLogBuffer(lines, chars);`. If there is not enough memory the function will +return false. + +After that you can draw the `LogBuffer` anywhere you want by calling `drawLogBuffer(x, y)`. +(Note: You have to call `display()` to update the screen) +We made a [video](https://www.youtube.com/watch?v=8Fiss77A3TE) showing this feature in action. diff --git a/libraries/oled-ssd1306/examples/SSD1306ClockDemo/SSD1306ClockDemo.ino b/libraries/oled-ssd1306/examples/SSD1306ClockDemo/SSD1306ClockDemo.ino new file mode 100644 index 00000000..e9db7d64 --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306ClockDemo/SSD1306ClockDemo.ino @@ -0,0 +1,211 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +#include + +// Include the correct display library +// For a connection via I2C using Wire include +#include // Only needed for Arduino 1.6.5 and earlier +#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"` +// or #include "SH1106.h" alis for `#include "SH1106Wire.h"` +// For a connection via I2C using brzo_i2c (must be installed) include +// #include // Only needed for Arduino 1.6.5 and earlier +// #include "SSD1306Brzo.h" +// #include "SH1106Brzo.h" +// For a connection via SPI include +// #include // Only needed for Arduino 1.6.5 and earlier +// #include "SSD1306Spi.h" +// #include "SH1106SPi.h" + +// Include the UI lib +#include "OLEDDisplayUi.h" + +// Include custom images +#include "images.h" + +// Use the corresponding display class: + +// Initialize the OLED display using SPI +// D5 -> CLK +// D7 -> MOSI (DOUT) +// D0 -> RES +// D2 -> DC +// D8 -> CS +// SSD1306Spi display(D0, D2, D8); +// or +// SH1106Spi display(D0, D2); + +// Initialize the OLED display using brzo_i2c +// D3 -> SDA +// D5 -> SCL +// SSD1306Brzo display(0x3c, D3, D5); +// or +// SH1106Brzo display(0x3c, D3, D5); + +// Initialize the OLED display using Wire library +SSD1306 display(0x3c, D3, D5); +// SH1106 display(0x3c, D3, D5); + +OLEDDisplayUi ui ( &display ); + +int screenW = 128; +int screenH = 64; +int clockCenterX = screenW/2; +int clockCenterY = ((screenH-16)/2)+16; // top yellow part is 16 px height +int clockRadius = 23; + +// utility function for digital clock display: prints leading 0 +String twoDigits(int digits){ + if(digits < 10) { + String i = '0'+String(digits); + return i; + } + else { + return String(digits); + } +} + +void clockOverlay(OLEDDisplay *display, OLEDDisplayUiState* state) { + +} + +void analogClockFrame(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { +// ui.disableIndicator(); + + // Draw the clock face +// display->drawCircle(clockCenterX + x, clockCenterY + y, clockRadius); + display->drawCircle(clockCenterX + x, clockCenterY + y, 2); + // + //hour ticks + for( int z=0; z < 360;z= z + 30 ){ + //Begin at 0° and stop at 360° + float angle = z ; + angle = ( angle / 57.29577951 ) ; //Convert degrees to radians + int x2 = ( clockCenterX + ( sin(angle) * clockRadius ) ); + int y2 = ( clockCenterY - ( cos(angle) * clockRadius ) ); + int x3 = ( clockCenterX + ( sin(angle) * ( clockRadius - ( clockRadius / 8 ) ) ) ); + int y3 = ( clockCenterY - ( cos(angle) * ( clockRadius - ( clockRadius / 8 ) ) ) ); + display->drawLine( x2 + x , y2 + y , x3 + x , y3 + y); + } + + // display second hand + float angle = second() * 6 ; + angle = ( angle / 57.29577951 ) ; //Convert degrees to radians + int x3 = ( clockCenterX + ( sin(angle) * ( clockRadius - ( clockRadius / 5 ) ) ) ); + int y3 = ( clockCenterY - ( cos(angle) * ( clockRadius - ( clockRadius / 5 ) ) ) ); + display->drawLine( clockCenterX + x , clockCenterY + y , x3 + x , y3 + y); + // + // display minute hand + angle = minute() * 6 ; + angle = ( angle / 57.29577951 ) ; //Convert degrees to radians + x3 = ( clockCenterX + ( sin(angle) * ( clockRadius - ( clockRadius / 4 ) ) ) ); + y3 = ( clockCenterY - ( cos(angle) * ( clockRadius - ( clockRadius / 4 ) ) ) ); + display->drawLine( clockCenterX + x , clockCenterY + y , x3 + x , y3 + y); + // + // display hour hand + angle = hour() * 30 + int( ( minute() / 12 ) * 6 ) ; + angle = ( angle / 57.29577951 ) ; //Convert degrees to radians + x3 = ( clockCenterX + ( sin(angle) * ( clockRadius - ( clockRadius / 2 ) ) ) ); + y3 = ( clockCenterY - ( cos(angle) * ( clockRadius - ( clockRadius / 2 ) ) ) ); + display->drawLine( clockCenterX + x , clockCenterY + y , x3 + x , y3 + y); +} + +void digitalClockFrame(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { + String timenow = String(hour())+":"+twoDigits(minute())+":"+twoDigits(second()); + display->setTextAlignment(TEXT_ALIGN_CENTER); + display->setFont(ArialMT_Plain_24); + display->drawString(clockCenterX + x , clockCenterY + y, timenow ); +} + +// This array keeps function pointers to all frames +// frames are the single views that slide in +FrameCallback frames[] = { analogClockFrame, digitalClockFrame }; + +// how many frames are there? +int frameCount = 2; + +// Overlays are statically drawn on top of a frame eg. a clock +OverlayCallback overlays[] = { clockOverlay }; +int overlaysCount = 1; + +void setup() { + Serial.begin(9600); + Serial.println(); + + // The ESP is capable of rendering 60fps in 80Mhz mode + // but that won't give you much time for anything else + // run it in 160Mhz mode or just set it to 30 fps + ui.setTargetFPS(60); + + // Customize the active and inactive symbol + ui.setActiveSymbol(activeSymbol); + ui.setInactiveSymbol(inactiveSymbol); + + // You can change this to + // TOP, LEFT, BOTTOM, RIGHT + ui.setIndicatorPosition(TOP); + + // Defines where the first frame is located in the bar. + ui.setIndicatorDirection(LEFT_RIGHT); + + // You can change the transition that is used + // SLIDE_LEFT, SLIDE_RIGHT, SLIDE_UP, SLIDE_DOWN + ui.setFrameAnimation(SLIDE_LEFT); + + // Add frames + ui.setFrames(frames, frameCount); + + // Add overlays + ui.setOverlays(overlays, overlaysCount); + + // Initialising the UI will init the display too. + ui.init(); + + display.flipScreenVertically(); + + unsigned long secsSinceStart = millis(); + // Unix time starts on Jan 1 1970. In seconds, that's 2208988800: + const unsigned long seventyYears = 2208988800UL; + // subtract seventy years: + unsigned long epoch = secsSinceStart - seventyYears * SECS_PER_HOUR; + setTime(epoch); + +} + + +void loop() { + int remainingTimeBudget = ui.update(); + + if (remainingTimeBudget > 0) { + // You can do some work here + // Don't do stuff if you are below your + // time budget. + delay(remainingTimeBudget); + + } + + +} diff --git a/libraries/oled-ssd1306/examples/SSD1306ClockDemo/images.h b/libraries/oled-ssd1306/examples/SSD1306ClockDemo/images.h new file mode 100644 index 00000000..a220a27c --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306ClockDemo/images.h @@ -0,0 +1,21 @@ +const char activeSymbol[] PROGMEM = { + B00000000, + B00000000, + B00011000, + B00100100, + B01000010, + B01000010, + B00100100, + B00011000 +}; + +const char inactiveSymbol[] PROGMEM = { + B00000000, + B00000000, + B00000000, + B00000000, + B00011000, + B00011000, + B00000000, + B00000000 +}; diff --git a/libraries/oled-ssd1306/examples/SSD1306DrawingDemo/SSD1306DrawingDemo.ino b/libraries/oled-ssd1306/examples/SSD1306DrawingDemo/SSD1306DrawingDemo.ino new file mode 100644 index 00000000..cf37fb04 --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306DrawingDemo/SSD1306DrawingDemo.ino @@ -0,0 +1,229 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + // Include the correct display library + // For a connection via I2C using Wire include + #include // Only needed for Arduino 1.6.5 and earlier + #include "SSD1306.h" // alias for `#include "SSD1306Wire.h"` + // or #include "SH1106.h" alis for `#include "SH1106Wire.h"` + // For a connection via I2C using brzo_i2c (must be installed) include + // #include // Only needed for Arduino 1.6.5 and earlier + // #include "SSD1306Brzo.h" + // #include "SH1106Brzo.h" + // For a connection via SPI include + // #include // Only needed for Arduino 1.6.5 and earlier + // #include "SSD1306Spi.h" + // #include "SH1106SPi.h" + + // Use the corresponding display class: + + // Initialize the OLED display using SPI + // D5 -> CLK + // D7 -> MOSI (DOUT) + // D0 -> RES + // D2 -> DC + // D8 -> CS + // SSD1306Spi display(D0, D2, D8); + // or + // SH1106Spi display(D0, D2); + + // Initialize the OLED display using brzo_i2c + // D3 -> SDA + // D5 -> SCL + // SSD1306Brzo display(0x3c, D3, D5); + // or + // SH1106Brzo display(0x3c, D3, D5); + + // Initialize the OLED display using Wire library + SSD1306 display(0x3c, D3, D5); + // SH1106 display(0x3c, D3, D5); + +// Adapted from Adafruit_SSD1306 +void drawLines() { + for (int16_t i=0; i=0; i-=4) { + display.drawLine(0, DISPLAY_HEIGHT-1, DISPLAY_WIDTH-1, i); + display.display(); + delay(10); + } + delay(250); + + display.clear(); + for (int16_t i=DISPLAY_WIDTH-1; i>=0; i-=4) { + display.drawLine(DISPLAY_WIDTH-1, DISPLAY_HEIGHT-1, i, 0); + display.display(); + delay(10); + } + for (int16_t i=DISPLAY_HEIGHT-1; i>=0; i-=4) { + display.drawLine(DISPLAY_WIDTH-1, DISPLAY_HEIGHT-1, 0, i); + display.display(); + delay(10); + } + delay(250); + display.clear(); + for (int16_t i=0; i + + // OTA Includes + #include + #include + + const char *ssid = "[Your SSID]"; + const char *password = "[Your Password]"; + + +// Include the correct display library +// For a connection via I2C using Wire include +#include // Only needed for Arduino 1.6.5 and earlier +#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"` +// or #include "SH1106.h" alis for `#include "SH1106Wire.h"` +// For a connection via I2C using brzo_i2c (must be installed) include +// #include // Only needed for Arduino 1.6.5 and earlier +// #include "SSD1306Brzo.h" +// #include "SH1106Brzo.h" +// For a connection via SPI include +// #include // Only needed for Arduino 1.6.5 and earlier +// #include "SSD1306Spi.h" +// #include "SH1106SPi.h" + +// Use the corresponding display class: + +// Initialize the OLED display using SPI +// D5 -> CLK +// D7 -> MOSI (DOUT) +// D0 -> RES +// D2 -> DC +// D8 -> CS +// SSD1306Spi display(D0, D2, D8); +// or +// SH1106Spi display(D0, D2); + +// Initialize the OLED display using brzo_i2c +// D3 -> SDA +// D5 -> SCL +// SSD1306Brzo display(0x3c, D3, D5); +// or +// SH1106Brzo display(0x3c, D3, D5); + +// Initialize the OLED display using Wire library +SSD1306 display(0x3c, D3, D5); +// SH1106 display(0x3c, D3, D5); + + +void setup() { + WiFi.begin ( ssid, password ); + + // Wait for connection + while ( WiFi.status() != WL_CONNECTED ) { + delay ( 10 ); + } + + display.init(); + display.flipScreenVertically(); + display.setContrast(255); + + ArduinoOTA.begin(); + ArduinoOTA.onStart([]() { + display.clear(); + display.setFont(ArialMT_Plain_10); + display.setTextAlignment(TEXT_ALIGN_CENTER_BOTH); + display.drawString(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2 - 10, "OTA Update"); + display.display(); + }); + + ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { + display.drawProgressBar(4, 32, 120, 8, progress / (total / 100) ); + display.display(); + }); + + ArduinoOTA.onEnd([]() { + display.clear(); + display.setFont(ArialMT_Plain_10); + display.setTextAlignment(TEXT_ALIGN_CENTER_BOTH); + display.drawString(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, "Restart"); + display.display(); + }); + + // Align text vertical/horizontal center + display.setTextAlignment(TEXT_ALIGN_CENTER_BOTH); + display.setFont(ArialMT_Plain_10); + display.drawString(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, "Ready for OTA:\n" + WiFi.localIP().toString()); + display.display(); +} + +void loop() { + ArduinoOTA.handle(); +} diff --git a/libraries/oled-ssd1306/examples/SSD1306SimpleDemo/SSD1306SimpleDemo.ino b/libraries/oled-ssd1306/examples/SSD1306SimpleDemo/SSD1306SimpleDemo.ino new file mode 100644 index 00000000..6d3854a5 --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306SimpleDemo/SSD1306SimpleDemo.ino @@ -0,0 +1,187 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + +// Include the correct display library +// For a connection via I2C using Wire include +#include // Only needed for Arduino 1.6.5 and earlier +#include "SSD1306.h" // alias for `#include "SSD1306Wire.h"` +// or #include "SH1106.h" alis for `#include "SH1106Wire.h"` +// For a connection via I2C using brzo_i2c (must be installed) include +// #include // Only needed for Arduino 1.6.5 and earlier +// #include "SSD1306Brzo.h" +// #include "SH1106Brzo.h" +// For a connection via SPI include +// #include // Only needed for Arduino 1.6.5 and earlier +// #include "SSD1306Spi.h" +// #include "SH1106SPi.h" + +// Include custom images +#include "images.h" + +// Initialize the OLED display using SPI +// D5 -> CLK +// D7 -> MOSI (DOUT) +// D0 -> RES +// D2 -> DC +// D8 -> CS +// SSD1306Spi display(D0, D2, D8); +// or +// SH1106Spi display(D0, D2); + +// Initialize the OLED display using brzo_i2c +// D3 -> SDA +// D5 -> SCL +// SSD1306Brzo display(0x3c, D3, D5); +// or +// SH1106Brzo display(0x3c, D3, D5); + +// Initialize the OLED display using Wire library +SSD1306 display(0x3c, 4, 15); +// SH1106 display(0x3c, D3, D5); + + +#define DEMO_DURATION 3000 +typedef void (*Demo)(void); + +int demoMode = 0; +int counter = 1; + +void setup() { + Serial.begin(115200); + Serial.println(); + Serial.println(); + + + // Initialising the UI will init the display too. + display.init(); + + display.flipScreenVertically(); + display.setFont(ArialMT_Plain_10); + +} + +void drawFontFaceDemo() { + // Font Demo1 + // create more fonts at http://oleddisplay.squix.ch/ + display.setTextAlignment(TEXT_ALIGN_LEFT); + display.setFont(ArialMT_Plain_10); + display.drawString(0, 0, "Hello world"); + display.setFont(ArialMT_Plain_16); + display.drawString(0, 10, "Hello world"); + display.setFont(ArialMT_Plain_24); + display.drawString(0, 26, "Hello world"); +} + +void drawTextFlowDemo() { + display.setFont(ArialMT_Plain_10); + display.setTextAlignment(TEXT_ALIGN_LEFT); + display.drawStringMaxWidth(0, 0, 128, + "Lorem ipsum\n dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore." ); +} + +void drawTextAlignmentDemo() { + // Text alignment demo + display.setFont(ArialMT_Plain_10); + + // The coordinates define the left starting point of the text + display.setTextAlignment(TEXT_ALIGN_LEFT); + display.drawString(0, 10, "Left aligned (0,10)"); + + // The coordinates define the center of the text + display.setTextAlignment(TEXT_ALIGN_CENTER); + display.drawString(64, 22, "Center aligned (64,22)"); + + // The coordinates define the right end of the text + display.setTextAlignment(TEXT_ALIGN_RIGHT); + display.drawString(128, 33, "Right aligned (128,33)"); +} + +void drawRectDemo() { + // Draw a pixel at given position + for (int i = 0; i < 10; i++) { + display.setPixel(i, i); + display.setPixel(10 - i, i); + } + display.drawRect(12, 12, 20, 20); + + // Fill the rectangle + display.fillRect(14, 14, 17, 17); + + // Draw a line horizontally + display.drawHorizontalLine(0, 40, 20); + + // Draw a line horizontally + display.drawVerticalLine(40, 0, 20); +} + +void drawCircleDemo() { + for (int i=1; i < 8; i++) { + display.setColor(WHITE); + display.drawCircle(32, 32, i*3); + if (i % 2 == 0) { + display.setColor(BLACK); + } + display.fillCircle(96, 32, 32 - i* 3); + } +} + +void drawProgressBarDemo() { + int progress = (counter / 5) % 100; + // draw the progress bar + display.drawProgressBar(0, 32, 120, 10, progress); + + // draw the percentage as String + display.setTextAlignment(TEXT_ALIGN_CENTER); + display.drawString(64, 15, String(progress) + "%"); +} + +void drawImageDemo() { + // see http://blog.squix.org/2015/05/esp8266-nodemcu-how-to-create-xbm.html + // on how to create xbm files + display.drawXbm(34, 14, WiFi_Logo_width, WiFi_Logo_height, WiFi_Logo_bits); +} + +Demo demos[] = {drawFontFaceDemo, drawTextFlowDemo, drawTextAlignmentDemo, drawRectDemo, drawCircleDemo, drawProgressBarDemo, drawImageDemo}; +int demoLength = (sizeof(demos) / sizeof(Demo)); +long timeSinceLastModeSwitch = 0; + +void loop() { + // clear the display + display.clear(); + // draw the current demo method + demos[demoMode](); + + display.setTextAlignment(TEXT_ALIGN_RIGHT); + display.drawString(10, 128, String(millis())); + // write the buffer to the display + display.display(); + + if (millis() - timeSinceLastModeSwitch > DEMO_DURATION) { + demoMode = (demoMode + 1) % demoLength; + timeSinceLastModeSwitch = millis(); + } + counter++; + delay(10); +} diff --git a/libraries/oled-ssd1306/examples/SSD1306SimpleDemo/images.h b/libraries/oled-ssd1306/examples/SSD1306SimpleDemo/images.h new file mode 100644 index 00000000..9daf8c1a --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306SimpleDemo/images.h @@ -0,0 +1,28 @@ +#define WiFi_Logo_width 60 +#define WiFi_Logo_height 36 +const char WiFi_Logo_bits[] PROGMEM = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF, + 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, + 0xFF, 0x03, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, + 0x00, 0xFF, 0xFF, 0xFF, 0x07, 0xC0, 0x83, 0x01, 0x80, 0xFF, 0xFF, 0xFF, + 0x01, 0x00, 0x07, 0x00, 0xC0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x0C, 0x00, + 0xC0, 0xFF, 0xFF, 0x7C, 0x00, 0x60, 0x0C, 0x00, 0xC0, 0x31, 0x46, 0x7C, + 0xFC, 0x77, 0x08, 0x00, 0xE0, 0x23, 0xC6, 0x3C, 0xFC, 0x67, 0x18, 0x00, + 0xE0, 0x23, 0xE4, 0x3F, 0x1C, 0x00, 0x18, 0x00, 0xE0, 0x23, 0x60, 0x3C, + 0x1C, 0x70, 0x18, 0x00, 0xE0, 0x03, 0x60, 0x3C, 0x1C, 0x70, 0x18, 0x00, + 0xE0, 0x07, 0x60, 0x3C, 0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C, + 0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00, + 0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00, 0xE0, 0x8F, 0x71, 0x3C, + 0x1C, 0x70, 0x18, 0x00, 0xC0, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x08, 0x00, + 0xC0, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x0C, 0x00, 0x80, 0xFF, 0xFF, 0x1F, + 0x00, 0x00, 0x06, 0x00, 0x80, 0xFF, 0xFF, 0x0F, 0x00, 0x00, 0x07, 0x00, + 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0xF8, 0xFF, 0xFF, + 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00, + 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF, + 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + }; diff --git a/libraries/oled-ssd1306/examples/SSD1306UiDemo/SSD1306UiDemo.ino b/libraries/oled-ssd1306/examples/SSD1306UiDemo/SSD1306UiDemo.ino new file mode 100644 index 00000000..ada991ad --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306UiDemo/SSD1306UiDemo.ino @@ -0,0 +1,194 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2016 by Daniel Eichhorn + * Copyright (c) 2016 by Fabrice Weinberg + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ + + // Include the correct display library + // For a connection via I2C using Wire include + #include // Only needed for Arduino 1.6.5 and earlier + #include "SSD1306.h" // alias for `#include "SSD1306Wire.h"` + // or #include "SH1106.h" alis for `#include "SH1106Wire.h"` + // For a connection via I2C using brzo_i2c (must be installed) include + // #include // Only needed for Arduino 1.6.5 and earlier + // #include "SSD1306Brzo.h" + // #include "SH1106Brzo.h" + // For a connection via SPI include + // #include // Only needed for Arduino 1.6.5 and earlier + // #include "SSD1306Spi.h" + // #include "SH1106SPi.h" + +// Include the UI lib +#include "OLEDDisplayUi.h" + +// Include custom images +#include "images.h" + +// Use the corresponding display class: + +// Initialize the OLED display using SPI +// D5 -> CLK +// D7 -> MOSI (DOUT) +// D0 -> RES +// D2 -> DC +// D8 -> CS +// SSD1306Spi display(D0, D2, D8); +// or +// SH1106Spi display(D0, D2); + +// Initialize the OLED display using brzo_i2c +// D3 -> SDA +// D5 -> SCL +// SSD1306Brzo display(0x3c, D3, D5); +// or +// SH1106Brzo display(0x3c, D3, D5); + +// Initialize the OLED display using Wire library +SSD1306 display(0x3c, 4, 15); +// SH1106 display(0x3c, D3, D5); + +OLEDDisplayUi ui ( &display ); + +void msOverlay(OLEDDisplay *display, OLEDDisplayUiState* state) { + display->setTextAlignment(TEXT_ALIGN_RIGHT); + display->setFont(ArialMT_Plain_10); + display->drawString(128, 0, String(millis())); +} + +void drawFrame1(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { + // draw an xbm image. + // Please note that everything that should be transitioned + // needs to be drawn relative to x and y + + display->drawXbm(x + 34, y + 14, WiFi_Logo_width, WiFi_Logo_height, WiFi_Logo_bits); +} + +void drawFrame2(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { + // Demonstrates the 3 included default sizes. The fonts come from SSD1306Fonts.h file + // Besides the default fonts there will be a program to convert TrueType fonts into this format + display->setTextAlignment(TEXT_ALIGN_LEFT); + display->setFont(ArialMT_Plain_10); + display->drawString(0 + x, 10 + y, "Arial 10"); + + display->setFont(ArialMT_Plain_16); + display->drawString(0 + x, 20 + y, "Arial 16"); + + display->setFont(ArialMT_Plain_24); + display->drawString(0 + x, 34 + y, "Arial 24"); +} + +void drawFrame3(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { + // Text alignment demo + display->setFont(ArialMT_Plain_10); + + // The coordinates define the left starting point of the text + display->setTextAlignment(TEXT_ALIGN_LEFT); + display->drawString(0 + x, 11 + y, "Left aligned (0,10)"); + + // The coordinates define the center of the text + display->setTextAlignment(TEXT_ALIGN_CENTER); + display->drawString(64 + x, 22 + y, "Center aligned (64,22)"); + + // The coordinates define the right end of the text + display->setTextAlignment(TEXT_ALIGN_RIGHT); + display->drawString(128 + x, 33 + y, "Right aligned (128,33)"); +} + +void drawFrame4(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { + // Demo for drawStringMaxWidth: + // with the third parameter you can define the width after which words will be wrapped. + // Currently only spaces and "-" are allowed for wrapping + display->setTextAlignment(TEXT_ALIGN_LEFT); + display->setFont(ArialMT_Plain_10); + display->drawStringMaxWidth(0 + x, 10 + y, 128, "Lorem ipsum\n dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore."); +} + +void drawFrame5(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) { + +} + +// This array keeps function pointers to all frames +// frames are the single views that slide in +FrameCallback frames[] = { drawFrame1, drawFrame2, drawFrame3, drawFrame4, drawFrame5 }; + +// how many frames are there? +int frameCount = 5; + +// Overlays are statically drawn on top of a frame eg. a clock +OverlayCallback overlays[] = { msOverlay }; +int overlaysCount = 1; + +void setup() { + //For Embeded OLED on Wifi kit 32 + pinMode(16,OUTPUT); + digitalWrite(16, LOW); // turn the LED on (HIGH is the voltage level) + delay(100); // wait for a second + digitalWrite(16, HIGH); // turn the LED off by making the voltage LOW + Serial.begin(115200); + Serial.println(); + Serial.println(); + + // The ESP is capable of rendering 60fps in 80Mhz mode + // but that won't give you much time for anything else + // run it in 160Mhz mode or just set it to 30 fps + ui.setTargetFPS(60); + + // Customize the active and inactive symbol + ui.setActiveSymbol(activeSymbol); + ui.setInactiveSymbol(inactiveSymbol); + + // You can change this to + // TOP, LEFT, BOTTOM, RIGHT + ui.setIndicatorPosition(BOTTOM); + + // Defines where the first frame is located in the bar. + ui.setIndicatorDirection(LEFT_RIGHT); + + // You can change the transition that is used + // SLIDE_LEFT, SLIDE_RIGHT, SLIDE_UP, SLIDE_DOWN + ui.setFrameAnimation(SLIDE_LEFT); + + // Add frames + ui.setFrames(frames, frameCount); + + // Add overlays + ui.setOverlays(overlays, overlaysCount); + + // Initialising the UI will init the display too. + ui.init(); + + display.flipScreenVertically(); + +} + + +void loop() { + int remainingTimeBudget = ui.update(); + + if (remainingTimeBudget > 0) { + // You can do some work here + // Don't do stuff if you are below your + // time budget. + delay(remainingTimeBudget); + } +} diff --git a/libraries/oled-ssd1306/examples/SSD1306UiDemo/images.h b/libraries/oled-ssd1306/examples/SSD1306UiDemo/images.h new file mode 100644 index 00000000..8b876a36 --- /dev/null +++ b/libraries/oled-ssd1306/examples/SSD1306UiDemo/images.h @@ -0,0 +1,50 @@ +#define WiFi_Logo_width 60 +#define WiFi_Logo_height 36 +const char WiFi_Logo_bits[] PROGMEM = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF, + 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, + 0xFF, 0x03, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, + 0x00, 0xFF, 0xFF, 0xFF, 0x07, 0xC0, 0x83, 0x01, 0x80, 0xFF, 0xFF, 0xFF, + 0x01, 0x00, 0x07, 0x00, 0xC0, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x0C, 0x00, + 0xC0, 0xFF, 0xFF, 0x7C, 0x00, 0x60, 0x0C, 0x00, 0xC0, 0x31, 0x46, 0x7C, + 0xFC, 0x77, 0x08, 0x00, 0xE0, 0x23, 0xC6, 0x3C, 0xFC, 0x67, 0x18, 0x00, + 0xE0, 0x23, 0xE4, 0x3F, 0x1C, 0x00, 0x18, 0x00, 0xE0, 0x23, 0x60, 0x3C, + 0x1C, 0x70, 0x18, 0x00, 0xE0, 0x03, 0x60, 0x3C, 0x1C, 0x70, 0x18, 0x00, + 0xE0, 0x07, 0x60, 0x3C, 0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C, + 0xFC, 0x73, 0x18, 0x00, 0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00, + 0xE0, 0x87, 0x70, 0x3C, 0x1C, 0x70, 0x18, 0x00, 0xE0, 0x8F, 0x71, 0x3C, + 0x1C, 0x70, 0x18, 0x00, 0xC0, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x08, 0x00, + 0xC0, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x0C, 0x00, 0x80, 0xFF, 0xFF, 0x1F, + 0x00, 0x00, 0x06, 0x00, 0x80, 0xFF, 0xFF, 0x0F, 0x00, 0x00, 0x07, 0x00, + 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0xF8, 0xFF, 0xFF, + 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0x01, 0x00, 0x00, + 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF, + 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + }; + +const char activeSymbol[] PROGMEM = { + B00000000, + B00000000, + B00011000, + B00100100, + B01000010, + B01000010, + B00100100, + B00011000 +}; + +const char inactiveSymbol[] PROGMEM = { + B00000000, + B00000000, + B00000000, + B00000000, + B00011000, + B00011000, + B00000000, + B00000000 +}; diff --git a/libraries/oled-ssd1306/library.json b/libraries/oled-ssd1306/library.json new file mode 100644 index 00000000..862d1716 --- /dev/null +++ b/libraries/oled-ssd1306/library.json @@ -0,0 +1,28 @@ +{ + "name": "ESP8266_SSD1306", + "version": "3.2.7", + "keywords": "ssd1306, oled, display, i2c", + "description": "A I2C display driver for SSD1306 oled displays connected to an ESP8266 or ESP32", + "repository": + { + "type": "git", + "url": "https://github.com/squix78/esp8266-oled-ssd1306.git" + }, + "authors": + [ + { + "name": "Daniel Eichhorn", + "email": "squix78@gmail.com", + "url": "http://blog.squix.ch" + }, + { + "name": "Fabrice Weinberg", + "email": "fabrice@weinberg.me" + } + ], + "frameworks": "arduino", + "platforms": [ + "espressif8266", + "espressif32" + ] +} diff --git a/libraries/oled-ssd1306/library.properties b/libraries/oled-ssd1306/library.properties new file mode 100644 index 00000000..4f8de4cf --- /dev/null +++ b/libraries/oled-ssd1306/library.properties @@ -0,0 +1,9 @@ +name=ESP8266 and ESP32 Oled Driver for SSD1306 display +version=3.2.7 +author=Daniel Eichhorn, Fabrice Weinberg +maintainer=Daniel Eichhorn +sentence=A I2C display driver for SSD1306 oled displays connected to an ESP8266 or ESP32 +paragraph=A I2C display driver for SSD1306 oled displays connected to an ESP8266 or ESP32 +category=Display +url=https://github.com/squix78/esp8266-oled-ssd1306 +architectures=esp8266,esp32 diff --git a/libraries/oled-ssd1306/license b/libraries/oled-ssd1306/license new file mode 100644 index 00000000..706c10fe --- /dev/null +++ b/libraries/oled-ssd1306/license @@ -0,0 +1,24 @@ +The MIT License (MIT) + +Copyright (c) 2016 by Daniel Eichhorn +Copyright (c) 2016 by Fabrice Weinberg + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +See more at http://blog.squix.ch diff --git a/libraries/oled-ssd1306/resources/DemoFrame1.jpg b/libraries/oled-ssd1306/resources/DemoFrame1.jpg new file mode 100644 index 00000000..536b570d Binary files /dev/null and b/libraries/oled-ssd1306/resources/DemoFrame1.jpg differ diff --git a/libraries/oled-ssd1306/resources/DemoFrame2.jpg b/libraries/oled-ssd1306/resources/DemoFrame2.jpg new file mode 100644 index 00000000..8dccbcd0 Binary files /dev/null and b/libraries/oled-ssd1306/resources/DemoFrame2.jpg differ diff --git a/libraries/oled-ssd1306/resources/DemoFrame3.jpg b/libraries/oled-ssd1306/resources/DemoFrame3.jpg new file mode 100644 index 00000000..49e07ab5 Binary files /dev/null and b/libraries/oled-ssd1306/resources/DemoFrame3.jpg differ diff --git a/libraries/oled-ssd1306/resources/DemoFrame4.jpg b/libraries/oled-ssd1306/resources/DemoFrame4.jpg new file mode 100644 index 00000000..99cbe1bc Binary files /dev/null and b/libraries/oled-ssd1306/resources/DemoFrame4.jpg differ diff --git a/libraries/oled-ssd1306/resources/FontTool.png b/libraries/oled-ssd1306/resources/FontTool.png new file mode 100644 index 00000000..c7bb222b Binary files /dev/null and b/libraries/oled-ssd1306/resources/FontTool.png differ diff --git a/libraries/oled-ssd1306/resources/SPI_version.jpg b/libraries/oled-ssd1306/resources/SPI_version.jpg new file mode 100644 index 00000000..115c9f3b Binary files /dev/null and b/libraries/oled-ssd1306/resources/SPI_version.jpg differ diff --git a/libraries/oled-ssd1306/resources/xbmPreview.png b/libraries/oled-ssd1306/resources/xbmPreview.png new file mode 100644 index 00000000..70ea3a53 Binary files /dev/null and b/libraries/oled-ssd1306/resources/xbmPreview.png differ