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: hardware/esp8266com/esp8266/doc/reference.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Note that some boards and modules (ESP-12ED, NodeMCU 1.0) also break out pins 9
21
21
22
22
ESP8266 has a single ADC channel available to users. It may be used either to read voltage at ADC pin, or to read module supply voltage (VCC).
23
23
24
-
To read external voltage applied to ADC pin, use `analogRead(A0)`. Input voltage range is 0 — 1.0V, and the reference voltage is derived from VCC, which is assumed to be 3.3V.
24
+
To read external voltage applied to ADC pin, use `analogRead(A0)`. Input voltage range is 0 — 1.0V.
25
25
26
26
To read VCC voltage, ADC pin must be kept unconnected. Additionally, the following line has to be added to the sketch:
27
27
@@ -33,7 +33,7 @@ This line has to appear outside of any functions, for instance right after the `
33
33
34
34
## Analog output
35
35
36
-
`analogWrite(pin, value)` enables software PWM on the given pin. PWM may be used on pins 0 to 15.
36
+
`analogWrite(pin, value)` enables software PWM on the given pin. PWM may be used on pins 0 to 16.
37
37
Call `analogWrite(pin, 0)` to disable PWM on the pin. `value` may be in range from 0 to `PWMRANGE`, which is currently equal to 1023.
38
38
39
39
Pin interrupts are supported through `attachInterrupt`, `detachInterrupt` functions.
@@ -175,11 +175,15 @@ Library was adapted to work with ESP8266 by including register definitions into
175
175
Note that if you already have OneWire library in your Arduino/libraries folder, it will be used
176
176
instead of the one that comes with this package.
177
177
178
-
## mDNS responder (ESP8266mDNS library)
178
+
## mDNS and DNS-SD responder (ESP8266mDNS library)
179
179
180
-
Allows the sketch to respond to multicast DNS queries for domain names like "foo.local".
180
+
Allows the sketch to respond to multicast DNS queries for domain names like "foo.local", and DNS-SD (service dicovery) queries.
181
181
Currently the library only works on STA interface, AP interface is not supported.
182
-
See attached example and library README file for details.
182
+
See attached example for details.
183
+
184
+
## SSDP responder (ESP8266SSDP)
185
+
186
+
SSDP is another service discovery protocol, supported on Windows out of the box. See attached example for reference.
0 commit comments