1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-12-23 05:50:49 +00:00

Improved Files & Added Example .ino

This commit is contained in:
ayushsharma82 2017-05-19 05:01:51 +05:30
parent 41068a0e1a
commit 94afb159ac
3 changed files with 46 additions and 5 deletions

View File

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

View File

@ -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 <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <EasyUI.h>
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();
}

View File

@ -5,7 +5,7 @@
"repository":
{
"type": "git",
"url": "https://github.com/ayushsharma82/EasyDDNS.git"
"url": "https://github.com/ayushsharma82/EasyUI.git"
},
"frameworks": "arduino",
"platforms":