Upstream sync

Add Time Support (server  + manual setup), only used for ESP32 FS currently as ESP8266 SPIFFS does not support Time, need to wait for LittleFS may be ?
Add DHT support
Add Pin reset support
Add Base for Display
Add libraries for new supported features
Add /config handle as shortcut for [ESP420]plain to be used in embedded page
Code refactoring for defines, use less Define as switches but more define as values for switches
Clean warnings
Lot of small bug fixes
Add docs for [ESPXXX] commands
This commit is contained in:
Luc 2019-03-09 09:16:08 +01:00
parent eebfce3208
commit b0375a3541
123 changed files with 10496 additions and 950 deletions

7
astyle.bat Normal file
View File

@ -0,0 +1,7 @@
cd %~dp0esp3d
astyle --recursive --style=otbs *.h *.cpp *.ino
del /S *.ori
dir
cd ..
pause

140
docs/Commands.txt Normal file
View File

@ -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]<SSID>pwd=<admin password>
* Set STA Password
[ESP101]<Password>pwd=<admin password>
* Set/Get STA IP mode (DHCP/STATIC)
[ESP102]<mode>pwd=<admin password>
* Set/Get STA IP/Mask/GW
[ESP103]IP=<IP> MSK=<IP> GW=<IP> pwd=<admin password>
* Set/Get AP SSID
[ESP105]<SSID>pwd=<admin password>
* Change AP Password
[ESP106]<Password>pwd=<admin password>
* Set/Get AP IP
[ESP107]<IP>pwd=<admin password>
* Set/Get AP channel
[ESP108]<channel>pwd=<admin password>
* Set/Get radio state which can be WIFI-STA, WIFI-AP, BT, ETH-STA, ETH-AP, OFF
[ESP110]<state>pwd=<admin password>
* Get current IP
[ESP111]<header answer>
* Get/Set hostname
[ESP112]<Hostname> pwd=<admin password>
* Get/Set immediate network(WiFi/BT/Ethernet) state which can be ON, OFF
[ESP115]<state>pwd=<admin password>
* Get/Set HTTP state which can be ON, OFF
[ESP120]<state>pwd=<admin password>
* Get/Set HTTP port
[ESP121]<port>pwd=<admin password>
* Get/Set Telnet state which can be ON, OFF
[ESP130]<state>pwd=<admin password>
* Get/Set Telnet port
[ESP131]<port>pwd=<admin password>
* Init / Get current time
[ESP140]<INIT> <srv1=XXXXX> <srv2=XXXXX> <srv3=XXXXX> <zone=xxx> <dst=YES/NO> <time=YYYY-MM-DD#H24:MM:SS> pwd=<admin password>
*Get/Set pin value
[ESP201]P<pin> V<value> [PULLUP=YES RAW=YES]pwd=<admin password>
if no V<value> get P<pin> value
if V<value> 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=<admin password>
*Set EEPROM setting
position in EEPROM, type: B(byte), I(integer/long), S(string), A(IP address / mask)
[ESP401]P=<position> T=<type> V=<value> pwd=<user/admin password>
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]<plain><pwd=admin/user>
*Get current settings of ESP3D
output is plain text
[ESP420]<pwd=admin/user>
* Set ESP State
cmd are RESTART / RESET
[ESP444]<cmd><pwd=admin>
* Change admin password
[ESP550]<password>pwd=<admin password>
* Change user password
[ESP555]<password>pwd=<admin/user password>
* Format ESP Filesystem
[ESP710]FORMAT pwd=<admin password>
* List ESP Filesystem
[ESP720]<Root> pwd=<admin password>
* FW Informations
[ESP800]<plain> pwd=<admin password>

BIN
docs/Files/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -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

View File

@ -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,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x17, 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, 0xAF, 0x70, 0x81, 0x0E, 0xD9, 0x6E,
0x14, 0x77, 0xB2, 0xEB, 0x1B, 0xE8, 0x52, 0x0B, 0x95, 0x09, 0x2E, 0x73, 0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D9, 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, 0x89, 0x24, 0x96, 0x8B, 0xBB, 0x2F, 0x00, 0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, 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

Binary file not shown.

View File

@ -77,6 +77,7 @@ jsonresponse.files.sort(function(a, b) {
if (currentpath=="/") {
display_message = true;
}
var display_time =false;
for (var i1=0;i1 <jsonresponse.files.length;i1++){
//first display files
if (String(jsonresponse.files[i1].size) != "-1")
@ -91,7 +92,16 @@ if (String(jsonresponse.files[i1].size) != "-1")
}
content +="</div></a></TD><TD>";
content +=jsonresponse.files[i1].size;
content +="</TD><TD width='0%'><div class=\"btnimg\" onclick=\"Delete('"+jsonresponse.files[i1].name+"')\">";
content +="</TD>";
if (jsonresponse.files[i1].hasOwnProperty('time')){
display_time = true;
content +="<TD>";
content += jsonresponse.files[i1].time;
content +="</TD>";
} else {
content +="<TD></TD>";
}
content +="<TD width='0%'><div class=\"btnimg\" onclick=\"Delete('"+jsonresponse.files[i1].name+"')\">";
content +=trash_icon();
content +="</div></TD><td></td></TR>";
}
@ -103,11 +113,19 @@ if (String(jsonresponse.files[i2].size) == "-1")
content+="<TR><td><svg height='24' width='24' viewBox='0 0 24 24' ><path d='M19,11 L19,8 L18,7 L8,7 L8,5 L7,4 L2,4 L1,5 L1,22 L19,22 L20,21 L23,11 L5,11 L2,21 L1,22' stroke='black' fill='white' /></svg></td>";
content +="<TD class='btnimg blacklink' style='padding:10px 15px;' onclick=\"select_dir('" + jsonresponse.files[i2].name+"');\">";
content +=jsonresponse.files[i2].name;
content +="</TD><TD>";
content +="</TD><TD width='0%'><div class=\"btnimg\" onclick=\"Deletedir('"+jsonresponse.files[i2].name+"')\">";
content +="</TD><TD></TD><TD></TD>";
if (typeof jsonresponse.files[i2].hasOwnProperty('time')){
display_time = true;
}
content +="<TD width='0%'><div class=\"btnimg\" onclick=\"Deletedir('"+jsonresponse.files[i2].name+"')\">";
content +=trash_icon();
content +="</div></TD><td></td></TR>";
}
}
if(display_time){
document.getElementById('FS_time').innerHTML = "";
} else {
document.getElementById('FS_time').innerHTML = "Time";
}
if (display_message) {

View File

@ -19,7 +19,7 @@
<path d='M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z'> </path>
</g>
</svg>
<span class="blacklink">Interface</span></a></td><td style="width:100%; text-align:right;" id="FWVERSION"></td></td></tr></table>
<span class="blacklink">Interface</span></a></td><td style="width:100%;"></td><td style="text-align:right;"><a href="/config" target="_blank"><span id="FWVERSION" class="blacklink"></span></a></td></td></tr></table>
</div>
<div class="panel">
<center><h2 id="MSG"></h2></center>
@ -53,6 +53,7 @@
<th width='0%'>Type</th>
<th>Name</th>
<th>Size</th>
<th id="FS_time">Time</th>
<th width='0%'></th>
<th width='100%'></th>
</tr>

1
esp3d/data/tool.html Normal file

File diff suppressed because one or more lines are too long

View File

@ -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
/************************************
*

View File

@ -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 <time=YYYY-MM-DD#H24:MM:SS>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]<state>pwd=<admin password>
@ -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]<INIT> <srv1=XXXXX> <srv2=XXXXX> <srv3=XXXXX> <zone=xxx> <dst=YES/NO> <time=YYYY-MM-DD#H24:MM:SS> pwd=<admin password>
case 140:
response = ESP140(cmd_params, auth_type, output);
break;
#endif //TIMESTAMP_FEATURE
#ifdef DIRECT_PIN_FEATURE
//Get/Set pin value
//[ESP201]P<pin> V<value> [PULLUP=YES RAW=YES]pwd=<admin password>
@ -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] <TYPE> <type=NONE/11/22/xxx> <interval=XXX in millisec>
case 210:
response = ESP210(cmd_params, auth_type, output);
break;
#endif //#ifdef DHT_DEVICE
//Get full ESP3D settings
//[ESP400]<pwd=admin>
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]<msg>[pwd=<admin password>]
case 600:
response = ESP600(cmd_params, auth_type, output);
break;
#endif //WIFI_FEATURE || ETH_FEATURE+
#ifdef FILESYSTEM_FEATURE
//Format ESP Filesystem
//[ESP710]FORMAT pwd=<admin password>

View File

@ -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);

View File

@ -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 <Arduino.h>
#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

View File

@ -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

View File

@ -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

View File

@ -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();

View File

@ -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;
}

View File

@ -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

View File

@ -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() ) ) {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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() ) ) {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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();

View File

@ -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

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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]<state>pwd=<admin password>
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");
}
}

View File

@ -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

View File

@ -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]<INIT> <srv1=XXXXX> <srv2=XXXXX> <srv3=XXXXX> <zone=xxx> <dst=YES/NO> <time=YYYY-MM-DD#H24:MM:SS> pwd=<admin password>
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

View File

@ -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

View File

@ -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]<type=NONE/11/22/xxx> <interval=XXX in millisec>
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

View File

@ -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\":\"");

View File

@ -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=<position> T=<type> V=<value> pwd=<user/admin password>
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

View File

@ -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();

View File

@ -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]<plain>
@ -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\":\"");

View File

@ -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");

View File

@ -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]<msg>[pwd=<admin password>]
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

View File

@ -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") {

View File

@ -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 = "/";

View File

@ -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

View File

@ -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;

View File

@ -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:

View File

@ -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.h>
//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 <Preferences.h>
#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

View File

@ -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;
};

View File

@ -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

View File

@ -21,9 +21,26 @@
#ifndef _ESP3D_CONFIG_H
#define _ESP3D_CONFIG_H
#include <Arduino.h>
#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

View File

@ -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

View File

@ -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

View File

@ -101,6 +101,7 @@ level_authenticate_type AuthenticationService::authenticated_level(const char *
}
return auth_type;
#else
(void)pwd;
return LEVEL_ADMIN;
#endif //AUTHENTICATION_FEATURE
}

View File

@ -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

View File

@ -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

View File

@ -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 <DHTesp.h>
#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

View File

@ -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

View File

@ -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.h>
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.h>
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

View File

@ -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

View File

@ -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, 0x00,
0x00, 0x80, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0xC0, 0xFF, 0xFF,
0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0xC0, 0xFF, 0xFF, 0xFF,
0xFF, 0x00, 0xE0, 0x00, 0xE0, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x80, 0x01,
0xF0, 0xFF, 0xFF, 0xFF, 0x0F, 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F, 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

View File

@ -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"

View File

@ -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, 0x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_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, 0x89, 0x24, 0x96, 0x8B, 0xBB, 0x2F, 0x00, 0xDD, 0x93, 0x39, 0x5B,
0x44, 0xA3, 0x93, 0x39, 0xF5, 0x83, 0xD1, 0x49, 0xC6, 0xAE, 0x23, 0x3A, 0xC2, 0x96, 0x9B, 0x69,
0x12, 0x33, 0x73, 0xEA, 0x2F, 0xC2, 0xE8, 0xBA, 0x9F, 0xF9, 0x71, 0x66, 0x66, 0x34, 0x0D, 0xA7,
0x03, 0x73, 0x91, 0x99, 0x8C, 0x5E, 0x31, 0x33, 0x0B, 0xBF, 0x51, 0xD3, 0x0F, 0xFE, 0x67, 0x95,
0xB1, 0xBE, 0x6D, 0x59, 0x3F, 0x0F, 0xCC, 0x35, 0x1D, 0x7F, 0x0D, 0xD9, 0x9E, 0x5E, 0x0E, 0x0E,
0x5B, 0xE1, 0x71, 0x79, 0x75, 0x3B, 0x4E, 0x82, 0xEB, 0xCA, 0x12, 0xE4, 0x77, 0x1A, 0x5D, 0x52,
0x16, 0x4E, 0x7C, 0xED, 0x0F, 0xBA, 0xA2, 0xC4, 0x28, 0x9E, 0x8D, 0x67, 0x69, 0xE8, 0x47, 0x86,
0x82, 0x83, 0x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 0x7E, 0xFB, 0x2C, 0x5F, 0x75, 0xDD, 0x53, 0x70, 0x2A, 0x5B, 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

View File

@ -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 <WebServer.h>
#endif //ARDUINO_ARCH_ESP32
#if defined (ARDUINO_ARCH_ESP8266)
#include <ESP8266WebServer.h>
#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("<pre>");
esp3d_commands.process((uint8_t*)cmd.c_str(), cmd.length(), &output, auth_level);
output.print("</pre>");
return;
}
#endif //HTTP_FEATURE

View File

@ -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;

View File

@ -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

View File

@ -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 ();

View File

@ -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)

View File

@ -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
}
}

View File

@ -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

View File

@ -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

View File

@ -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();
}

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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 <time.h>
#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

View File

@ -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

View File

@ -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++;
}

View File

@ -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;

View File

@ -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 2426 °C Extremely uncomfortable, oppressive
// 5 2124 °C Very humid, quite uncomfortable
// 4 1821 °C Somewhat uncomfortable for most people at upper edge
// 3 1618 °C OK for most, but all perceive the humidity at upper edge
// 2 1316 °C Comfortable
// 1 1012 °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;
}

View File

@ -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 <WProgram.h>
#else
#include <Arduino.h>
#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*/

View File

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
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 <http://www.gnu.org/licenses/>.
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
<http://www.gnu.org/licenses/>.
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
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@ -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, <mark@paracas.nl>.
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, <beegee@giesecke.tk>.
- 2017-12-12: Updated to work with ESP32 - beegee-tokyo, <beegee@giesecke.tk>.
- 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, <beegee@giesecke.tk>.
- 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 _**`<arduinosketchfolder>/libraries/`**_
In PlatformIO this is usually _**`<user/.platformio/lib>`**_

View File

@ -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();
}

View File

@ -0,0 +1,119 @@
#include <Arduino.h>
#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

View File

@ -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);
}
}

View File

@ -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

View File

@ -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/"
}

View File

@ -0,0 +1,10 @@
name=DHT sensor library for ESPx
version=1.0.6
author=beegee_tokyo
maintainer=beegee_tokyo <beegee@giesecke.tk>
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

View File

@ -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

View File

@ -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;i<this->logBufferFilled;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;i<this->logBufferFilled;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;
}

View File

@ -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 <Arduino.h>
#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

File diff suppressed because it is too large Load Diff

View File

@ -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;i<this->overlayCount;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;
}

View File

@ -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 <Arduino.h>
#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

View File

@ -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 <Wire.h>
#include "SSD1306.h"
SSD1306 display(ADDRESS, SDA, SDC);
```
or for a SH1106:
```C++
#include <Wire.h>
#include "SH1106.h"
SH1106 display(ADDRESS, SDA, SDC);
```
### I2C with brzo_i2c
```C++
#include <brzo_i2c.h>
#include "SSD1306Brzo.h"
SSD1306Brzo display(ADDRESS, SDA, SDC);
```
or for the SH1106:
```C++
#include <brzo_i2c.h>
#include "SH1106Brzo.h"
SH1106Brzo display(ADDRESS, SDA, SDC);
```
### SPI
```C++
#include <SPI.h>
#include "SSD1306Spi.h"
SSD1306Spi display(RES, DC, CS);
```
or for the SH1106:
```C++
#include <SPI.h>
#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)

View File

@ -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

View File

@ -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 <brzo_i2c.h>
#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

View File

@ -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 <SPI.h>
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<DISPLAY_HEIGHT/8; y++) {
sendCommand(0xB0 + y);
sendCommand(0x02);
sendCommand(0x10);
digitalWrite(_dc, HIGH); // data mode
for( uint8_t x=0; x < DISPLAY_WIDTH; x++) {
SPI.transfer(buffer[x + y * DISPLAY_WIDTH]);
}
optimistic_yield(10000);
}
#endif
}
private:
inline void sendCommand(uint8_t com) __attribute__((always_inline)){
digitalWrite(_dc, LOW);
SPI.transfer(com);
}
};
#endif

View File

@ -0,0 +1,152 @@
/**
* 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 SH1106Wire_h
#define SH1106Wire_h
#include "OLEDDisplay.h"
#include <Wire.h>
#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

Some files were not shown because too many files have changed in this diff Show More