diff --git a/elboard v1.1/ArduinoJson-master.zip b/elboard v1.1/ArduinoJson-master.zip deleted file mode 100644 index fd8c0b9..0000000 Binary files a/elboard v1.1/ArduinoJson-master.zip and /dev/null differ diff --git a/elboard v1.1/AsyncTCP-master.zip b/elboard v1.1/AsyncTCP-master.zip deleted file mode 100644 index af15040..0000000 Binary files a/elboard v1.1/AsyncTCP-master.zip and /dev/null differ diff --git a/elboard v1.1/ESPAsyncWebServer-master.zip b/elboard v1.1/ESPAsyncWebServer-master.zip deleted file mode 100644 index aad24fc..0000000 Binary files a/elboard v1.1/ESPAsyncWebServer-master.zip and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/.github/ISSUE_TEMPLATE/bug_report.md b/elboard v1.1/board/Slave/ESPUI-master/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index b735373..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/elboard v1.1/board/Slave/ESPUI-master/.github/ISSUE_TEMPLATE/feature_request.md b/elboard v1.1/board/Slave/ESPUI-master/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 066b2d9..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/elboard v1.1/board/Slave/ESPUI-master/.gitignore b/elboard v1.1/board/Slave/ESPUI-master/.gitignore deleted file mode 100644 index 87b3c5f..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -# ========================= -# Operating System Files -# ========================= - -# OSX -# ========================= - -.DS_Store -.AppleDouble -.LSOverride - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# Linux -# ========================= - -# Backup files produced by some editors -*~ -*.bak - - -.vscode/ diff --git a/elboard v1.1/board/Slave/ESPUI-master/ESPUI_blocks.js b/elboard v1.1/board/Slave/ESPUI-master/ESPUI_blocks.js deleted file mode 100644 index 1813db3..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/ESPUI_blocks.js +++ /dev/null @@ -1,279 +0,0 @@ -// This is a block definition for projects like roboblocks -// -// Main Block -Facilino.LANG_COLOUR_HTML = '#BDBDBD'; -Facilino.LANG_COLOUR_ESPUI = '#B1B1B1'; - -Blockly.Blocks['espui'] = { - category: Facilino.locales.getKey('LANG_CATEGORY_HTML'), - subcategory: Facilino.locales.getKey('LANG_SUBCATERGORY_ESPUI'), - helpUrl: Facilino.getHelpUrl('espui'), - tags: ['webinterface'], - examples: ['lol.bly'], - category_colour: Facilino.LANG_COLOUR_HTML, - colour: Facilino.LANG_COLOUR_ESPUI, - init: function() { - var wifiOptions = [['No', false],['Yes', true]]; - this.appendDummyInput().appendField('UI Title:').appendField(new Blockly.FieldTextInput(Facilino.locales.getKey('LANG_ESPUI_ESPUI_TITLE')), 'ui_name'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_ESPUI_HOTSPOT')).appendField(new Blockly.FieldDropdown(wifiOptions), 'wifi_option'); - this.appendStatementInput('ui_elements').setCheck('ui_element'); - this.setColour(Facilino.LANG_COLOUR_ESPUI); - this.setTooltip(Facilino.locales.getKey('LANG_ESPUI_ESPUI_TOOLTIP')); - } -}; - -Blockly.Arduino['espui'] = function(block) { - var ui_name = block.getFieldValue('ui_name'); - var wifi_option = block.getFieldValue('wifi_option'); - var ui_elements = Blockly.Arduino.statementToCode(block, 'ui_elements'); - Blockly.Arduino.definitions_['define_wifi_h'] = '#include '; - Blockly.Arduino.definitions_['define_espui_h'] = '#include '; - Blockly.Arduino.setups_['setup_espui'] = '\n'; - if(wifi_option){ - Blockly.Arduino.setups_['setup_espui'] += - ' Serial.begin(115200);\n\n' + - ' WiFi.mode(WIFI_AP);\n' + - ' WiFi.softAP("' + ui_name + '");\n' + - ' Serial.print("IP address: ");\n' + - ' Serial.println(WiFi.softAPIP());\n\n'; - } - Blockly.Arduino.setups_['setup_espui'] += ui_elements; - Blockly.Arduino.setups_['setup_espui'] += ' ESPUI.begin("' + ui_name + '");\n'; - return null; -}; - -//Elements - -Blockly.Blocks['espui_button'] = { - category: Facilino.locales.getKey('LANG_CATEGORY_HTML'), - subcategory: Facilino.locales.getKey('LANG_SUBCATERGORY_ESPUI'), - helpUrl: Facilino.getHelpUrl('espui_button'), - tags: ['webinterface'], - examples: ['lol.bly'], - category_colour: Facilino.LANG_COLOUR_HTML, - colour: Facilino.LANG_COLOUR_ESPUI, - init: function() { - var colour = new Blockly.FieldColour('#000000'); - colour.setColours(['#000000','#40e0d0','#50c878','#3498dc','#687894','#e4d422','#eb8921','#e32636']).setColumns(2); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_BUTTON_BUTTON')).appendField(new Blockly.FieldTextInput(Facilino.locales.getKey('LANG_ESPUI_NAME')), 'ui_name'); - //this.appendDummyInput().appendField('UI Color').appendField(new Blockly.FieldDropdown(colorOptions), 'ui_color'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_COLOR')).appendField(colour, 'ui_color'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_TEXT')).appendField(new Blockly.FieldTextInput(Facilino.locales.getKey('LANG_ESPUI_TEXT')), 'button_text'); - this.setColour(Facilino.LANG_COLOUR_ESPUI); - this.setPreviousStatement(true, 'ui_element'); - this.setNextStatement(true, 'ui_element'); - this.setTooltip(Facilino.locales.getKey('LANG_ESPUI_BUTTON_TOOLTIP')); - this.appendStatementInput('on_down').appendField(new Blockly.FieldImage('img/blocks/button_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck(null); - this.appendStatementInput('on_up').appendField(new Blockly.FieldImage('img/blocks/button_released.svg', 24*options.zoom, 24*options.zoom)).setCheck(null); - } -}; - -Blockly.Arduino['espui_button'] = function(block) { - var ui_name = block.getFieldValue('ui_name'); - var color = block.getFieldValue('ui_color'); - var colorOptions = {"#000000": "COLOR_NONE", "#40e0d0": "COLOR_TURQUOISE", "#50c878": "COLOR_EMERALD", "#3498dc": "COLOR_PETERRIVER", "#687894": "COLOR_WETASPHALT", "#e4d422": "COLOR_SUNFLOWER", "#eb8921": "COLOR_CARROT", "#e32636": "COLOR_ALIZARIN"}; - var ui_color = colorOptions[color]; - var button_text = block.getFieldValue('button_text'); - var ui_name_clean = ui_name.replace(' ', '_'); - var on_down = Blockly.Arduino.statementToCode(block, 'on_down'); - var on_up = Blockly.Arduino.statementToCode(block, 'on_up'); - Blockly.Arduino.definitions_['define_ui_button_' + ui_name_clean] = - 'void button_' + ui_name_clean + '(Control c, int type) {\n' + - ' switch(type){\n' + - ' case B_DOWN:\n' + - on_down + '\n break;\n' + - ' case B_UP:\n' + - on_up + '\n break;\n' + - ' }\n' + - '}\n'; - var code = ' ESPUI.button("' + ui_name + '", &button_' + ui_name_clean + ', ' + ui_color + ', "' + button_text + '");\n'; - return code; -}; - -Blockly.Blocks['espui_label'] = { - category: Facilino.locales.getKey('LANG_CATEGORY_HTML'), - subcategory: Facilino.locales.getKey('LANG_SUBCATERGORY_ESPUI'), - helpUrl: Facilino.getHelpUrl('espui_label'), - tags: ['webinterface'], - examples: ['lol.bly'], - category_colour: Facilino.LANG_COLOUR_HTML, - colour: Facilino.LANG_COLOUR_ESPUI, - init: function() { - var colour = new Blockly.FieldColour('#000000'); - colour.setColours(['#000000','#40e0d0','#50c878','#3498dc','#687894','#e4d422','#eb8921','#e32636']).setColumns(2); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_LABEL_LABEL')).appendField(new Blockly.FieldTextInput(Facilino.locales.getKey('LANG_ESPUI_NAME')), 'ui_name'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_COLOR')).appendField(colour, 'ui_color'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_TEXT')).appendField(new Blockly.FieldTextInput('value'), 'start_value'); - this.setColour(Facilino.LANG_COLOUR_ESPUI); - this.setPreviousStatement(true, 'ui_element'); - this.setNextStatement(true, 'ui_element'); - this.setTooltip(Facilino.locales.getKey('LANG_ESPUI_LABEL_TOOLTIP')); - } -}; - -Blockly.Arduino['espui_label'] = function(block) { - var ui_name = block.getFieldValue('ui_name'); - var ui_color = block.getFieldValue('ui_color'); - var ui_name_clean = ui_name.replace(' ', '_'); - var start_value = block.getFieldValue('start_value'); - var code = ' ESPUI.label("' + ui_name + '", ' + ui_color + ', "' + start_value + '");\n'; - return code; -}; - -Blockly.Blocks['espui_switcher'] = { - category: Facilino.locales.getKey('LANG_CATEGORY_HTML'), - subcategory: Facilino.locales.getKey('LANG_SUBCATERGORY_ESPUI'), - helpUrl: Facilino.getHelpUrl('espui_switcher'), - tags: ['webinterface'], - examples: ['lol.bly'], - category_colour: Facilino.LANG_COLOUR_HTML, - colour: Facilino.LANG_COLOUR_ESPUI, - init: function() { - var colour = new Blockly.FieldColour('#000000'); - colour.setColours(['#000000','#40e0d0','#50c878','#3498dc','#687894','#e4d422','#eb8921','#e32636']).setColumns(2); - var stateOptions = [['Off', 'false'],['On', 'true']]; - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_SWITCH_SWITCH')).appendField(new Blockly.FieldTextInput(Facilino.locales.getKey('LANG_ESPUI_NAME')), 'ui_name'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_COLOR')).appendField(colour, 'ui_color'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_STATE')).appendField(new Blockly.FieldDropdown(stateOptions), 'switcher_state'); - this.setColour(Facilino.LANG_COLOUR_ESPUI); - this.setPreviousStatement(true, 'ui_element'); - this.setNextStatement(true, 'ui_element'); - this.setTooltip('A web interface button'); - this.appendStatementInput('on_on').appendField(new Blockly.FieldImage('img/blocks/switch_on.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_off').appendField(new Blockly.FieldImage('img/blocks/switch_off.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - } -}; - -Blockly.Arduino['espui_switcher'] = function(block) { - var ui_name = block.getFieldValue('ui_name'); - var color = block.getFieldValue('ui_color'); - var colorOptions = {"#000000": "COLOR_NONE", "#40e0d0": "COLOR_TURQUOISE", "#50c878": "COLOR_EMERALD", "#3498dc": "COLOR_PETERRIVER", "#687894": "COLOR_WETASPHALT", "#e4d422": "COLOR_SUNFLOWER", "#eb8921": "COLOR_CARROT", "#e32636": "COLOR_ALIZARIN"}; - var ui_color = colorOptions[color]; - var switcher_state = block.getFieldValue('switcher_state'); - var ui_name_clean = ui_name.replace(' ', '_'); - var on_on = Blockly.Arduino.statementToCode(block, 'on_down'); - var on_off = Blockly.Arduino.statementToCode(block, 'on_up'); - Blockly.Arduino.definitions_['define_ui_switcher_' + ui_name_clean] = - 'void switcher_' + ui_name_clean + '(Control c, int type) {\n' + - ' switch(type){\n' + - ' case S_ACTIVE:\n' + - on_on + '\n break;\n' + - ' case S_INACTIVE:\n' + - on_off + '\n break;\n' + - ' }\n' + - '}\n'; - var code = ' ESPUI.switcher("' + ui_name + '", ' + switcher_state + ', &switcher_' + ui_name_clean + ', ' + ui_color + ');\n'; - return code; -}; - -Blockly.Blocks['espui_pad'] = { - category: Facilino.locales.getKey('LANG_CATEGORY_HTML'), - subcategory: Facilino.locales.getKey('LANG_SUBCATERGORY_ESPUI'), - helpUrl: Facilino.getHelpUrl('espui_pad'), - tags: ['webinterface'], - examples: ['lol.bly'], - category_colour: Facilino.LANG_COLOUR_HTML, - colour: Facilino.LANG_COLOUR_ESPUI, - init: function() { - var colour = new Blockly.FieldColour('#000000'); - colour.setColours(['#000000','#40e0d0','#50c878','#3498dc','#687894','#e4d422','#eb8921','#e32636']).setColumns(2); - var centerOptions = [['Yes', 'false'],['No', 'true']]; - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_PAD_PAD')).appendField(new Blockly.FieldTextInput(Facilino.locales.getKey('LANG_ESPUI_NAME')), 'ui_name'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_COLOR')).appendField(colour, 'ui_color'); - this.appendDummyInput().appendField(Facilino.locales.getKey('LANG_ESPUI_PAD_CENTER')).appendField(new Blockly.FieldDropdown(centerOptions), 'pad_center'); - this.setColour(Facilino.LANG_COLOUR_ESPUI); - this.setPreviousStatement(true, 'ui_element'); - this.setNextStatement(true, 'ui_element'); - this.setTooltip('A web interface button'); - this.appendStatementInput('on_down_for').appendField(new Blockly.FieldImage('img/blocks/controller_up_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_up_for').appendField(new Blockly.FieldImage('img/blocks/controller_up_released.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_down_back').appendField(new Blockly.FieldImage('img/blocks/controller_down_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_up_back').appendField(new Blockly.FieldImage('img/blocks/controller_down_released.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_down_left').appendField(new Blockly.FieldImage('img/blocks/controller_right_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_up_left').appendField(new Blockly.FieldImage('img/blocks/controller_right_released.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_down_right').appendField(new Blockly.FieldImage('img/blocks/controller_left_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_up_right').appendField(new Blockly.FieldImage('img/blocks/controller_left_released.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_down_center').appendField(new Blockly.FieldImage('img/blocks/controller_center_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_up_center').appendField(new Blockly.FieldImage('img/blocks/controller_center_released.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.lastOption=this.getFieldValue('pad_center'); - }, - onchange() { - if (this.lastOption!==this.getFieldValue('pad_center')) - { - if (this.getFieldValue('pad_center')==='false') - { - try{ - - this.removeInput('on_down_center'); - this.removeInput('on_up_center'); - this.appendStatementInput('on_down_center').appendField(new Blockly.FieldImage('img/blocks/controller_center_pressed.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - this.appendStatementInput('on_up_center').appendField(new Blockly.FieldImage('img/blocks/controller_center_released.svg', 24*options.zoom, 24*options.zoom)).setCheck('code'); - } - catch(e) - { - } - } - else - { - try{ - this.removeInput('on_down_center'); - this.removeInput('on_up_center'); - } - catch(e) - { - } - } - this.lastOption=this.getFieldValue('pad_center'); - } - } -}; - -Blockly.Arduino['espui_pad'] = function(block) { - var ui_name = block.getFieldValue('ui_name'); - var color = block.getFieldValue('ui_color'); - var colorOptions = {"#000000": "COLOR_NONE", "#40e0d0": "COLOR_TURQUOISE", "#50c878": "COLOR_EMERALD", "#3498dc": "COLOR_PETERRIVER", "#687894": "COLOR_WETASPHALT", "#e4d422": "COLOR_SUNFLOWER", "#eb8921": "COLOR_CARROT", "#e32636": "COLOR_ALIZARIN"}; - var ui_color = colorOptions[color]; - var pad_center = block.getFieldValue('pad_center'); - var ui_name_clean = ui_name.replace(' ', '_'); - var on_down_for = Blockly.Arduino.statementToCode(block, 'on_down_for'); - var on_up_for = Blockly.Arduino.statementToCode(block, 'on_up_for'); - var on_down_back = Blockly.Arduino.statementToCode(block, 'on_down_back'); - var on_up_back = Blockly.Arduino.statementToCode(block, 'on_up_back'); - var on_down_left = Blockly.Arduino.statementToCode(block, 'on_down_left'); - var on_up_left = Blockly.Arduino.statementToCode(block, 'on_up_left'); - var on_down_right = Blockly.Arduino.statementToCode(block, 'on_down_right'); - var on_up_right = Blockly.Arduino.statementToCode(block, 'on_up_right'); - var on_down_center = Blockly.Arduino.statementToCode(block, 'on_down_center'); - var on_up_center = Blockly.Arduino.statementToCode(block, 'on_up_center'); - Blockly.Arduino.definitions_['define_ui_pad_' + ui_name_clean] = - 'void pad_' + ui_name_clean + '(Control c, int type) {\n' + - ' switch(type){\n' + - ' case P_FOR_DOWN:\n' + - on_down_for + '\n break;\n' + - ' case P_FOR_UP:\n' + - on_up_for + '\n break;\n' + - - ' case P_BACK_DOWN:\n' + - on_down_back + '\n break;\n' + - ' case P_BACK_UP:\n' + - on_up_back + '\n break;\n' + - - ' case P_RIGHT_DOWN:\n' + - on_down_left + '\n break;\n' + - ' case P_RIGHT_UP:\n' + - on_up_left + '\n break;\n' + - - ' case P_LEFT_DOWN:\n' + - on_down_right + '\n break;\n' + - ' case P_LEFT_UP:\n' + - on_up_right + '\n break;\n' + - - ' case P_CENTER_DOWN:\n' + - on_down_center + '\n break;\n' + - ' case P_CENTER_UP:\n' + - on_up_center + '\n break;\n' + - ' }\n' + - '}\n'; - var code = ' ESPUI.pad("' + ui_name + '", ' + pad_center + ', &pad_' + ui_name_clean + ', ' + ui_color + ');\n'; - return code; -}; \ No newline at end of file diff --git a/elboard v1.1/board/Slave/ESPUI-master/LICENSE b/elboard v1.1/board/Slave/ESPUI-master/LICENSE deleted file mode 100644 index e70f533..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2017 Lukas Bachschwell (s00500) -Authors: Lukas Bachschwell - -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. diff --git a/elboard v1.1/board/Slave/ESPUI-master/README.md b/elboard v1.1/board/Slave/ESPUI-master/README.md deleted file mode 100644 index ad3c93a..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/README.md +++ /dev/null @@ -1,175 +0,0 @@ -# ESPUI -![ESPUI](https://github.com/s00500/ESPUI/blob/master/docs/ui_complete.png) - - -ESPUI is a simple library to make a web user interface for your projects using the **ESP8266** or the **ESP32** -It uses web sockets and lets you create, control, and update elements on your GUI through multiple devices like phones and tablets. - -ESPUI uses simple Arduino-style syntax for creating a solid, functioning user interface without too much boilerplate code. - -So if you either don't know how or just don't want to waste time: this is your simple solution user interface without the need of internet connectivity or any additional servers. - -I completely rewrote the EasyUI Library created by ayushsharma82 [Here](https://github.com/ayushsharma82/) -Now it uses ESPAsyncWebserver and is mainly to be used with the ESP32 Processor. - -## Dependencies -This library is dependent on the following libraries to function properly. - -- [ESPAsyncWebserver](https://github.com/me-no-dev/ESPAsyncWebServer) -- [ArduinoJson](https://github.com/bblanchon/ArduinoJson) - -**Plus for ESP8266** -- [ESPAsyncTCP](https://github.com/me-no-dev/ESPAsyncTCP) - -**Additionally necessary for ESP32** -- [AsyncTCP](https://github.com/me-no-dev/AsyncTCP) - - -## How to Install - -Make sure all the dependencies are installed, then install like so: - -#### Directly Through Arduino IDE (*recommended*) - -You can find this Library in the Arduino IDE library manager -Go to Sketch > Include Library > Library Manager > Search for "ESPUI" > Install - -#### Manual Install - -For Windows: Download the [Repository](https://github.com/s00500/ESPUI/archive/master.zip) and extract the .zip in Documents>Arduino>Libraries>{Place "ESPUI" folder Here} - -For Linux: Download the [Repository](https://github.com/s00500/ESPUI/archive/master.zip) and extract the .zip in Sketchbook/Libraries/{Place "ESPUI" folder Here} - -For macOs: Download the [Repository](https://github.com/s00500/ESPUI/archive/master.zip) and extract the .zip in ~/Documents/Arduino/libraries/{Place "ESPUI" folder Here} - -#### Manually through IDE - -Download the [Repository](https://github.com/s00500/ESPUI/archive/master.zip), Go to Sketch>Include Library>Add .zip Library> Select the Downloaded .zip File. - -## Getting started - -ESPUI serves several files to the browser to build up its webinterface. This can be achieved in 2 ways: -*PROGMEM* or *SPIFFS* - -*When `ESPUI.begin()` is called the default is serving files from Memory and ESPUI should work out of the box!* - -But if this causes your program to *use too much memory* you can burn the files into the SPIFFS filesystem on the ESP. -There are now two ways to do this: you can either use the ESP file upload tool or you use the library function `ESPUI.prepareFileSystem()` - -#### Simple filesystem preparation (*recommended*) - -Just open the example sketch **prepareFileSystem** and run it on the ESP, (give it up to 30 seconds, you can see the status on the Serial Monitor), -The library will create all needed files. -Congratulations, you are done, from now on you just need to to this again when there is a library update, or when you want to use another chip :-) -Now you can upload your normal sketch, when you do not call the `ESPUI.prepareFileSystem()` function the compiler will strip out all the unnecessary that is already saved in the chip's filesystem and you have more programm memory to work with. - - -#### Manual way (mainly for development) - -To do this download and install me-no-devs wonderful [ESP32 sketch data uploader](https://github.com/me-no-dev/arduino-esp32fs-plugin) or for ESP8266 [ESP8266 sketch data uploader](https://github.com/esp8266/arduino-esp8266fs-plugin) - -Then open the **gui** example sketch and select "Upload Sketch Data" from the Tools menu for your processor. -Now you are set to go and use any code you want to with this library - -## User interface Elements - - Label (updateable) - - Button - - Switch (updateable) - - Control pad - - Control pad with center button - - Slider - - Text Input (updateable) - - Numberinput (updateable) - - Checkout the example for the usage - -## Available colors: - -- COLOR_TURQUOISE -- COLOR_EMERALD -- COLOR_PETERRIVER -- COLOR_WETASPHALT -- COLOR_SUNFLOWER -- COLOR_CARROT -- COLOR_ALIZARIN -- COLOR_NONE - -## Roadmap : - -- ~~Setup SPIFFS using values in program memory~~ -- ~~ESP8266 support~~ -- ~~PlattformIO Integration~~ -- ~~Multiline Labels~~ -- ~~GZip Files and serve from memory~~ -- Datagraph output -> *WIP* -- ~~Number input ~~ -- ~~Text input ~~ -- Dokumentation for Text and number widget -- Number min and max value -- proper return value (as int and not as string) for slider -- Maybe a slider range setting, meanwhile please use *map()* - -## Documentation - -The heart of ESPUI is [ESPAsyncWebserver](https://github.com/me-no-dev/ESPAsyncWebServer). -ESPUI's frontend is based on [Skeleton CSS](http://getskeleton.com/) and jQuery-like lightweight [zepto.js](https://zeptojs.com/) for Handling Click Events Etc. The communication between the *ESP32* and the client browser works using web sockets. -ESPUI does not need network access and can be used in standalone access point mode. -All assets are loaded from the internal SPIFFS filesystem of the ESP32. - -This section will explain in detail how the Library is to be used from the Arduino code side. As of now the Facilino blocks are not implemented. -In the arduino setup() routine the interface can be customised by adding UI Elements. This is done by calling the corresponding library methods on the Library object ESPUI. Eg: `ESPUI.button(“button”, &myCallback);` creates a button in the interface that calls the “myCallback” function when changed. All buttons and items call their callback whenever there is a state change from them. This means the button will call the callback when it is pressed and also again when it is released. To separate different events an integer number with the event name is passed to the callback function that can be handled in a `switch(){}case{}` statement. Here is an overview of the currently implemented different elements of the UI library: - - -#### Button - -![Buttons](https://github.com/s00500/ESPUI/blob/master/docs/ui_button.png) - -Buttons have a name and a callback value. They have one event for press and one for release. - - -#### Switch - -![Switches](https://github.com/s00500/ESPUI/blob/master/docs/ui_switches.png) - -Switches sync their state on all connected devices. This means when you change their value they change visibly on all tablets or computers that currently display the interface. They also have two types of events: one for turning on and one for turning off. - - -#### Buttonpad - -![control pads](https://github.com/s00500/ESPUI/blob/master/docs/ui_controlpad.png) - -Button pads come in two flavours: with or without a center button. They are very useful for con-trolling all kinds of movements of vehicles or also of course our walking robots. They use a single callback per pad and have 8 or 10 different event types to differentiate the button actions. - - -#### Labels - -![labels](https://github.com/s00500/ESPUI/blob/master/docs/ui_labels.png) - -Labels are a nice tool to get information from the robot to the user interface. This can be done to show states, values of sensors and configuration parameters. To send data from the code use `ESP.print(labelId, “Text”);` . Labels get a name on creation and a initial value. The name is not changeable once the UI initialised. - -Labels automatically wrap your text. If you want them to have multiple lines use the normal `
` tag in the string you print to the label - -#### Slider - -![labels](https://github.com/s00500/ESPUI/blob/master/docs/ui_slider.png) - -The Slider can be used to slide through a value from 1 to 100. Slides provide realtime data, are touch compatible and can be used to for example control a Servo. The current value is shown while the slider is dragged in a little bubble over the handle. - -#### Initialisation of the UI - -After all the elements are configured you can use `ESPUI.begin(“Some Title”);` to start the UI interface. (Or `ESPUI.beginSPIFFS(“Some Title”);` respectively) Make sure you setup a working network connection or AccesPoint **before** (See example). The web interface can then be used from multiple devices at once and also shows an connection status in the top bar. -The library is designed to be easy to use and can still be extended with a lot of more functionality. - - -# Notes for Development -If you want to work on the HTML/CSS/JS files, do make changes in the `examples/gui/data` directory. When you need to transfer that code to the ESP, run `tools/prepare_static_ui_sources.py -a` (this script needs python3 with the modules htmlmin, jsmin and csscompressor). -This will generate a) minified files next to the original files to be uploaded with the ESP32 sketch data uploader mentioned above and b) the C header files in `src` that contain the minified and gzipped HTML/CSS/JS data (which are used by the **prepareFileSystem** example sketch or when they are served from PROGMEM; see above in the section "Getting started"). -Alternatively, you can duplicate the `examples/gui` directory and work on the copy. Then specify the `--source` and `--target` arguments to the `prepare_static_ui_sources.py` script (run the script without arguments for help). - -If you don't have a python environment, you need to minify and gzip the HTML/CSS/JS files manually. I wrote a little useful jsfiddle for this, [see here](https://jsfiddle.net/s00500/yvLbhuuv/). - -If you change something in HTML/CSS/JS and want to create a pull request, please do include the minified versions and corresponding C header files in your commits. - - -# Contribute -Liked this Library? You can **support** me by sending me a :coffee: [Coffee](https://paypal.me/lukasbachschwell/3). diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/Memory ESP32.png b/elboard v1.1/board/Slave/ESPUI-master/docs/Memory ESP32.png deleted file mode 100644 index 6423125..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/Memory ESP32.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/Memory ESP8266.png b/elboard v1.1/board/Slave/ESPUI-master/docs/Memory ESP8266.png deleted file mode 100644 index 6139c27..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/Memory ESP8266.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/SPIFFS ESP32.png b/elboard v1.1/board/Slave/ESPUI-master/docs/SPIFFS ESP32.png deleted file mode 100644 index 5b43d0e..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/SPIFFS ESP32.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/SPIFFS ESP8266.png b/elboard v1.1/board/Slave/ESPUI-master/docs/SPIFFS ESP8266.png deleted file mode 100644 index 454cc77..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/SPIFFS ESP8266.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_button.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_button.png deleted file mode 100644 index f343c3a..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_button.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_complete.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_complete.png deleted file mode 100644 index bef992d..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_complete.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_controlpad.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_controlpad.png deleted file mode 100644 index bdd16db..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_controlpad.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_labels.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_labels.png deleted file mode 100644 index cf9301e..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_labels.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_slider.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_slider.png deleted file mode 100644 index 6adc1dc..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_slider.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_status.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_status.png deleted file mode 100644 index c01199c..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_status.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_switches.png b/elboard v1.1/board/Slave/ESPUI-master/docs/ui_switches.png deleted file mode 100644 index 0ff4073..0000000 Binary files a/elboard v1.1/board/Slave/ESPUI-master/docs/ui_switches.png and /dev/null differ diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/normalize.css b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/normalize.css deleted file mode 100644 index fc917f5..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/normalize.css +++ /dev/null @@ -1,246 +0,0 @@ - html { - font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; /* 2 */ - -webkit-text-size-adjust: 100%; /* 2 */ - } - - body { - margin: 0; - } - - /* HTML5 display definitions - ========================================================================== */ - - article, - aside, - details, - figcaption, - figure, - footer, - header, - hgroup, - main, - menu, - nav, - section, - summary { - display: block; - } - - audio, - canvas, - progress, - video { - display: inline-block; /* 1 */ - vertical-align: baseline; /* 2 */ - } - - audio:not([controls]) { - display: none; - height: 0; - } - - [hidden], - template { - display: none; - } - - /* Links - ========================================================================== */ - - a { - background-color: transparent; - } - - a:active, - a:hover { - outline: 0; - } - - /* Text-level semantics - ========================================================================== */ - - abbr[title] { - border-bottom: 1px dotted; - } - - b, - strong { - font-weight: bold; - } - - dfn { - font-style: italic; - } - - h1 { - font-size: 2em; - margin: 0.67em 0; - } - - mark { - background: #ff0; - color: #000; - } - - small { - font-size: 80%; - } - - sub, - sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - sup { - top: -0.5em; - } - - sub { - bottom: -0.25em; - } - - /* Embedded content - ========================================================================== */ - - img { - border: 0; - } - - svg:not(:root) { - overflow: hidden; - } - - /* Grouping content - ========================================================================== */ - - figure { - margin: 1em 40px; - } - - hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; - } - - pre { - overflow: auto; - } - - code, - kbd, - pre, - samp { - font-family: monospace, monospace; - font-size: 1em; - } - - button, - input, - optgroup, - select, - textarea { - color: inherit; /* 1 */ - font: inherit; /* 2 */ - margin: 0; /* 3 */ - } - - button { - overflow: visible; - } - - button, - select { - text-transform: none; - } - - button, - html input[type="button"], /* 1 */ - input[type="reset"], - input[type="submit"] { - -webkit-appearance: button; /* 2 */ - cursor: pointer; /* 3 */ - } - - button[disabled], - html input[disabled] { - cursor: default; - } - - button::-moz-focus-inner, - input::-moz-focus-inner { - border: 0; - padding: 0; - } - - input { - line-height: normal; - } - - input[type="checkbox"], - input[type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ - } - - input[type="number"]::-webkit-inner-spin-button, - input[type="number"]::-webkit-outer-spin-button { - height: auto; - } - - input[type="search"] { - -webkit-appearance: textfield; /* 1 */ - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; /* 2 */ - box-sizing: content-box; - } - - input[type="search"]::-webkit-search-cancel-button, - input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; - } - - fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; - } - - /** - * 1. Correct `color` not being inherited in IE 8/9/10/11. - * 2. Remove padding so people aren't caught out if they zero out fieldsets. - */ - - legend { - border: 0; /* 1 */ - padding: 0; /* 2 */ - } - - textarea { - overflow: auto; - } - - /** - * Don't inherit the `font-weight` (applied by a rule above). - * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. - */ - - optgroup { - font-weight: bold; - } - - /* Tables - ========================================================================== */ - table { - border-collapse: collapse; - border-spacing: 0; - } - - td, - th { - padding: 0; - } diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/normalize.min.css b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/normalize.min.css deleted file mode 100644 index bb2f742..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/normalize.min.css +++ /dev/null @@ -1 +0,0 @@ -html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} \ No newline at end of file diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/style.css b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/style.css deleted file mode 100644 index 95a247d..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/style.css +++ /dev/null @@ -1,811 +0,0 @@ - .container { - position: relative; - width: 79%; - margin: 20px; - box-sizing: border-box; - } - - .column, .columns { - width: 100%; - float: left; - } - - .card { - margin-top: 2%; - border-radius: 6px; - box-shadow: 0 4px 4px rgba(204, 197, 185, 0.5); - padding-left: 20px; - padding-right: 20px; - margin-bottom: 10px; - min-width: 150px; - color: #fff; - } - - .card-slider { - padding-bottom: 10px - } - - .turquoise { - background: #1abc9c; - border-bottom: #16a085 3px solid; - } - - .emerald { - background: #2ecc71; - border-bottom: #27ae60 3px solid; - } - - .peterriver { - background: #3498db; - border-bottom: #2980b9 3px solid; - } - - .wetasphalt { - background: #34495e; - border-bottom: #2c3e50 3px solid; - } - - .sunflower { - background: #f1c40f; - border-bottom: #E6BB0F 3px solid; - } - - .carrot { - background: #e67e22; - border-bottom: #d35400 3px solid; - } - - .alizarin { - background: #e74c3c; - border-bottom: #c0392b 3px solid; - } - - .label { - box-sizing: border-box; - white-space: nowrap; - border-radius: 0.2em; - padding: 0.12em 0.4em 0.14em; - text-align: center; - color: #ffffff; - font-weight: 700; - line-height: 1; - margin-bottom: 5px; - display: inline-block; - white-space: nowrap; - vertical-align: baseline; - position: relative; - top: -0.15em; - background-color: #999999; - margin-bottom: 10px; - } - - .label-wrap { - width: 90%; - white-space: pre-wrap; - word-wrap: break-word; - } - - .label.color-blue { - background-color: #6f9ad1; - } - - .label.color-red { - background-color: #d37c7c; - } - - .label.color-green { - background-color: #9bc268; - } - - .label.color-orange { - background-color: #dea154; - } - - .label.color-yellow { - background-color: #e9d641; - } - - .label.color-purple { - background-color: #9f83d1; - } - - /* For devices larger than 400px */ - - @media (min-width: 400px) { - .container { - width: 84%; - } - } - - /* For devices larger than 550px */ - - @media (min-width: 630px) { - .container { - width: 98%; - } - .column, .columns { - margin-right: 2%; - } - .column:first-child, .columns:first-child { - margin-left: 0; - } - .one.column, .one.columns { - width: 4.66666666667%; - } - .two.columns { - width: 13.3333333333%; - } - .three.columns { - width: 22%; - } - .four.columns { - width: 30.6666666667%; - } - .five.columns { - width: 39.3333333333%; - } - .six.columns { - width: 48%; - } - .seven.columns { - width: 56.6666666667%; - } - .eight.columns { - width: 65.3333333333%; - } - .nine.columns { - width: 74.0%; - } - .ten.columns { - width: 82.6666666667%; - } - .eleven.columns { - width: 91.3333333333%; - } - .twelve.columns { - width: 100%; - margin-left: 0; - } - .one-third.column { - width: 30.6666666667%; - } - .two-thirds.column { - width: 65.3333333333%; - } - .one-half.column { - width: 48%; - } - /* Offsets */ - .offset-by-one.column, .offset-by-one.columns { - margin-left: 8.66666666667%; - } - .offset-by-two.column, .offset-by-two.columns { - margin-left: 17.3333333333%; - } - .offset-by-three.column, .offset-by-three.columns { - margin-left: 26%; - } - .offset-by-four.column, .offset-by-four.columns { - margin-left: 34.6666666667%; - } - .offset-by-five.column, .offset-by-five.columns { - margin-left: 43.3333333333%; - } - .offset-by-six.column, .offset-by-six.columns { - margin-left: 52%; - } - .offset-by-seven.column, .offset-by-seven.columns { - margin-left: 60.6666666667%; - } - .offset-by-eight.column, .offset-by-eight.columns { - margin-left: 69.3333333333%; - } - .offset-by-nine.column, .offset-by-nine.columns { - margin-left: 78.0%; - } - .offset-by-ten.column, .offset-by-ten.columns { - margin-left: 86.6666666667%; - } - .offset-by-eleven.column, .offset-by-eleven.columns { - margin-left: 95.3333333333%; - } - .offset-by-one-third.column, .offset-by-one-third.columns { - margin-left: 34.6666666667%; - } - .offset-by-two-thirds.column, .offset-by-two-thirds.columns { - margin-left: 69.3333333333%; - } - .offset-by-one-half.column, .offset-by-one-half.columns { - margin-left: 52%; - } - } - - /* Base Styles - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - html { - font-size: 62.5%; - } - - body { - margin: 0; - font-size: 1.5em; - line-height: 1.0; - font-weight: 400; - font-family: 'Open Sans', sans-serif; - color: #222; - background-color: #ecf0f1; - } - - /* Typography - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - h1, h2, h3, h4, h5, h6 { - margin-top: 0; - margin-bottom: 0.5rem; - font-weight: 300; - } - - h1 { - font-size: 4.0rem; - line-height: 1.2; - letter-spacing: -.1rem; - } - - h2 { - font-size: 3.6rem; - line-height: 1.25; - letter-spacing: -.1rem; - } - - h3 { - font-size: 3.0rem; - line-height: 1.3; - letter-spacing: -.1rem; - } - - h4 { - font-size: 2.4rem; - line-height: 1.35; - letter-spacing: -.08rem; - } - - h5 { - font-size: 1.8rem; - line-height: 1.5; - letter-spacing: -.05rem; - } - - h6 { - font-size: 1.5rem; - line-height: 1.6; - letter-spacing: 0; - } - - /* Larger than phablet */ - - @media (min-width: 630px) { - h1 { - font-size: 5.0rem; - } - h2 { - font-size: 4.2rem; - } - h3 { - font-size: 3.6rem; - } - h4 { - font-size: 3.0rem; - } - h5 { - font-size: 2.0rem; - } - h6 { - font-size: 1.5rem; - } - } - - p { - margin-top: 0; - } - - /* Links - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - a { - color: #1EAEDB; - } - - a:hover { - color: #0FA0CE; - } - - /* Buttons - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - button { - display: inline-block; - padding: 10px; - border-radius: 3px; - color: #fff; - background-color: #999999; - } - - /* Main Head Part - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - #mainHeader { - display: inline-block; - } - - #conStatus { - position: inherit; - font-size: 0.75em; - } - - /* Spacing - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - button, .button { - margin-bottom: 1rem; - } - - /* Utilities - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - .u-full-width { - width: 100%; - box-sizing: border-box; - } - - .u-max-full-width { - max-width: 100%; - box-sizing: border-box; - } - - .u-pull-right { - float: right; - } - - .u-pull-left { - float: left; - } - - .tcenter { - text-align: center; - } - - /* Misc - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - hr { - margin-top: 0.5rem; - margin-bottom: 1.2rem; - border-width: 0; - border-top: 1px solid #E1E1E1; - } - - /* Clearing - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - /* Self Clearing Goodness */ - - .container:after, .row:after, .u-cf { - content: ""; - display: table; - clear: both; - } - - /* ButtonPad - –––––––––––––––––––––––––––––––––––––––––––––––––– */ - - .control { - background-color: #ddd; - background-image: linear-gradient(hsla(0, 0%, 0%, .1), hsla(0, 0%, 100%, .1)); - border-radius: 50%; - box-shadow: inset 0 1px 1px 1px hsla(0, 0%, 100%, .5), 0 0 1px 1px hsla(0, 0%, 100%, .75), 0 0 1px 2px hsla(0, 0%, 100%, .25), 0 0 1px 3px hsla(0, 0%, 100%, .25), 0 0 1px 4px hsla(0, 0%, 100%, .25), 0 0 1px 6px hsla(0, 0%, 0%, .75); - height: 9em; - margin: 3em auto; - position: relative; - width: 9em; - } - - .control ul { - height: 100%; - padding: 0; - transform: rotate(45deg); - } - - .control li { - border-radius: 100% 0 0 0; - box-shadow: inset -1px -1px 1px hsla(0, 0%, 100%, .5), 0 0 1px hsla(0, 0%, 0%, .75); - display: inline-block; - height: 50%; - overflow: hidden; - width: 50%; - } - - .control ul li:nth-child(2) { - transform: rotate(90deg); - } - - .control ul li:nth-child(3) { - transform: rotate(-90deg); - } - - .control ul li:nth-child(4) { - transform: rotate(180deg); - } - - .control ul a { - height: 200%; - position: relative; - transform: rotate(-45deg); - width: 200%; - } - - .control a:hover, .control a:focus { - background-color: hsla(0, 0%, 100%, .25); - } - - .control a { - border-radius: 50%; - color: #333; - display: block; - font: bold 1em/3 sans-serif; - text-align: center; - text-decoration: none; - text-shadow: 0 1px 1px hsla(0, 0%, 100%, .4); - transition: .15s; - } - - .control .confirm { - background-color: #ddd; - background-image: linear-gradient(hsla(0, 0%, 0%, .15), hsla(0, 0%, 100%, .25)); - box-shadow: inset 0 1px 1px 1px hsla(0, 0%, 100%, .5), 0 0 1px 1px hsla(0, 0%, 100%, .25), 0 0 1px 2px hsla(0, 0%, 100%, .25), 0 0 1px 3px hsla(0, 0%, 100%, .25), 0 0 1px 4px hsla(0, 0%, 100%, .25), 0 0 1px 6px hsla(0, 0%, 0%, .85); - left: 50%; - line-height: 3; - margin: -1.5em; - position: absolute; - top: 50%; - width: 3em; - } - - .control .confirm:hover, .control .confirm:focus { - background-color: #eee; - } - - /* Switch -–––––––––––––––––––––––––––––––––––––––––––––––––– */ - - .switch { - display: inline-block !important; - background-color: #bebebe; - border-radius: 4px; - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); - color: #fff; - cursor: pointer; - display: block; - font-size: 14px; - height: 26px; - margin-bottom: 12px; - position: relative; - width: 60px; - -webkit-transition: background-color 0.2s ease-in-out; - -moz-transition: background-color 0.2s ease-in-out; - -o-transition: background-color 0.2s ease-in-out; - -ms-transition: background-color 0.2s ease-in-out; - transition: background-color 0.2s ease-in-out; - } - - .switch.checked { - background-color: #76d21d; - } - - .switch input[type="checkbox"] { - display: none; - cursor: pointer; - height: 10px; - left: 12px; - position: absolute; - top: 8px; - width: 10px; - } - - .in { - position: absolute; - top: 8px; - left: 12px; - -webkit-transition: left 0.08s ease-in-out; - -moz-transition: left 0.08s ease-in-out; - -o-transition: left 0.08s ease-in-out; - -ms-transition: left 0.08s ease-in-out; - transition: left 0.08s ease-in-out; - } - - .switch.checked div { - left: 38px; - } - - .switch .in:before { - background: #fff; - background: -moz-linear-gradient(top, #fff 0%, #f0f0f0 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #f0f0f0)); - background: -webkit-linear-gradient(top, #fff 0%, #f0f0f0 100%); - background: -o-linear-gradient(top, #fff 0%, #f0f0f0 100%); - background: -ms-linear-gradient(top, #fff 0%, #f0f0f0 100%); - background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%); - border: 1px solid #fff; - border-radius: 2px; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); - content: ''; - height: 18px; - position: absolute; - top: -5px; - left: -9px; - width: 26px; - } - - .switch .in:after { - background: #f0f0f0; - background: -moz-linear-gradient(top, #f0f0f0 0%, #fff 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f0f0f0), color-stop(100%, #fff)); - background: -webkit-linear-gradient(top, #f0f0f0 0%, #fff 100%); - background: -o-linear-gradient(top, #f0f0f0 0%, #fff 100%); - background: -ms-linear-gradient(top, #f0f0f0 0%, #fff 100%); - background: linear-gradient(to bottom, #f0f0f0 0%, #fff 100%); - border-radius: 10px; - content: ''; - height: 12px; - margin: -1px 0 0 -1px; - position: absolute; - width: 12px; - } - - /* ---------------------------------------------------------------------- - Material Design Range Slider - by Ravikumar Chauhan - ------------------------------------------------------------------------- */ - .rkmd-slider { - display: block; - position: relative; - font-size: 16px; - font-family: 'Roboto', sans-serif; - } - .rkmd-slider input[type="range"] { - overflow: hidden; - position: absolute; - width: 1px; - height: 1px; - opacity: 0; - } - .rkmd-slider input[type="range"] + .slider { - display: block; - position: relative; - width: 100%; - height: 27px; - border-radius: 13px; - background-color: #bebebe; - } - @media (pointer: fine) { - .rkmd-slider input[type="range"] + .slider { - height: 4px; - border-radius: 0px; - } - } - .rkmd-slider input[type="range"] + .slider .slider-fill { - display: block; - position: absolute; - width: 0%; - height: 100%; - user-select: none; - z-index: 1; - } - .rkmd-slider input[type="range"] + .slider .slider-handle { - cursor: pointer; - position: absolute; - top: 12px; - left: 0%; - width: 15px; - height: 15px; - margin-left: -8px; - border-radius: 50%; - transition: all .2s ease; - user-select: none; - z-index: 2; - } - @media (pointer:fine) { - .rkmd-slider input[type="range"] + .slider .slider-handle { - top: -5.5px; - } - } - .rkmd-slider input[type="range"]:disabled + .slider { - background-color: #b0b0b0 !important; - } - .rkmd-slider input[type="range"]:disabled + .slider .slider-fill, - .rkmd-slider input[type="range"]:disabled + .slider .slider-handle { - cursor: default !important; - background-color: #b0b0b0 !important; - } - .rkmd-slider input[type="range"]:disabled + .slider .slider-fill .slider-label, - .rkmd-slider input[type="range"]:disabled + .slider .slider-handle .slider-label { - display: none; - background-color: #b0b0b0 !important; - } - .rkmd-slider input[type="range"]:disabled + .slider .slider-fill.is-active, - .rkmd-slider input[type="range"]:disabled + .slider .slider-handle.is-active { - top: -5.5px; - width: 15px; - height: 15px; - margin-left: -8px; - } - .rkmd-slider input[type="range"]:disabled + .slider .slider-fill.is-active .slider-label, - .rkmd-slider input[type="range"]:disabled + .slider .slider-handle.is-active .slider-label { - display: none; - border-radius: 50%; - transform: none; - } - .rkmd-slider input[type="range"]:disabled + .slider .slider-handle:active { - box-shadow: none !important; - transform: scale(1) !important; - } - - /* ---------------------------------------------------------------------- - Discrete Range Slider - by Ravikumar Chauhan - ------------------------------------------------------------------------- */ - .rkmd-slider.slider-discrete .slider .slider-handle { - position: relative; - z-index: 1; - } - - .rkmd-slider.slider-discrete .slider .slider-handle .slider-label { - position: absolute; - top: -17.5px; - left: 4px; - width: 30px; - height: 30px; - -webkit-transform-origin: 50% 100%; - transform-origin: 50% 100%; - border-radius: 50%; - -webkit-transform: scale(1.0) rotate(-45deg); - transform: scale(1.0) rotate(-45deg); - -webkit-transition: all .2s ease; - transition: all .2s ease; - } - @media (pointer: fine) { - .rkmd-slider.slider-discrete .slider .slider-handle .slider-label { - left: -2px; - -webkit-transform: scale(0.5) rotate(-45deg); - transform: scale(0.5) rotate(-45deg); - } - } - - .rkmd-slider.slider-discrete .slider .slider-handle .slider-label span { - position: absolute; - top: 7px; - left: 0px; - width: 100%; - color: #fff; - font-size: 16px; - text-align: center; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - opacity: 0; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - } - @media (pointer:fine) { - .rkmd-slider.slider-discrete .slider .slider-handle .slider-label span { - font-size: 12px; - } - } - .rkmd-slider.slider-discrete .slider .slider-handle.is-active { - top: 0px; - margin-left: -2px; - width: 4px; - height: 4px; - } - .rkmd-slider.slider-discrete .slider .slider-handle.is-active .slider-label { - top: -15px; - left: -2px; - border-radius: 15px 15px 15px 0; - -webkit-transform: rotate(-45deg) translate(23px, -25px); - transform: rotate(-45deg) translate(23px, -25px); - } - .rkmd-slider.slider-discrete .slider .slider-handle.is-active .slider-label span { - opacity: 1; - } - - - - .rkmd-slider.slider-discrete.slider-turquoise .slider-label { - background-color: #16a085; - } - - .rkmd-slider.slider-discrete.slider-emerald .slider-label { - background-color: #27ae60; - } - - .peterriver { - background: #3498db; - border-bottom: #2980b9 3px solid; - } - - .rkmd-slider.slider-discrete.slider-peterriver .slider-label { - background-color: #2980b9; - } - - .wetasphalt { - background: #34495e; - border-bottom: #2c3e50 3px solid; - } - - .rkmd-slider.slider-discrete.slider-wetasphalt .slider-label { - background-color: #2c3e50; - } - - .sunflower { - background: #f1c40f; - border-bottom: #E6BB0F 3px solid; - } - - .rkmd-slider.slider-discrete.slider-sunflower .slider-label { - background-color: #E6BB0F; - } - - .carrot { - background: #e67e22; - border-bottom: #d35400 3px solid; - } - - .rkmd-slider.slider-discrete.slider-carrot .slider-label { - background-color: #d35400; - } - - .alizarin { - background: #e74c3c; - border-bottom: #c0392b 3px solid; - } - - .rkmd-slider.slider-discrete.slider-alizarin .slider-label { - background-color: #c0392b; - } - - - /* - .rkmd-slider.slider-light input[type="range"] + .slider { - background-color: #5c5c5c; - } - .rkmd-slider.slider-light input[type="range"]:disabled + .slider { - background-color: #5c5c5c !important; - } - .rkmd-slider.slider-light input[type="range"]:disabled + .slider .slider-fill, - .rkmd-slider.slider-light input[type="range"]:disabled + .slider .slider-handle { - background-color: #5c5c5c !important; - } - -*/ - -/* -------------------------------------------------------------- - * Text and number inputs - *--------------------------------------------------------------- */ - -input { - margin: 0 auto 1.2rem auto; - padding: 2px 5px; - width: 100%; - box-sizing: border-box; - border: none; - border-radius: 4px; - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); - background: rgba(255, 255, 255, 0.8); -} - -input[id^="num"] { - max-width: 6em; - width:auto; - text-align: right; - font-weight: bold; - font-size: 115%; -} diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/style.min.css b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/style.min.css deleted file mode 100644 index 443d403..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/css/style.min.css +++ /dev/null @@ -1 +0,0 @@ -.container{position:relative;width:79%;margin:20px;box-sizing:border-box}.column,.columns{width:100%;float:left}.card{margin-top:2%;border-radius:6px;box-shadow:0 4px 4px rgba(204,197,185,0.5);padding-left:20px;padding-right:20px;margin-bottom:10px;min-width:150px;color:#fff}.card-slider{padding-bottom:10px}.turquoise{background:#1abc9c;border-bottom:#16a085 3px solid}.emerald{background:#2ecc71;border-bottom:#27ae60 3px solid}.peterriver{background:#3498db;border-bottom:#2980b9 3px solid}.wetasphalt{background:#34495e;border-bottom:#2c3e50 3px solid}.sunflower{background:#f1c40f;border-bottom:#e6bb0f 3px solid}.carrot{background:#e67e22;border-bottom:#d35400 3px solid}.alizarin{background:#e74c3c;border-bottom:#c0392b 3px solid}.label{box-sizing:border-box;white-space:nowrap;border-radius:.2em;padding:.12em .4em .14em;text-align:center;color:#fff;font-weight:700;line-height:1;margin-bottom:5px;display:inline-block;white-space:nowrap;vertical-align:baseline;position:relative;top:-.15em;background-color:#999;margin-bottom:10px}.label-wrap{width:90%;white-space:pre-wrap;word-wrap:break-word}.label.color-blue{background-color:#6f9ad1}.label.color-red{background-color:#d37c7c}.label.color-green{background-color:#9bc268}.label.color-orange{background-color:#dea154}.label.color-yellow{background-color:#e9d641}.label.color-purple{background-color:#9f83d1}@media(min-width:400px){.container{width:84%}}@media(min-width:630px){.container{width:98%}.column,.columns{margin-right:2%}.column:first-child,.columns:first-child{margin-left:0}.one.column,.one.columns{width:4.66666666667%}.two.columns{width:13.3333333333%}.three.columns{width:22%}.four.columns{width:30.6666666667%}.five.columns{width:39.3333333333%}.six.columns{width:48%}.seven.columns{width:56.6666666667%}.eight.columns{width:65.3333333333%}.nine.columns{width:74.0%}.ten.columns{width:82.6666666667%}.eleven.columns{width:91.3333333333%}.twelve.columns{width:100%;margin-left:0}.one-third.column{width:30.6666666667%}.two-thirds.column{width:65.3333333333%}.one-half.column{width:48%}.offset-by-one.column,.offset-by-one.columns{margin-left:8.66666666667%}.offset-by-two.column,.offset-by-two.columns{margin-left:17.3333333333%}.offset-by-three.column,.offset-by-three.columns{margin-left:26%}.offset-by-four.column,.offset-by-four.columns{margin-left:34.6666666667%}.offset-by-five.column,.offset-by-five.columns{margin-left:43.3333333333%}.offset-by-six.column,.offset-by-six.columns{margin-left:52%}.offset-by-seven.column,.offset-by-seven.columns{margin-left:60.6666666667%}.offset-by-eight.column,.offset-by-eight.columns{margin-left:69.3333333333%}.offset-by-nine.column,.offset-by-nine.columns{margin-left:78.0%}.offset-by-ten.column,.offset-by-ten.columns{margin-left:86.6666666667%}.offset-by-eleven.column,.offset-by-eleven.columns{margin-left:95.3333333333%}.offset-by-one-third.column,.offset-by-one-third.columns{margin-left:34.6666666667%}.offset-by-two-thirds.column,.offset-by-two-thirds.columns{margin-left:69.3333333333%}.offset-by-one-half.column,.offset-by-one-half.columns{margin-left:52%}}html{font-size:62.5%}body{margin:0;font-size:1.5em;line-height:1.0;font-weight:400;font-family:'Open Sans',sans-serif;color:#222;background-color:#ecf0f1}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:300}h1{font-size:4.0rem;line-height:1.2;letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25;letter-spacing:-.1rem}h3{font-size:3.0rem;line-height:1.3;letter-spacing:-.1rem}h4{font-size:2.4rem;line-height:1.35;letter-spacing:-.08rem}h5{font-size:1.8rem;line-height:1.5;letter-spacing:-.05rem}h6{font-size:1.5rem;line-height:1.6;letter-spacing:0}@media(min-width:630px){h1{font-size:5.0rem}h2{font-size:4.2rem}h3{font-size:3.6rem}h4{font-size:3.0rem}h5{font-size:2.0rem}h6{font-size:1.5rem}}p{margin-top:0}a{color:#1eaedb}a:hover{color:#0fa0ce}button{display:inline-block;padding:10px;border-radius:3px;color:#fff;background-color:#999}#mainHeader{display:inline-block}#conStatus{position:inherit;font-size:.75em}button,.button{margin-bottom:1rem}.u-full-width{width:100%;box-sizing:border-box}.u-max-full-width{max-width:100%;box-sizing:border-box}.u-pull-right{float:right}.u-pull-left{float:left}.tcenter{text-align:center}hr{margin-top:.5rem;margin-bottom:1.2rem;border-width:0;border-top:1px solid #e1e1e1}.container:after,.row:after,.u-cf{content:"";display:table;clear:both}.control{background-color:#ddd;background-image:linear-gradient(hsla(0,0%,0%,.1),hsla(0,0%,100%,.1));border-radius:50%;box-shadow:inset 0 1px 1px 1px hsla(0,0%,100%,.5),0 0 1px 1px hsla(0,0%,100%,.75),0 0 1px 2px hsla(0,0%,100%,.25),0 0 1px 3px hsla(0,0%,100%,.25),0 0 1px 4px hsla(0,0%,100%,.25),0 0 1px 6px hsla(0,0%,0%,.75);height:9em;margin:3em auto;position:relative;width:9em}.control ul{height:100%;padding:0;transform:rotate(45deg)}.control li{border-radius:100% 0 0 0;box-shadow:inset -1px -1px 1px hsla(0,0%,100%,.5),0 0 1px hsla(0,0%,0%,.75);display:inline-block;height:50%;overflow:hidden;width:50%}.control ul li:nth-child(2){transform:rotate(90deg)}.control ul li:nth-child(3){transform:rotate(-90deg)}.control ul li:nth-child(4){transform:rotate(180deg)}.control ul a{height:200%;position:relative;transform:rotate(-45deg);width:200%}.control a:hover,.control a:focus{background-color:hsla(0,0%,100%,.25)}.control a{border-radius:50%;color:#333;display:block;font:bold 1em/3 sans-serif;text-align:center;text-decoration:none;text-shadow:0 1px 1px hsla(0,0%,100%,.4);transition:.15s}.control .confirm{background-color:#ddd;background-image:linear-gradient(hsla(0,0%,0%,.15),hsla(0,0%,100%,.25));box-shadow:inset 0 1px 1px 1px hsla(0,0%,100%,.5),0 0 1px 1px hsla(0,0%,100%,.25),0 0 1px 2px hsla(0,0%,100%,.25),0 0 1px 3px hsla(0,0%,100%,.25),0 0 1px 4px hsla(0,0%,100%,.25),0 0 1px 6px hsla(0,0%,0%,.85);left:50%;line-height:3;margin:-1.5em;position:absolute;top:50%;width:3em}.control .confirm:hover,.control .confirm:focus{background-color:#eee}.switch{display:inline-block !important;background-color:#bebebe;border-radius:4px;box-shadow:inset 0 0 6px rgba(0,0,0,0.3);color:#fff;cursor:pointer;display:block;font-size:14px;height:26px;margin-bottom:12px;position:relative;width:60px;-webkit-transition:background-color .2s ease-in-out;-moz-transition:background-color .2s ease-in-out;-o-transition:background-color .2s ease-in-out;-ms-transition:background-color .2s ease-in-out;transition:background-color .2s ease-in-out}.switch.checked{background-color:#76d21d}.switch input[type="checkbox"]{display:none;cursor:pointer;height:10px;left:12px;position:absolute;top:8px;width:10px}.in{position:absolute;top:8px;left:12px;-webkit-transition:left .08s ease-in-out;-moz-transition:left .08s ease-in-out;-o-transition:left .08s ease-in-out;-ms-transition:left .08s ease-in-out;transition:left .08s ease-in-out}.switch.checked div{left:38px}.switch .in:before{background:#fff;background:-moz-linear-gradient(top,#fff 0,#f0f0f0 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(100%,#f0f0f0));background:-webkit-linear-gradient(top,#fff 0,#f0f0f0 100%);background:-o-linear-gradient(top,#fff 0,#f0f0f0 100%);background:-ms-linear-gradient(top,#fff 0,#f0f0f0 100%);background:linear-gradient(to bottom,#fff 0,#f0f0f0 100%);border:1px solid #fff;border-radius:2px;box-shadow:0 0 4px rgba(0,0,0,0.3);content:'';height:18px;position:absolute;top:-5px;left:-9px;width:26px}.switch .in:after{background:#f0f0f0;background:-moz-linear-gradient(top,#f0f0f0 0,#fff 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#f0f0f0),color-stop(100%,#fff));background:-webkit-linear-gradient(top,#f0f0f0 0,#fff 100%);background:-o-linear-gradient(top,#f0f0f0 0,#fff 100%);background:-ms-linear-gradient(top,#f0f0f0 0,#fff 100%);background:linear-gradient(to bottom,#f0f0f0 0,#fff 100%);border-radius:10px;content:'';height:12px;margin:-1px 0 0 -1px;position:absolute;width:12px}.rkmd-slider{display:block;position:relative;font-size:16px;font-family:'Roboto',sans-serif}.rkmd-slider input[type="range"]{overflow:hidden;position:absolute;width:1px;height:1px;opacity:0}.rkmd-slider input[type="range"]+.slider{display:block;position:relative;width:100%;height:27px;border-radius:13px;background-color:#bebebe}@media(pointer:fine){.rkmd-slider input[type="range"]+.slider{height:4px;border-radius:0}}.rkmd-slider input[type="range"]+.slider .slider-fill{display:block;position:absolute;width:0;height:100%;user-select:none;z-index:1}.rkmd-slider input[type="range"]+.slider .slider-handle{cursor:pointer;position:absolute;top:12px;left:0;width:15px;height:15px;margin-left:-8px;border-radius:50%;transition:all .2s ease;user-select:none;z-index:2}@media(pointer:fine){.rkmd-slider input[type="range"]+.slider .slider-handle{top:-5.5px}}.rkmd-slider input[type="range"]:disabled+.slider{background-color:#b0b0b0 !important}.rkmd-slider input[type="range"]:disabled+.slider .slider-fill,.rkmd-slider input[type="range"]:disabled+.slider .slider-handle{cursor:default !important;background-color:#b0b0b0 !important}.rkmd-slider input[type="range"]:disabled+.slider .slider-fill .slider-label,.rkmd-slider input[type="range"]:disabled+.slider .slider-handle .slider-label{display:none;background-color:#b0b0b0 !important}.rkmd-slider input[type="range"]:disabled+.slider .slider-fill.is-active,.rkmd-slider input[type="range"]:disabled+.slider .slider-handle.is-active{top:-5.5px;width:15px;height:15px;margin-left:-8px}.rkmd-slider input[type="range"]:disabled+.slider .slider-fill.is-active .slider-label,.rkmd-slider input[type="range"]:disabled+.slider .slider-handle.is-active .slider-label{display:none;border-radius:50%;transform:none}.rkmd-slider input[type="range"]:disabled+.slider .slider-handle:active{box-shadow:none !important;transform:scale(1) !important}.rkmd-slider.slider-discrete .slider .slider-handle{position:relative;z-index:1}.rkmd-slider.slider-discrete .slider .slider-handle .slider-label{position:absolute;top:-17.5px;left:4px;width:30px;height:30px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;border-radius:50%;-webkit-transform:scale(1.0) rotate(-45deg);transform:scale(1.0) rotate(-45deg);-webkit-transition:all .2s ease;transition:all .2s ease}@media(pointer:fine){.rkmd-slider.slider-discrete .slider .slider-handle .slider-label{left:-2px;-webkit-transform:scale(0.5) rotate(-45deg);transform:scale(0.5) rotate(-45deg)}}.rkmd-slider.slider-discrete .slider .slider-handle .slider-label span{position:absolute;top:7px;left:0;width:100%;color:#fff;font-size:16px;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media(pointer:fine){.rkmd-slider.slider-discrete .slider .slider-handle .slider-label span{font-size:12px}}.rkmd-slider.slider-discrete .slider .slider-handle.is-active{top:0;margin-left:-2px;width:4px;height:4px}.rkmd-slider.slider-discrete .slider .slider-handle.is-active .slider-label{top:-15px;left:-2px;border-radius:15px 15px 15px 0;-webkit-transform:rotate(-45deg) translate(23px,-25px);transform:rotate(-45deg) translate(23px,-25px)}.rkmd-slider.slider-discrete .slider .slider-handle.is-active .slider-label span{opacity:1}.rkmd-slider.slider-discrete.slider-turquoise .slider-label{background-color:#16a085}.rkmd-slider.slider-discrete.slider-emerald .slider-label{background-color:#27ae60}.peterriver{background:#3498db;border-bottom:#2980b9 3px solid}.rkmd-slider.slider-discrete.slider-peterriver .slider-label{background-color:#2980b9}.wetasphalt{background:#34495e;border-bottom:#2c3e50 3px solid}.rkmd-slider.slider-discrete.slider-wetasphalt .slider-label{background-color:#2c3e50}.sunflower{background:#f1c40f;border-bottom:#e6bb0f 3px solid}.rkmd-slider.slider-discrete.slider-sunflower .slider-label{background-color:#e6bb0f}.carrot{background:#e67e22;border-bottom:#d35400 3px solid}.rkmd-slider.slider-discrete.slider-carrot .slider-label{background-color:#d35400}.alizarin{background:#e74c3c;border-bottom:#c0392b 3px solid}.rkmd-slider.slider-discrete.slider-alizarin .slider-label{background-color:#c0392b}input{margin:0 auto 1.2rem auto;padding:2px 5px;width:100%;box-sizing:border-box;border:0;border-radius:4px;box-shadow:inset 0 0 6px rgba(0,0,0,0.3);background:rgba(255,255,255,0.8)}input[id^="num"]{max-width:6em;width:auto;text-align:right;font-weight:bold;font-size:115%} \ No newline at end of file diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/index.htm b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/index.htm deleted file mode 100644 index eccc1f3..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/index.htm +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Control - - - - - - - - - - - -
-

Control
Offline

-
-
-
-
-
- - - diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/index.min.htm b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/index.min.htm deleted file mode 100644 index b135bf6..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/index.min.htm +++ /dev/null @@ -1 +0,0 @@ - Control

Control
Offline


\ No newline at end of file diff --git a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/js/controls.js b/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/js/controls.js deleted file mode 100644 index cb571be..0000000 --- a/elboard v1.1/board/Slave/ESPUI-master/examples/gui/data/js/controls.js +++ /dev/null @@ -1,495 +0,0 @@ -const UI_INITIAL_GUI = 100; -const UI_TITEL = 0; - -const UI_LABEL = 1; -const UPDATE_LABEL = 6; - -const UI_BUTTON = 2; - -const UI_SWITCHER = 3; -const UPDATE_SWITCHER = 7; - -const UI_PAD = 4; -const UI_CPAD = 5; - -const UI_SLIDER = 8; -const UPDATE_SLIDER = 9; - -const UI_NUMBER = 10; -const UPDATE_NUMBER = 11; - -const UI_TEXT_INPUT = 12; -const UPDATE_TEXT_INPUT = 13; - -const UI_GRAPH = 14; -const CLEAR_GRAPH = 15; -const ADD_GRAPH_POINT = 16; - -const FOR = 0; -const BACK = 1; -const LEFT = 2; -const RIGHT = 3; -const CENTER = 4; - -// Colors -const C_TURQUOISE = 0; -const C_EMERALD = 1; -const C_PETERRIVER = 2; -const C_WETASPHALT = 3; -const C_SUNFLOWER = 4; -const C_CARROT = 5; -const C_ALIZARIN = 6; -const C_NONE = 7; - -function colorClass(colorId) { - colorId = Number(colorId); - switch (colorId) { - case C_TURQUOISE: - return "turquoise"; - break; - - case C_EMERALD: - return "emerald"; - break; - - case C_PETERRIVER: - return "peterriver"; - break; - - case C_WETASPHALT: - return "wetasphalt"; - break; - - case C_SUNFLOWER: - return "sunflower"; - break; - - case C_CARROT: - return "carrot"; - break; - - case C_ALIZARIN: - return "alizarin"; - break; - - case C_NONE: - return ""; - break; - - default: - return ""; - } -} - -var websock; -var websockConnected = false; - -function restart() { - $(document) - .add("*") - .off(); - $("#row").html(""); - websock.close(); - start(); -} - -function conStatusError() { - websockConnected = false; - $("#conStatus").removeClass("color-green"); - $("#conStatus").addClass("color-red"); - $("#conStatus").html("Error / No Connection ↻"); - $("#conStatus").off(); - $("#conStatus").on({ - click: restart - }); -} - -function handleVisibilityChange() { - if (!websockConnected && !document.hidden) { - restart(); - } -} - -function start() { - document.addEventListener("visibilitychange", handleVisibilityChange, false); - websock = new WebSocket("ws://" + window.location.hostname + "/ws"); - websock.onopen = function (evt) { - console.log("websock open"); - $("#conStatus").addClass("color-green"); - $("#conStatus").text("Connected"); - websockConnected = true; - }; - - websock.onclose = function (evt) { - console.log("websock close"); - conStatusError(); - }; - - websock.onerror = function (evt) { - console.log(evt); - conStatusError(); - }; - - var handleEvent = function (evt) { - //console.log(evt); - var data = JSON.parse(evt.data); - var e = document.body; - var center = ""; - switch (data.type) { - case UI_INITIAL_GUI: - data.controls.forEach(element => { - var fauxEvent = { - data: JSON.stringify(element) - }; - handleEvent(fauxEvent); - }); - break; - case UI_TITEL: - document.title = data.label; - $("#mainHeader").html(data.label); - break; - case UI_LABEL: - $("#row").append( - "
" + - data.label + - "

" + - data.value + - "
" - ); - break; - case UI_BUTTON: - $("#row").append( - "
" + - data.label + - "

" - ); - $("#" + data.id).on({ - touchstart: function (e) { - e.preventDefault(); - buttonclick(data.id, true); - } - }); - $("#" + data.id).on({ - touchend: function (e) { - e.preventDefault(); - buttonclick(data.id, false); - } - }); - break; - case UI_SWITCHER: - var label = "