Skip to content

Commit 64d00d8

Browse files
committed
Updated
As you suggested
1 parent 2a972b1 commit 64d00d8

File tree

1 file changed

+46
-47
lines changed

1 file changed

+46
-47
lines changed

Diff for: variants/lionbits3/pins_arduino.h

+46-47
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
1212
#define digitalPinHasPWM(p) (p < 34)
1313

14-
static const uint8_t LED_BUILTIN = 0; // GPIO0,
15-
static const uint8_t SWITCH_A = 46; // GPIO46,
16-
static const uint8_t SWITCH_B = 47; // GPIO47,
14+
static const uint8_t LED_BUILTIN = 0; //GPIO0,
15+
static const uint8_t SWITCH_A = 46; //GPIO46,
16+
static const uint8_t SWITCH_B = 47; //GPIO47,
1717
//Wifi and Bluetooth LEDs
1818
static const uint8_t WIFI_LED = 38;
1919
static const uint8_t BT_LED = 37;
@@ -22,27 +22,27 @@ static const uint8_t BT_LED = 37;
2222
static const uint8_t TX = 1;
2323
static const uint8_t RX = 3;
2424
//-------------------------------------------------------------------
25-
static const uint8_t U1RX = 9; //IO, U1RX,GPIO9
26-
static const uint8_t U1TX = 10; //IO, U1TX, GPIO10
25+
static const uint8_t U1RX = 9; //IO,GPIO9
26+
static const uint8_t U1TX = 10; //IO,GPIO10
2727
/* LionBits3 pin setup */
2828
static const uint8_t D0 = 3; //RX,GPIO3,MCPWM
29-
static const uint8_t D1 = 1; //TX,GPIO1, MCPWM
30-
static const uint8_t D2 = 9; //IO, U1RX,GPIO9, TOUCH9, ADC1_CH8,MCPWM
31-
static const uint8_t D3 = 10; //IO, U1TX,GPIO10, TOUCH10,ADC1_CH9,MCPWM
32-
static const uint8_t D4 = 11; //IO, U2RX,GPIO11, TOUCH11,ADC2_CH0, MCPWM
33-
static const uint8_t D5 = 12; //IO, U2TX, GPIO12, TOUCH12,ADC2_CH1, MCPWM
34-
static const uint8_t D6 = 13; //IO, SDA, GPIO13, TOUCH13,ADC2_CH2, MCPWM
35-
static const uint8_t D7 = 14; //IO, SCl, GPIO14, TOUCH14,ADC2_CH3, MCPWM
36-
static const uint8_t D8 = 15; //IO, GPIO15,MCPWM
37-
static const uint8_t D9 = 16; //IO, GPIO16, MCPWM
38-
static const uint8_t D10 = 17; //IO, GPIO17,ADC2C_H6 MCPWM
39-
static const uint8_t D11 = 18; //IO, GPIO18, ADC2C_H7MCPWM
40-
static const uint8_t D12 = 8; //IO, GPIO8, MCPWM
41-
static const uint8_t D13 = 39; //IO, GPIO39, MCPWM
42-
static const uint8_t D14 = 40; //IO,GPIO40,MCPWM
43-
static const uint8_t D15 = 41; //IO, GPIO41, MCPWM
44-
static const uint8_t D16 = 48; //IO, GPIO48,MCPWM
45-
static const uint8_t D17 = 21; //IO, GPIO21, MCPWM
29+
static const uint8_t D1 = 1; //TX,GPIO1,ADC1_CH0,MCPWM
30+
static const uint8_t D2 = 9; //IO,GPIO9,ADC1_CH8,TOUCH9,MCPWM
31+
static const uint8_t D3 = 10; //IO,GPIO10,ADC1_CH9,TOUCH10,MCPWM
32+
static const uint8_t D4 = 11; //IO,GPIO11,ADC2_CH0,TOUCH11,MCPWM
33+
static const uint8_t D5 = 12; //IO,GPIO12,ADC2_CH1,TOUCH12,MCPWM
34+
static const uint8_t D6 = 13; //IO,GPIO13,ADC2_CH2,TOUCH13,MCPWM
35+
static const uint8_t D7 = 14; //IO,GPIO14,ADC2_CH3,TOUCH14,MCPWM
36+
static const uint8_t D8 = 15; //IO,GPIO15,ADC2_CH4,MCPWM
37+
static const uint8_t D9 = 16; //IO,GPIO16,ADC2_CH5,MCPWM
38+
static const uint8_t D10 = 17; //IO,GPIO17,ADC2_CH6,MCPWM
39+
static const uint8_t D11 = 18; //IO,GPIO18,ADC2_CH7,MCPWM
40+
static const uint8_t D12 = 8; //IO,GPIO8,ADC1_CH7,MCPWM
41+
static const uint8_t D13 = 39; //IO,GPIO39,MCPWM
42+
static const uint8_t D14 = 40; //IO,GPIO40,MCPWM
43+
static const uint8_t D15 = 41; //IO,GPIO41,MCPWM
44+
static const uint8_t D16 = 48; //IO,GPIO48,MCPWM
45+
static const uint8_t D17 = 21; //IO,GPIO21,MCPWM
4646

4747
//Other pins.
4848
static const uint8_t BUZZER = 21;
@@ -51,37 +51,39 @@ static const uint8_t LDR = 7;
5151
static const uint8_t RGBLED = 48;
5252

5353
// Analog to Digital Converter (Support 5V) ADC2 pins not recommended while using Wifi
54-
static const uint8_t A0 = 2; //IO, GPIO2, TOUCH2, ADC1_CH1, */MAX 5V
55-
static const uint8_t A1 = 1; //IO, GPIO1, TOUCH1, ADC1_CH0, */MAX 5V
56-
static const uint8_t A2 = 3; //IO, GPIO3, TOUCH3, ADC1_CH2, */MAX 5V
57-
static const uint8_t A3 = 4; //IO, GPIO4, TOUCH4, ADC1_CH3, */MAX 5V
58-
static const uint8_t A4 = 5; //IO, GPIO5, TOUCH5, ADC1_CH4, */MAX 5V
59-
static const uint8_t A5 = 6; //IO, GPIO6, TOUCH6, ADC1_CH5, */MAX 5V
60-
static const uint8_t AD1 = 7; //IO, GPIO7, TOUCH6, ADC1_CH5, */MAX 5V
54+
static const uint8_t A0 = 2; //IO,GPIO2,ADC1_CH1,TOUCH2,MCPWM
55+
static const uint8_t A1 = 1; //IO,GPIO1,ADC1_CH0,TOUCH1,MCPWM
56+
static const uint8_t A2 = 3; //IO,GPIO3,ADC1_CH2,TOUCH3,MCPWM
57+
static const uint8_t A3 = 4; //IO,GPIO4,ADC1_CH3,TOUCH4,MCPWM
58+
static const uint8_t A4 = 5; //IO,GPIO5,ADC1_CH4,TOUCH5,MCPWM
59+
static const uint8_t A5 = 6; //IO,GPIO6,ADC1_CH5,TOUCH6,MCPWM
60+
static const uint8_t A6 = 7; //IO,GPIO7,ADC1_CH6,TOUCH7,MCPWM
61+
static const uint8_t AD1 = 7; //IO,GPIO7,ADC1_CH6,TOUCH7,MCPWM
62+
6163

6264
// Inbuilt Display Unit 128*128 ST7735 Driver New
6365

64-
static const uint8_t SDA = 40; // GPIO40;
65-
static const uint8_t SCL = 41; // GPIO41;
66+
static const uint8_t SDA = 40; //GPIO40;
67+
static const uint8_t SCL = 41; //GPIO41;
6668

6769
/* Hardware HSPI */
68-
static const uint8_t MOSI = 35; // GPIO35;
69-
static const uint8_t MISO = 37; // GPIO37;
70-
static const uint8_t SCK = 36; // GPIO36;
71-
static const uint8_t SS = 34; // GPIO34;
72-
static const uint8_t SDO = 35; // GPIO35;
73-
static const uint8_t SDI = 37; // GPIO37;
70+
static const uint8_t MOSI = 35; //GPIO35;
71+
static const uint8_t MISO = 37; //GPIO37;
72+
static const uint8_t SCK = 36; //GPIO36;
73+
static const uint8_t SS = 34; //GPIO34;
74+
static const uint8_t SDO = 35; //GPIO35;
75+
static const uint8_t SDI = 37; //GPIO37;
7476
//----------------------------------
7577

7678
static const uint8_t TFT_RST = 38; //GPIO38;
77-
static const uint8_t TFT_SCLK = 35; //GPIO35;
79+
static const uint8_t TFT_SCLK = 35; //GPIO35;
7880
static const uint8_t TFT_CS = 42; //GPIO42;
7981
static const uint8_t TFT_DC = 37; //GPIO37;
80-
static const uint8_t TFT_MOSI = 36; //GPIO36;
82+
static const uint8_t TFT_MOSI = 36; //GPIO36;
8183

82-
static const uint8_t LCD_A0 = 37;
83-
static const uint8_t LCD_BACK_LIGHT = 45;
84-
static const uint8_t DAC1 = 21; // GPIO21,
84+
static const uint8_t LCD_A0 = 37; //GPIO37,
85+
static const uint8_t LCD_BACK_LIGHT = 45; //GPIO45,
86+
static const uint8_t DAC1 = 21; //GPIO21,
8587
//LCD aditional pins
8688

8789
//Adafruit 128*128 ST7735 Driver New
@@ -91,10 +93,7 @@ static const uint8_t cs = 42;
9193
static const uint8_t dc = 37;
9294
static const uint8_t mosi = 36;
9395

94-
//Digital to Analog Converter
95-
#define DA1 (25) //IO GPIO25, DAC_1, ADC2_CH8, RTC_GPIO6
96-
#define DA2 (26) //IO GPIO26, DAC_2, ADC2_CH9, RTC_GPIO7
97-
#define VP 36 // GPIO36, ADC1_CH0, RTC_GPIO0
98-
#define VN 39 // GPIO39, ADC1_CH3, RTC_GPIO3
96+
#define VP 36 //GPIO36,
97+
#define VN 39 //GPIO39,
9998

10099
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)