Skip to content

Commit 4d4a1fd

Browse files
Added HealthyPi 4 Board Support (#3985)
Co-authored-by: Ashwin <[email protected]>
1 parent d219e56 commit 4d4a1fd

File tree

2 files changed

+138
-0
lines changed

2 files changed

+138
-0
lines changed

Diff for: boards.txt

+66
Original file line numberDiff line numberDiff line change
@@ -5117,3 +5117,69 @@ imbrios-logsens-v1p1.menu.UploadSpeed.460800.upload.speed=460800
51175117
imbrios-logsens-v1p1.menu.UploadSpeed.512000.windows=512000
51185118
imbrios-logsens-v1p1.menu.UploadSpeed.512000.upload.speed=512000
51195119
##############################################################
5120+
5121+
##############################################################
5122+
5123+
healthypi4.name=ProtoCentral HealthyPi 4
5124+
5125+
healthypi4.upload.tool=esptool_py
5126+
healthypi4.upload.maximum_size=1310720
5127+
healthypi4.upload.maximum_data_size=327680
5128+
healthypi4.upload.wait_for_upload_port=true
5129+
5130+
healthypi4.serial.disableDTR=true
5131+
healthypi4.serial.disableRTS=true
5132+
5133+
healthypi4.build.mcu=esp32
5134+
healthypi4.build.core=esp32
5135+
healthypi4.build.variant=healthypi4
5136+
healthypi4.build.board=HEALTHYPI_4
5137+
5138+
healthypi4.build.f_cpu=240000000L
5139+
healthypi4.build.flash_mode=dio
5140+
healthypi4.build.flash_size=4MB
5141+
healthypi4.build.boot=dio
5142+
healthypi4.build.partitions=min_spiffs
5143+
healthypi4.build.defines=
5144+
5145+
healthypi4.menu.FlashFreq.80=80MHz
5146+
healthypi4.menu.FlashFreq.80.build.flash_freq=80m
5147+
healthypi4.menu.FlashFreq.40=40MHz
5148+
healthypi4.menu.FlashFreq.40.build.flash_freq=40m
5149+
5150+
healthypi4.menu.PartitionScheme.default=Default
5151+
healthypi4.menu.PartitionScheme.default.build.partitions=default
5152+
healthypi4.menu.PartitionScheme.no_ota=No OTA (Large APP)
5153+
healthypi4.menu.PartitionScheme.no_ota.build.partitions=no_ota
5154+
healthypi4.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5155+
healthypi4.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
5156+
healthypi4.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5157+
healthypi4.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5158+
5159+
healthypi4.menu.UploadSpeed.921600=921600
5160+
healthypi4.menu.UploadSpeed.921600.upload.speed=921600
5161+
healthypi4.menu.UploadSpeed.115200=115200
5162+
healthypi4.menu.UploadSpeed.115200.upload.speed=115200
5163+
healthypi4.menu.UploadSpeed.256000.windows=256000
5164+
healthypi4.menu.UploadSpeed.256000.upload.speed=256000
5165+
healthypi4.menu.UploadSpeed.230400.windows.upload.speed=256000
5166+
healthypi4.menu.UploadSpeed.230400=230400
5167+
healthypi4.menu.UploadSpeed.230400.upload.speed=230400
5168+
healthypi4.menu.UploadSpeed.460800.linux=460800
5169+
healthypi4.menu.UploadSpeed.460800.macosx=460800
5170+
healthypi4.menu.UploadSpeed.460800.upload.speed=460800
5171+
healthypi4.menu.UploadSpeed.512000.windows=512000
5172+
healthypi4.menu.UploadSpeed.512000.upload.speed=512000
5173+
5174+
healthypi4.menu.DebugLevel.none=None
5175+
healthypi4.menu.DebugLevel.none.build.code_debug=0
5176+
healthypi4.menu.DebugLevel.error=Error
5177+
healthypi4.menu.DebugLevel.error.build.code_debug=1
5178+
healthypi4.menu.DebugLevel.warn=Warn
5179+
healthypi4.menu.DebugLevel.warn.build.code_debug=2
5180+
healthypi4.menu.DebugLevel.info=Info
5181+
healthypi4.menu.DebugLevel.info.build.code_debug=3
5182+
healthypi4.menu.DebugLevel.debug=Debug
5183+
healthypi4.menu.DebugLevel.debug.build.code_debug=4
5184+
healthypi4.menu.DebugLevel.verbose=Verbose
5185+
healthypi4.menu.DebugLevel.verbose.build.code_debug=5

Diff for: variants/healthypi4/pins_arduino.h

+72
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)