From 94afb159ac20fd1f3cf189bd03744e735bd56f36 Mon Sep 17 00:00:00 2001 From: ayushsharma82 Date: Fri, 19 May 2017 05:01:51 +0530 Subject: [PATCH] Improved Files & Added Example .ino --- README.md | 15 +++++++++++---- examples/UI_Test/UI_Test.ino | 34 ++++++++++++++++++++++++++++++++++ library.json | 2 +- 3 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 examples/UI_Test/UI_Test.ino diff --git a/README.md b/README.md index 3ea4dca..3c72311 100644 --- a/README.md +++ b/README.md @@ -26,23 +26,30 @@ This Library is Dependent on the Following Libraries to Function Properly. Make Sure all Libraries are Installed to make this Work. -## Features +## Elements -EasyUI Currently has the Following User Interface Features: +EasyUI Currently has the Following User Interface Elements: - Toggle Button - Label -Upcoming: +## Upcoming Elements and Features + +Upcoming Elements: - ~~Toggle Button~~ - ~~Label~~ - Smart Variable - Progress Bar - Click Button -- DropBox +- Dropbox Selection - Forums - Tables +Upcoming Features: +- Detect Internet and Switch to Online File CDN +- WiFi Credentials Setup Page +- Embed MQTT + ## Documentation EasyUI is Based on [Skeleton CSS](http://getskeleton.com/) and Jquery for Handling Click Events Etc. The Communication Between ESP8266 and Webpage is with Websockets. diff --git a/examples/UI_Test/UI_Test.ino b/examples/UI_Test/UI_Test.ino new file mode 100644 index 0000000..6e1673d --- /dev/null +++ b/examples/UI_Test/UI_Test.ino @@ -0,0 +1,34 @@ +/* + * Author: Ayush Sharma (ayushsharma82) Github + * Library: EasyUI + * - This is a Test Code of EasyUI Library + * - It Will Use the OnBoard LED of ESP8266 and toggle it. + */ +#include +#include +#include + +const char* ssid = "hotspotk4c"; +const char* password = "frenzy99"; + +void setup(void) { + Serial.begin(115200); + WiFi.begin(ssid, password); + Serial.println(""); + // Wait for connection + while (WiFi.status() != WL_CONNECTED) { + delay(500); + Serial.print("."); + } + Serial.println(""); + Serial.print("IP address: "); + Serial.println(WiFi.localIP()); + + EasyUI.label("Label","123"); + EasyUI.toggleButton(D4, "LED", HIGH, true); // LED Toggle Button * D4 for Nodemcu , 2 for Generic + EasyUI.begin(); +} + +void loop(void) { + EasyUI.loop(); +} diff --git a/library.json b/library.json index 37454f1..c8999bf 100644 --- a/library.json +++ b/library.json @@ -5,7 +5,7 @@ "repository": { "type": "git", - "url": "https://github.com/ayushsharma82/EasyDDNS.git" + "url": "https://github.com/ayushsharma82/EasyUI.git" }, "frameworks": "arduino", "platforms":