mirror of
				https://github.com/s00500/ESPUI.git
				synced 2025-10-30 10:33:23 +00:00 
			
		
		
		
	Updated to V0.6
- Added Internet Detection to Switch to CDN - Optimized PROGMEM Data - Improved UI for Mobile Displays - Added SoftAP Example - Fixed Example code for Generic ESP8266 Boards
This commit is contained in:
		| @@ -8,8 +8,8 @@ | ||||
| #include <WiFiClient.h> | ||||
| #include <EasyUI.h> | ||||
|  | ||||
| const char* ssid = "hotspotk4c"; | ||||
| const char* password = "frenzy99"; | ||||
| const char* ssid = "........."; | ||||
| const char* password = ".........."; | ||||
|  | ||||
| void setup(void) { | ||||
|   Serial.begin(115200); | ||||
| @@ -24,8 +24,10 @@ void setup(void) { | ||||
|   Serial.print("IP address: "); | ||||
|   Serial.println(WiFi.localIP()); | ||||
|    | ||||
| // Detects Internet Connectivity and Switches to Online CDN. (For STA Mode Only) | ||||
|   EasyUI.detectCDN(true); | ||||
|   EasyUI.label("Label","123"); | ||||
|   EasyUI.toggleButton(D4, "LED", HIGH, true);   // LED Toggle Button * D4 for Nodemcu , 2 for Generic | ||||
|   EasyUI.toggleButton(2, "LED", HIGH, true);   // LED Toggle Button | ||||
|   EasyUI.begin(); | ||||
| } | ||||
|  | ||||
|   | ||||
							
								
								
									
										29
									
								
								examples/softAP_UI_Test/softAP_UI_Test.ino
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								examples/softAP_UI_Test/softAP_UI_Test.ino
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| /* | ||||
|  * 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 = "EasyUI"; | ||||
| const char* password = ""; | ||||
|  | ||||
| void setup(void) { | ||||
|   Serial.begin(115200); | ||||
|   WiFi.mode(WIFI_AP); | ||||
|   WiFi.softAP(ssid, password); | ||||
|   Serial.println(""); | ||||
|   Serial.print("IP address: "); | ||||
|   Serial.println(WiFi.softAPIP()); | ||||
|  | ||||
|   EasyUI.label("Label","123"); | ||||
|   EasyUI.toggleButton(2, "LED", HIGH, true);   // LED Toggle Button | ||||
|   EasyUI.begin(); | ||||
| } | ||||
|  | ||||
| void loop(void) { | ||||
|   EasyUI.loop(); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 ayushsharma82
					ayushsharma82