Skip to content

Commit b6402ad

Browse files
committed
Added to all pins_arduino.h that need it. Fixes espressif#4134
1 parent 3274602 commit b6402ad

File tree

58 files changed

+123
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+123
-0
lines changed

variants/Microduino-esp32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = -1;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
#define MTDO 15
1819
#define MTDI 12

variants/S_ODI_Ultra_v1/pins_arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
static const uint8_t LED_BUILTIN = 2;
1515
static const uint8_t LED_BUILTINB = 4;
1616
#define BUILTIN_LED LED_BUILTIN // backward compatibility
17+
#define LED_BUILTIN
1718
#define BUILTIN_LED2 LED_BUILTINB
19+
#define LED_BUILTIN
1820

1921
static const uint8_t TX = 1;
2022
static const uint8_t RX = 3;

variants/alksesp32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
static const uint8_t LED_BUILTIN = 23;
1717
#define BUILTIN_LED LED_BUILTIN // backward compatibility
18+
#define LED_BUILTIN
1819

1920
static const uint8_t TX = 1;
2021
static const uint8_t RX = 3;

variants/d1_mini32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
static const uint8_t LED_BUILTIN = 2;
88
#define BUILTIN_LED LED_BUILTIN // backward compatibility
9+
#define LED_BUILTIN
910
static const uint8_t _VBAT = 35; // battery voltage
1011

1112
#define PIN_WIRE_SDA SDA // backward compatibility

variants/d32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
static const uint8_t LED_BUILTIN = 5;
88
#define BUILTIN_LED LED_BUILTIN // backward compatibility
9+
#define LED_BUILTIN
910
static const uint8_t _VBAT = 35; // battery voltage
1011

1112
#endif /* Pins_Arduino_h */

variants/d32_pro/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
static const uint8_t LED_BUILTIN = 5;
88
#define BUILTIN_LED LED_BUILTIN // backward compatibility
9+
#define LED_BUILTIN
910
static const uint8_t _VBAT = 35; // battery voltage
1011

1112

variants/doitESP32devkitV1/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 40
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
static const uint8_t LED_BUILTIN = 2;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
17+
18+
19+
static const uint8_t SDA = 21;
20+
static const uint8_t SCL = 22;
21+
22+
//SPI
23+
static const uint8_t IO5 = 5; //SS
24+
static const uint8_t IO23 = 23; //MOSI
25+
static const uint8_t IO19 = 19; //MISO
26+
static const uint8_t IO18 = 18; //SCK
27+
28+
//ANALOG
29+
static const uint8_t IO36 = 36;
30+
static const uint8_t IO39 = 39;
31+
static const uint8_t IO4 = 4;
32+
static const uint8_t IO2 = 2;
33+
static const uint8_t IO35 = 35;
34+
//ANALOG+
35+
static const uint8_t IO15 = 15;
36+
static const uint8_t IO33 = 33;
37+
static const uint8_t IO32 = 32;
38+
static const uint8_t IO0 = 0;
39+
40+
//DIGITAL
41+
static const uint8_t IO13 = 13;
42+
static const uint8_t IO12 = 12;
43+
static const uint8_t IO14 = 14;
44+
static const uint8_t IO27 = 27;
45+
static const uint8_t IO16 = 16;
46+
static const uint8_t IO17 = 17;
47+
static const uint8_t IO25 = 25;
48+
static const uint8_t IO26 = 26;
49+
static const uint8_t TX0 = 1;
50+
static const uint8_t RX0 = 3;
51+
//TFlash(uSD)
52+
static const uint8_t SD2 = 9;
53+
static const uint8_t SD3 = 10;
54+
static const uint8_t CMD = 11;
55+
static const uint8_t CLK = 6;
56+
static const uint8_t SD0 = 7;
57+
static const uint8_t SD1 = 8;
58+
59+
// ESP-WROOM-32 does not have GPIO 14, 20(NC), 24, 28, 29, 30, 31, 36, 37, 38, 40+
60+
// All pins should be PWM capable. The board is a clone of WeMos D1 R32.
61+
62+
#endif /* Pins_Arduino_h */

variants/esp32-gateway/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
static const uint8_t LED_BUILTIN = 33;
2020
#define BUILTIN_LED LED_BUILTIN // backward compatibility
21+
#define LED_BUILTIN
2122

2223
static const uint8_t KEY_BUILTIN = 34;
2324

variants/esp320/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/esp32thing/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/esp32thing_plus/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 17;
1819
static const uint8_t RX = 16;

variants/espea32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/espectro32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 15;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN
2021

2122
static const uint8_t TX = 1;
2223
static const uint8_t RX = 3;

variants/espino32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 16;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t BUILTIN_KEY = 0;
1819

variants/feather_esp32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 17;
1819
static const uint8_t RX = 16;

variants/firebeetle32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ typedef unsigned char uint8_t;
1515

1616
static const uint8_t LED_BUILTIN = 2;
1717
#define BUILTIN_LED LED_BUILTIN // backward compatibility
18+
#define LED_BUILTIN
1819

1920

2021

variants/fm-devkit/pins_arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ static const uint8_t RX = 3;
1616

1717
// IO
1818
static const uint8_t LED_BUILTIN = 5;
19+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN
1921
static const uint8_t SW1 = 4;
2022
static const uint8_t SW2 = 18;
2123
static const uint8_t SW3 = 19;

variants/gpy/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2626
#define BUILTIN_LED LED_BUILTIN // backward compatibility
27+
#define LED_BUILTIN
2728

2829
#define ANT_SELECT 21 // GPIO21 - WiFi external / internal antenna switch
2930

variants/healthypi4/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 15;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 17;
1819

variants/heltec_wifi_kit_32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/heltec_wifi_lora_32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/heltec_wifi_lora_32_V2/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/heltec_wireless_stick/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
static const uint8_t LED_BUILTIN = 25;
1919
#define BUILTIN_LED LED_BUILTIN // backward compatibility
20+
#define LED_BUILTIN
2021

2122
static const uint8_t KEY_BUILTIN = 0;
2223

variants/honeylemon/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t BUILTIN_KEY = 0;
1819

variants/hornbill32dev/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 13;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/imbrios-logsens-v1p1/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/* LED_BUILTIN is kept for compatibility reason; mapped to LED2 on the LogSens V1.1 Board */
2424
static const uint8_t LED_BUILTIN = 33;
2525
#define BUILTIN_LED LED_BUILTIN // backward compatibility
26+
#define LED_BUILTIN
2627

2728
/* UART0: Serial Port for Programming and Debugging on the LogSens V1.1 Board */
2829
static const uint8_t TX = 1;

variants/intorobot-fig/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 4;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t RGB_R_BUILTIN = 27;
1819
static const uint8_t RGB_G_BUILTIN = 21;

variants/lolin32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718

1819

variants/lopy/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2626
#define BUILTIN_LED LED_BUILTIN // backward compatibility
27+
#define LED_BUILTIN
2728

2829
#define ANT_SELECT 16 // GPIO16 - External Antenna Switch
2930

variants/lopy4/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2626
#define BUILTIN_LED LED_BUILTIN // backward compatibility
27+
#define LED_BUILTIN
2728

2829
#define ANT_SELECT 21 // GPIO21 - External Antenna Switch
2930

variants/magicbit/pins_arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,7 @@ static const uint8_t MOTOR1B = 18;
6767
static const uint8_t MOTOR2A = 16;
6868
static const uint8_t MOTOR2B = 17;
6969
static const uint8_t LED_BUILTIN=16;
70+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
71+
#define LED_BUILTIN
7072

7173
#endif /* Pins_Arduino_h */

variants/metro_esp-32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/mgbot-iotik32a/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 4;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/mgbot-iotik32b/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 18;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
// IR receiver
1819
static const uint8_t IR = 27;

variants/mhetesp32devkit/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/mhetesp32minikit/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/nano32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 16;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t BUILTIN_KEY = 0;
1819

variants/node32s/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/nodemcu-32s/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

variants/odroid_esp32/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 2;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t TX = 1;
1819
static const uint8_t RX = 3;

variants/onehorse32dev/pins_arduino.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
static const uint8_t LED_BUILTIN = 5;
1515
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
#define LED_BUILTIN
1617

1718
static const uint8_t KEY_BUILTIN = 0;
1819

0 commit comments

Comments
 (0)