1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

5 Commits

Author SHA1 Message Date
Earle F. Philhower, III
bc2d4ec18b Allow GPIO 9 and 10 for waveform generation (#5055)
* Allow GPIO 9 and 10 for waveform generation

While most ESP8266 modules use quad-io mode for their SPI flash ROM,
there are some which only use dual-io mode.  Allow the unused pins
(GPIO 9 and 10) to have waveforms generated on them.  Should the user try
this on a quad-io mode board, expect very bad things to happen.

* Add variant for 8285 to init GPIO 9/10

The 8285 only has 2-bit flash IO, so the other two pins can be used as
inputs (9/10).  Set them to input to mirror the way other pins are set
up.

* Update waveform gen to only allow 9/10 on 8285

Update the common.h in both generic (remove TODO, it's done!) and the
8285 variant to make isFlashInterfacePin macro correct.  Use that macro
to disable pins 9 and 10 in the common, non-8285 case.
2018-09-17 22:58:06 -03:00
acosinwork
ab7e109e4c A0 pin number can be changed in the variants (#4778) 2018-05-31 14:23:32 +02:00
david gauchard
4caf4878c7 LED_BUILTIN should be a #define (#4276)
* LED_BUILTIN should be a #define
deduplicate and hide BUILTIN_LED as a deprecated constant

* test for LED_BUILTIN existence

* board:espino:variant: rename button macro (naming coherence)
2018-02-07 10:42:57 -03:00
Kristian Sloth Lauszus
6d6f22e6be Add PIN defines, so the pins can easily be used by external libraries
See: arduino/Arduino#4814

For instance this is used by the USB Host library: 231fb542a8
2016-10-26 01:29:14 -05:00
Ivan Grokhotkov
0f719e8d0d Clean up variants, fix digitalPinHasPWM definition (#1831) 2016-03-29 18:31:05 +03:00