File tree Expand file tree Collapse file tree 16 files changed +115
-49
lines changed Expand file tree Collapse file tree 16 files changed +115
-49
lines changed Original file line number Diff line number Diff line change 27
27
28
28
#include "../generic/common.h"
29
29
30
- static const uint8_t SDA = 4 ;
31
- static const uint8_t SCL = 5 ;
30
+ #define PIN_WIRE_SDA (4)
31
+ #define PIN_WIRE_SCL (5)
32
+
33
+ static const uint8_t SDA = PIN_WIRE_SDA ;
34
+ static const uint8_t SCL = PIN_WIRE_SCL ;
32
35
33
36
static const uint8_t LED_BUILTIN = 16 ;
34
37
static const uint8_t BUILTIN_LED = 16 ;
Original file line number Diff line number Diff line change 28
28
29
29
#include "../generic/common.h"
30
30
31
- static const uint8_t SDA = 4 ;
32
- static const uint8_t SCL = 5 ;
31
+ #define PIN_WIRE_SDA (4)
32
+ #define PIN_WIRE_SCL (5)
33
+
34
+ static const uint8_t SDA = PIN_WIRE_SDA ;
35
+ static const uint8_t SCL = PIN_WIRE_SCL ;
33
36
34
37
static const uint8_t LED_BUILTIN = 0 ;
35
38
static const uint8_t BUILTIN_LED = 0 ;
Original file line number Diff line number Diff line change 28
28
29
29
#include "../generic/common.h"
30
30
31
- static const uint8_t SDA = 4 ;
32
- static const uint8_t SCL = 5 ;
31
+ #define PIN_WIRE_SDA (4)
32
+ #define PIN_WIRE_SCL (5)
33
+
34
+ static const uint8_t SDA = PIN_WIRE_SDA ;
35
+ static const uint8_t SCL = PIN_WIRE_SCL ;
33
36
34
37
static const uint8_t LED_BUILTIN = 2 ;//new ESP-12E GPIO2
35
38
static const uint8_t BUILTIN_LED = 2 ;//new ESP-12E GPIO2
Original file line number Diff line number Diff line change 28
28
29
29
#include "../generic/common.h"
30
30
31
- static const uint8_t SDA = 4 ;
32
- static const uint8_t SCL = 5 ;
31
+ #define PIN_WIRE_SDA (4)
32
+ #define PIN_WIRE_SCL (5)
33
+
34
+ static const uint8_t SDA = PIN_WIRE_SDA ;
35
+ static const uint8_t SCL = PIN_WIRE_SCL ;
33
36
34
37
static const uint8_t LED_BUILTIN = 2 ;
35
38
static const uint8_t BUILTIN_LED = 2 ;
Original file line number Diff line number Diff line change 28
28
29
29
#include "../generic/common.h"
30
30
31
- static const uint8_t SDA = 4 ;
32
- static const uint8_t SCL = 5 ;
31
+ #define PIN_WIRE_SDA (4)
32
+ #define PIN_WIRE_SCL (5)
33
+
34
+ static const uint8_t SDA = PIN_WIRE_SDA ;
35
+ static const uint8_t SCL = PIN_WIRE_SCL ;
33
36
34
37
static const uint8_t LED_BUILTIN = 2 ;
35
38
static const uint8_t LED_BUILTIN_R = 2 ;
Original file line number Diff line number Diff line change 28
28
29
29
#include "../generic/common.h"
30
30
31
- static const uint8_t SDA = 4 ;
32
- static const uint8_t SCL = 5 ;
31
+ #define PIN_WIRE_SDA (4)
32
+ #define PIN_WIRE_SCL (5)
33
+
34
+ static const uint8_t SDA = PIN_WIRE_SDA ;
35
+ static const uint8_t SCL = PIN_WIRE_SCL ;
33
36
34
37
static const uint8_t BUILTIN_LED = 16 ;
35
38
static const uint8_t LED_BUILTIN = 16 ;
Original file line number Diff line number Diff line change 30
30
31
31
#define ESPRESSO_LITE_VERSION 1
32
32
33
- static const uint8_t SDA = 4 ;
34
- static const uint8_t SCL = 5 ;
33
+ #define PIN_WIRE_SDA (4)
34
+ #define PIN_WIRE_SCL (5)
35
+
36
+ static const uint8_t SDA = PIN_WIRE_SDA ;
37
+ static const uint8_t SCL = PIN_WIRE_SCL ;
35
38
36
39
static const uint8_t LED_BUILTIN = 16 ;
37
40
static const uint8_t BUILTIN_LED = 16 ;
Original file line number Diff line number Diff line change 30
30
31
31
#define ESPRESSO_LITE_VERSION 2
32
32
33
- static const uint8_t SDA = 4 ;
34
- static const uint8_t SCL = 5 ;
33
+ #define PIN_WIRE_SDA (4)
34
+ #define PIN_WIRE_SCL (5)
35
+
36
+ static const uint8_t SDA = PIN_WIRE_SDA ;
37
+ static const uint8_t SCL = PIN_WIRE_SCL ;
35
38
36
39
static const uint8_t LED_BUILTIN = 2 ;
37
40
static const uint8_t BUILTIN_LED = 2 ;
Original file line number Diff line number Diff line change 37
37
#define digitalPinToInterrupt (p ) (((p) < EXTERNAL_NUM_INTERRUPTS)? (p) : NOT_AN_INTERRUPT)
38
38
#define digitalPinHasPWM (p ) (((p) < NUM_DIGITAL_PINS && !isFlashInterfacePin(p))? 1 : 0)
39
39
40
- static const uint8_t SS = 15 ;
41
- static const uint8_t MOSI = 13 ;
42
- static const uint8_t MISO = 12 ;
43
- static const uint8_t SCK = 14 ;
40
+ #define PIN_SPI_SS (15)
41
+ #define PIN_SPI_MOSI (13)
42
+ #define PIN_SPI_MISO (12)
43
+ #define PIN_SPI_SCK (14)
44
44
45
- static const uint8_t A0 = 17 ;
45
+ static const uint8_t SS = PIN_SPI_SS ;
46
+ static const uint8_t MOSI = PIN_SPI_MOSI ;
47
+ static const uint8_t MISO = PIN_SPI_MISO ;
48
+ static const uint8_t SCK = PIN_SPI_SCK ;
49
+
50
+ #define PIN_A0 (17)
51
+
52
+ static const uint8_t A0 = PIN_A0 ;
46
53
47
54
// These serial port names are intended to allow libraries and architecture-neutral
48
55
// sketches to automatically default to the correct port name for a particular type
Original file line number Diff line number Diff line change 28
28
29
29
#include "common.h"
30
30
31
- static const uint8_t SDA = 4 ;
32
- static const uint8_t SCL = 5 ;
31
+ #define PIN_WIRE_SDA (4)
32
+ #define PIN_WIRE_SCL (5)
33
+
34
+ static const uint8_t SDA = PIN_WIRE_SDA ;
35
+ static const uint8_t SCL = PIN_WIRE_SCL ;
33
36
34
37
static const uint8_t BUILTIN_LED = 1 ;
35
38
static const uint8_t LED_BUILTIN = 1 ;
You can’t perform that action at this time.
0 commit comments