mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-21 22:50:55 +00:00
Improved Files & Added Example .ino
This commit is contained in:
parent
41068a0e1a
commit
94afb159ac
15
README.md
15
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.
|
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
|
- Toggle Button
|
||||||
- Label
|
- Label
|
||||||
|
|
||||||
Upcoming:
|
## Upcoming Elements and Features
|
||||||
|
|
||||||
|
Upcoming Elements:
|
||||||
- ~~Toggle Button~~
|
- ~~Toggle Button~~
|
||||||
- ~~Label~~
|
- ~~Label~~
|
||||||
- Smart Variable
|
- Smart Variable
|
||||||
- Progress Bar
|
- Progress Bar
|
||||||
- Click Button
|
- Click Button
|
||||||
- DropBox
|
- Dropbox Selection
|
||||||
- Forums
|
- Forums
|
||||||
- Tables
|
- Tables
|
||||||
|
|
||||||
|
Upcoming Features:
|
||||||
|
- Detect Internet and Switch to Online File CDN
|
||||||
|
- WiFi Credentials Setup Page
|
||||||
|
- Embed MQTT
|
||||||
|
|
||||||
## Documentation
|
## 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.
|
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.
|
||||||
|
34
examples/UI_Test/UI_Test.ino
Normal file
34
examples/UI_Test/UI_Test.ino
Normal 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();
|
||||||
|
}
|
@ -5,7 +5,7 @@
|
|||||||
"repository":
|
"repository":
|
||||||
{
|
{
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ayushsharma82/EasyDDNS.git"
|
"url": "https://github.com/ayushsharma82/EasyUI.git"
|
||||||
},
|
},
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms":
|
"platforms":
|
||||||
|
Loading…
Reference in New Issue
Block a user