You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -37,17 +37,17 @@ GPIO16 can be ```INPUT``` or ```OUTPUT```.
37
37
38
38
```analogRead(0)``` reads the value of the ADC channel connected to the TOUT pin.
39
39
40
-
Pin interrupts are supported through ```attachInterrupt```, ```detachInterrupt``` functions.
41
-
Interrupts may be attached to any GPIO pin, except GPIO16. Standard Arduino interrupt
40
+
Pin interrupts are supported through ```attachInterrupt```, ```detachInterrupt``` functions.
41
+
Interrupts may be attached to any GPIO pin, except GPIO16. Standard Arduino interrupt
42
42
types are supported: ```CHANGE```, ```RISING```, ```FALLING```.
43
43
44
44
#### Timing and delays ####
45
-
```millis``` and ```micros``` return the number of milliseconds and microseconds elapsed after reset, respectively.
45
+
```millis``` and ```micros``` return the number of milliseconds and microseconds elapsed after reset, respectively.
46
46
47
47
```delay``` pauses the sketch for a given number of milliseconds and allows WiFi and TCP/IP tasks to run.
48
48
```delayMicroseconds``` pauses for a given number of microseconds.
49
49
50
-
Remember that there is a lot of code that needs to run on the chip besides the sketch
50
+
Remember that there is a lot of code that needs to run on the chip besides the sketch
51
51
when WiFi is connected. WiFi and TCP/IP libraries get a chance to handle any pending
52
52
events each time the ```loop()``` function completes, OR when ```delay(...)``` is called.
53
53
If you have a loop somewhere in your sketch that takes a lot of time (>50ms) without
@@ -62,7 +62,7 @@ more than 20 milliseconds is not recommended.
62
62
63
63
```Serial``` object works much the same way as on a regular Arduino. Apart from hardware FIFO (128 bytes for TX and RX) HardwareSerial has additional 256-byte TX and RX buffers. Both transmit and receive is interrupt-driven. Write and read functions only block the sketch execution when the respective FIFO/buffers are full/empty.
64
64
65
-
Only 8n1 mode is supported right now.
65
+
Only 8n1 mode is supported right now.
66
66
67
67
By default the diagnostic output from WiFi libraries is disabled when you call ```Serial.begin```. To enable debug output again, call ```Serial.setDebugOutput(true);```
68
68
@@ -93,7 +93,7 @@ Size can be anywhere between 4 and 4096 bytes.
93
93
94
94
```EEPROM.write``` does not write to flash immediately, instead you must call ```EEPROM.commit()```
95
95
whenever you wish to save changes to flash. ```EEPROM.end()``` will also commit, and will
96
-
release the RAM copy of EEPROM contents.
96
+
release the RAM copy of EEPROM contents.
97
97
98
98
Three examples included.
99
99
@@ -125,7 +125,7 @@ Libraries that don't rely on low-level access to AVR registers should work well.
125
125
126
126
#### Upload via serial port ####
127
127
Select "esptool" as a programmer, and pick the correct serial port.
128
-
You need to put ESP8266 into bootloader mode before uploading code (pull GPIO0 low and
128
+
You need to put ESP8266 into bootloader mode before uploading code (pull GPIO0 low and
0 commit comments