This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
esp8266_gpio_pin_allocations [2016/07/16 10:27] bullestock Fix underscores and other formatting |
esp8266_gpio_pin_allocations [2017/11/10 02:12] ekriirke [LED Pin] no comments on IO1/TX being low affecting boot process |
||
---|---|---|---|
Line 33: | Line 33: | ||
analogWrite(pin, value) enables software PWM on the given pin. PWM may be used on pins 0 to 15. Call analogWrite(pin, 0) to disable PWM on the pin. Value may be in range from 0 to 1023. | analogWrite(pin, value) enables software PWM on the given pin. PWM may be used on pins 0 to 15. Call analogWrite(pin, 0) to disable PWM on the pin. Value may be in range from 0 to 1023. | ||
- | 0 to 255 is normal on an Arduino board, as it's an 8bit ADC, but ESP8266 is 10 bit so 1023 is full duty cycle. | + | 0 to 255 is normal on an Arduino board, as it's an 8 bit register, but ESP8266 uses software PWM so 1023 is full duty cycle. |
===== Pin Functions ===== | ===== Pin Functions ===== | ||
Line 116: | Line 116: | ||
===== LED Pin ===== | ===== LED Pin ===== | ||
- | GPIO1, which is also TX, is wired to the blue LED on many devices. Note that the LED is active low (connected to Vcc and sinks through the chip to ground) so setting a logical value of 0 will light it up. Since GPIO1 is also the TX pin, you won't be able to blink the LED and perform Serial communications at thew same time unless you switch TX/RX pins. | + | GPIO1, which is also TX, is wired to the blue LED on many devices. Note that the LED is active low (connected to Vcc and sinks through the chip to ground) so setting a logical value of 0 will light it up. Since GPIO1 is also the TX pin, you won't be able to blink the LED and perform Serial communications at the same time unless you switch TX/RX pins. |
+ | Note that if this pin is pulled LOW on power up, the ESP will not boot. (The normal LED is from Vcc to IO1, an LED from GND to IO1 is enough to prevent boot) | ||
===== Maximum Current ===== | ===== Maximum Current ===== |