User Tools

Site Tools


arduino:esp8266

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arduino:esp8266 [2017/10/02 12:23] – aistisarduino:esp8266 [2017/10/02 14:57] (current) – aistis
Line 42: Line 42:
 https://create.arduino.cc/projecthub/ROBINTHOMAS/esp8266-esp-01-webserver-7248ca https://create.arduino.cc/projecthub/ROBINTHOMAS/esp8266-esp-01-webserver-7248ca
  
-BLINK+BLINK melyna wifi lempute
 <code c++> <code c++>
 // the setup function runs once when you press reset or power the board // the setup function runs once when you press reset or power the board
 void setup() { void setup() {
   // initialize digital pin 13 as an output.   // initialize digital pin 13 as an output.
-  pinMode(2, OUTPUT);+  pinMode(1, OUTPUT);
 } }
  
 // the loop function runs over and over again forever // the loop function runs over and over again forever
 void loop() { void loop() {
-  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level) +  digitalWrite(1, HIGH);   // turn the LED on (HIGH is the voltage level) 
-  delay(1000);              // wait for a second +  delay(100);              // wait for a second 
-  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW +  digitalWrite(1, LOW);    // turn the LED off by making the voltage LOW 
-  delay(1000);              // wait for a second+  delay(100);              // wait for a second
 } }
- 
 </code> </code>
 +
 +
 +deep-sleep kad miegotu, reikia sujungti 2 kontaktus ir nuzudyti power led'a
 +
 +https://hackaday.com/2015/02/08/hack-allows-esp-01-to-go-to-deep-sleep/
 +
arduino/esp8266.1506936230.txt.gz · Last modified: by aistis