8000 Added HealthyPi 4 Board Support · Protocentral/arduino-esp32@e107b1e · GitHub
[go: up one dir, main page]

Skip to content

Commit e107b1e

Browse files
Added HealthyPi 4 Board Support
1 parent 49b7664 commit e107b1e

File tree

2 files changed

+138
-0
lines changed

2 files changed

+138
-0
lines changed

boards.txt

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4986,3 +4986,69 @@ mPython.menu.DebugLevel.debug.build.code_debug=4
49864986
mPython.menu.DebugLevel.verbose=Verbose
49874987
mPython.menu.DebugLevel.verbose.build.code_debug=5
49884988
##############################################################
4989+
4990+
##############################################################
4991+
4992+
healthypi4.name=ProtoCentral HealthyPi 4
4993+
4994+
healthypi4.upload.tool=esptool_py
4995+
healthypi4.upload.maximum_size=1310720
4996+
healthypi4.upload.maximum_data_size=327680
4997+
healthypi4.upload.wait_for_upload_port=true
4998+
4999+
healthypi4.serial.disableDTR=true
5000+
healthypi4.serial.disableRTS=true
5001+
5002+
healthypi4.build.mcu=esp32
5003+
healthypi4.build.core=esp32
5004+
healthypi4.build.variant=healthypi4
5005+
healthypi4.build.board=HEALTHYPI_4
5006+
5007+
healthypi4.build.f_cpu=240000000L
5008+
healthypi4.build.flash_mode=dio
5009+
healthypi4.build.flash_size=4MB
5010+
healthypi4.build.boot=dio
5011+
healthypi4.build.partitions=min_spiffs
5012+
healthypi4.build.defines=
5013+
5014+
healthypi4.menu.FlashFreq.80=80MHz
5015+
healthypi4.menu.FlashFreq.80.build.flash_freq=80m
5016+
healthypi4.menu.FlashFreq.40=40MHz
5017+
healthypi4.menu.FlashFreq.40.build.flash_freq=40m
5018+
5019+
healthypi4.menu.PartitionScheme.default=Default
5020+
healthypi4.menu.PartitionScheme.default.build.partitions=default
5021+
healthypi4.menu.PartitionScheme.no_ota=No OTA (Large APP)
5022+
healthypi4.menu.PartitionScheme.no_ota.build.partitions=no_ota
5023+
healthypi4.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5024+
healthypi4.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
5025+
healthypi4.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5026+
healthypi4.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5027+
5028+
healthypi4.menu.UploadSpeed.921600=921600
5029+
healthypi4.menu.UploadSpeed.921600.upload.speed=921600
5030+
healthypi4.menu.UploadSpeed.115200=115200
5031+
healthypi4.menu.UploadSpeed.115200.upload.speed=115200
5032+
healthypi4.menu.UploadSpeed.256000.windows=256000
5033+
healthypi4.menu.UploadSpeed.256000.upload.speed=256000
5034+
healthypi4.menu.UploadSpeed.230400.windows.upload.speed=256000
5035+
healthypi4.menu.UploadSpeed.230400=230400
5036+
healthypi4.menu.UploadSpeed.230400.upload.speed=230400
5037+
healthypi4.menu.UploadSpeed.460800.linux=460800
5038+
healthypi4.menu.UploadSpeed.460800.macosx=460800
5039+
healthypi4.menu.UploadSpeed.460800.upload.speed=460800
5040+
healthypi4.menu.UploadSpeed.512000.windows=512000
5041+
healthypi4.menu.UploadSpeed.512000.upload.speed=512000
5042+
5043+
healthypi4.menu.DebugLevel.none=None
5044+
healthypi4.menu.DebugLevel.none.build.code_debug=0
5045+
healthypi4.menu.DebugLevel.error=Error
5046+
healthypi4.menu.DebugLevel.error.build.code_debug=1
5047+
healthypi4.menu.DebugLevel.warn=Warn
5048+
healthypi4.menu.DebugLevel.warn.build.code_debug=2
5049+
healthypi4.menu.DebugLevel.info=Info
5050+
healthypi4.menu.DebugLevel.info.build.code_debug=3
5051+
healthypi4.menu.DebugLevel.debug=Debug
5052+
healthypi4.menu.DebugLevel.debug.build.code_debug=4
5053+
healthypi4.menu.DebugLevel.verbose=Verbose
5054+
healthypi4.menu.DebugLevel.verbose.build.code_debug=5

variants/healthypi4/pins_arduino.h

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 = 15;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t KEY_BUILTIN = 17;
18+
19+
static const uint8_t TX = 1;
20+
static const uint8_t RX = 3;
21+
22+
static const uint8_t SDA = 21;
23+
static const uint8_t SCL = 22;
24+
25+
static const uint8_t SS = 2;
26+
static const uint8_t MOSI = 23;
27+
static const uint8_t MISO = 19;
28+
static const uint8_t SCK = 18;
29+
30+
static const uint8_t A0 = 36;
31+
static const uint8_t A3 = 39;
32+
static const uint8_t A4 = 32;
33+
static const uint8_t A5 = 33;
34+
static const uint8_t A6 = 34;
35+
static const uint8_t A7 = 35;
36+
static const uint8_t A10 = 4;
37+
static const uint8_t A11 = 0;
38+
static const uint8_t A12 = 2;
39+
static const uint8_t A13 = 15;
40+
static const uint8_t A14 = 13;
41+
static const uint8_t A15 = 12;
42+
static const uint8_t A16 = 14;
43+
static const uint8_t A17 = 27;
44+
static const uint8_t A18 = 25;
45+
static const uint8_t A19 = 26;
46+
47+
static const uint8_t T0 = 4;
48+
static const uint8_t T1 = 0;
49+
static const uint8_t T2 = 2;
50+
static const uint8_t T3 = 15;
51+
static const uint8_t T4 = 13;
52+
static const uint8_t T5 = 12;
53+
static const uint8_t T6 = 14;
54+
static const uint8_t T7 = 27;
55+
static const uint8_t T8 = 33;
56+
static const uint8_t T9 = 32;
57+
58+
static const uint8_t DAC1 = 25;
59+
static const uint8_t DAC2 = 26;
60+
61+
static const uint8_t ADS1292_DRDY_PIN = 26;
62+
static const uint8_t ADS1292_CS_PIN = 13;
63+
static const uint8_t ADS1292_START_PIN = 14;
64+
static const uint8_t ADS1292_PWDN_PIN = 27;
65+
static const uint8_t AFE4490_CS_PIN = 21;
66+
static const uint8_t AFE4490_DRDY_PIN = 39;
67+
static const uint8_t AFE4490_PWDN_PIN = 4;
68+
69+
static const uint8_t PUSH_BUTTON = 17;
70+
static const uint8_t SLIDE_SWITCH = 16;
71+
72+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)
0