File tree 23 files changed +1
-180
lines changed
23 files changed +1
-180
lines changed Original file line number Diff line number Diff line change @@ -22600,7 +22600,7 @@ m5stack_dinmeter.build.target=esp32s3
22600
22600
m5stack_dinmeter.build.mcu=esp32s3
22601
22601
m5stack_dinmeter.build.core=esp32
22602
22602
m5stack_dinmeter.build.variant=m5stack_dinmeter
22603
- m5stack_dinmeter.build.board=m5stack_dinmeter
22603
+ m5stack_dinmeter.build.board=M5STACK_DINMETER
22604
22604
22605
22605
m5stack_dinmeter.build.usb_mode=1
22606
22606
m5stack_dinmeter.build.cdc_on_boot=1
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 7
7
#define USB_VID 0x303a
8
8
#define USB_PID 0x1001
9
9
10
- #define EXTERNAL_NUM_INTERRUPTS 46
11
- #define NUM_DIGITAL_PINS 48
12
- #define NUM_ANALOG_INPUTS 20
13
-
14
10
// Some boards have too low voltage on this pin (board design bug)
15
11
// Use different pin with 3V and connect with 48
16
12
// and change this setup for the chosen pin (for example 38)
@@ -20,10 +16,6 @@ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48;
20
16
#define RGB_BUILTIN LED_BUILTIN
21
17
#define RGB_BRIGHTNESS 64
22
18
23
- #define analogInputToDigitalPin (p ) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
24
- #define digitalPinToInterrupt (p ) (((p) < 48) ? (p) : -1)
25
- #define digitalPinHasPWM (p ) (p < 46)
26
-
27
19
static const uint8_t TX = 43 ;
28
20
static const uint8_t RX = 44 ;
29
21
Original file line number Diff line number Diff line change 7
7
#define USB_VID 0x303a
8
8
#define USB_PID 0x1001
9
9
10
- #define EXTERNAL_NUM_INTERRUPTS 23
11
- #define NUM_DIGITAL_PINS 46
12
- #define NUM_ANALOG_INPUTS 15
13
-
14
- #define analogInputToDigitalPin (p ) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
15
- #define digitalPinToInterrupt (p ) (((p) < 48) ? (p) : -1)
16
- #define digitalPinHasPWM (p ) (p < 46)
17
-
18
10
static const uint8_t TX = 43 ;
19
11
static const uint8_t RX = 44 ;
20
12
Original file line number Diff line number Diff line change 7
7
#define USB_VID 0x303a
8
8
#define USB_PID 0x1001
9
9
10
- #define EXTERNAL_NUM_INTERRUPTS 23
11
- #define NUM_DIGITAL_PINS 46
12
- #define NUM_ANALOG_INPUTS 15
13
-
14
- #define analogInputToDigitalPin (p ) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
15
- #define digitalPinToInterrupt (p ) (((p) < 48) ? (p) : -1)
16
- #define digitalPinHasPWM (p ) (p < 46)
17
-
18
10
static const uint8_t TX = 43 ;
19
11
static const uint8_t RX = 44 ;
20
12
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
5
6
- #define EXTERNAL_NUM_INTERRUPTS 16
7
- #define NUM_DIGITAL_PINS 20
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
5
6
- #define EXTERNAL_NUM_INTERRUPTS 16
7
- #define NUM_DIGITAL_PINS 20
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
6
#define TX2 14
15
7
#define RX2 13
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
#define TX2 14
15
7
#define RX2 13
16
8
Original file line number Diff line number Diff line change 7
7
#define USB_VID 0x303a
8
8
#define USB_PID 0x1001
9
9
10
- #define EXTERNAL_NUM_INTERRUPTS 46
11
- #define NUM_DIGITAL_PINS 48
12
- #define NUM_ANALOG_INPUTS 20
13
-
14
10
// Some boards have too low voltage on this pin (board design bug)
15
11
// Use different pin with 3V and connect with 48
16
12
// and change this setup for the chosen pin (for example 38)
@@ -20,10 +16,6 @@ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48;
20
16
#define RGB_BUILTIN LED_BUILTIN
21
17
#define RGB_BRIGHTNESS 64
22
18
23
- #define analogInputToDigitalPin (p ) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
24
- #define digitalPinToInterrupt (p ) (((p) < 48) ? (p) : -1)
25
- #define digitalPinHasPWM (p ) (p < 46)
26
-
27
19
static const uint8_t TX = 43 ;
28
20
static const uint8_t RX = 44 ;
29
21
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
5
6
- #define EXTERNAL_NUM_INTERRUPTS 16
7
- #define NUM_DIGITAL_PINS 20
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
#define TX2 14
15
7
#define RX2 13
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
5
6
- #define EXTERNAL_NUM_INTERRUPTS 22
7
- #define NUM_DIGITAL_PINS 22
8
- #define NUM_ANALOG_INPUTS 6
9
-
10
- #define analogInputToDigitalPin (p ) (((p) < NUM_ANALOG_INPUTS) ? (esp32_adc2gpio[(p)]) : -1)
11
- #define digitalPinToInterrupt (p ) (((p) < NUM_DIGITAL_PINS) ? (p) : -1)
12
- #define digitalPinHasPWM (p ) (p < EXTERNAL_NUM_INTERRUPTS)
13
-
14
6
static const uint8_t TX = 21 ;
15
7
static const uint8_t RX = 20 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 7
7
#define USB_VID 0x303a
8
8
#define USB_PID 0x1001
9
9
10
- #define EXTERNAL_NUM_INTERRUPTS 23
11
- #define NUM_DIGITAL_PINS 46
12
- #define NUM_ANALOG_INPUTS 15
13
-
14
- #define analogInputToDigitalPin (p ) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
15
- #define digitalPinToInterrupt (p ) (((p) < 48) ? (p) : -1)
16
- #define digitalPinHasPWM (p ) (p < 46)
17
-
18
10
static const uint8_t TX = 43 ;
19
11
static const uint8_t RX = 44 ;
20
12
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
5
6
- #define EXTERNAL_NUM_INTERRUPTS 16
7
- #define NUM_DIGITAL_PINS 20
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t TX = 1 ;
15
7
static const uint8_t RX = 3 ;
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t LED_BUILTIN = 2 ;
15
7
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
5
6
- #define EXTERNAL_NUM_INTERRUPTS 16
7
- #define NUM_DIGITAL_PINS 20
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
- #define TX2 14
15
- #define RX2 13
16
-
17
6
static const uint8_t TX = 1 ;
18
7
static const uint8_t RX = 3 ;
19
8
Original file line number Diff line number Diff line change 3
3
4
4
#include <stdint.h>
5
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
6
static const uint8_t LED_BUILTIN = 4 ;
15
7
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16
8
Original file line number Diff line number Diff line change 7
7
#define USB_VID 0x303a
8
8
#define USB_PID 0x1001
9
9
10
- #define EXTERNAL_NUM_INTERRUPTS 23
11
- #define NUM_DIGITAL_PINS 46
12
- #define NUM_ANALOG_INPUTS 15
13
-
14
- #define analogInputToDigitalPin (p ) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
15
- #define digitalPinToInterrupt (p ) (((p) < 48) ? (p) : -1)
16
- #define digitalPinHasPWM (p ) (p < 46)
17
-
18
10
static const uint8_t TX = 43 ;
19
11
static const uint8_t RX = 44 ;
20
12
You can’t perform that action at this time.
0 commit comments