Skip to content

Commit d29cfdb

Browse files
committed
Add Pico Kit board configuration
1 parent a153f6a commit d29cfdb

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

boards.txt

+52
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,58 @@ esp32.menu.DebugLevel.verbose.build.code_debug=5
8282

8383
##############################################################
8484

85+
pico32.name=ESP32 Pico Kit
86+
87+
pico32.upload.tool=esptool
88+
pico32.upload.maximum_size=1310720
89+
pico32.upload.maximum_data_size=294912
90+
pico32.upload.wait_for_upload_port=true
91+
92+
pico32.serial.disableDTR=true
93+
pico32.serial.disableRTS=true
94+
95+
pico32.build.mcu=esp32
96+
pico32.build.core=esp32
97+
pico32.build.variant=pico32
98+
pico32.build.board=ESP32_PICO
99+
100+
pico32.build.f_cpu=240000000L
101+
pico32.build.flash_size=4MB
102+
pico32.build.flash_freq=80m
103+
pico32.build.flash_mode=qio
104+
pico32.build.boot=qio
105+
pico32.build.partitions=default
106+
107+
pico32.menu.UploadSpeed.921600=921600
108+
pico32.menu.UploadSpeed.921600.upload.speed=921600
109+
pico32.menu.UploadSpeed.115200=115200
110+
pico32.menu.UploadSpeed.115200.upload.speed=115200
111+
pico32.menu.UploadSpeed.256000.windows=256000
112+
pico32.menu.UploadSpeed.256000.upload.speed=256000
113+
pico32.menu.UploadSpeed.230400.windows.upload.speed=256000
114+
pico32.menu.UploadSpeed.230400=230400
115+
pico32.menu.UploadSpeed.230400.upload.speed=230400
116+
pico32.menu.UploadSpeed.460800.linux=460800
117+
pico32.menu.UploadSpeed.460800.macosx=460800
118+
pico32.menu.UploadSpeed.460800.upload.speed=460800
119+
pico32.menu.UploadSpeed.512000.windows=512000
120+
pico32.menu.UploadSpeed.512000.upload.speed=512000
121+
122+
pico32.menu.DebugLevel.none=None
123+
pico32.menu.DebugLevel.none.build.code_debug=0
124+
pico32.menu.DebugLevel.error=Error
125+
pico32.menu.DebugLevel.error.build.code_debug=1
126+
pico32.menu.DebugLevel.warn=Warn
127+
pico32.menu.DebugLevel.warn.build.code_debug=2
128+
pico32.menu.DebugLevel.info=Info
129+
pico32.menu.DebugLevel.info.build.code_debug=3
130+
pico32.menu.DebugLevel.debug=Debug
131+
pico32.menu.DebugLevel.debug.build.code_debug=4
132+
pico32.menu.DebugLevel.verbose=Verbose
133+
pico32.menu.DebugLevel.verbose.build.code_debug=5
134+
135+
##############################################################
136+
85137
esp32thing.name=SparkFun ESP32 Thing
86138

87139
esp32thing.upload.tool=esptool

variants/pico32/pins_arduino.h

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 TX = 1;
15+
static const uint8_t RX = 3;
16+
17+
static const uint8_t SDA = 21;
18+
static const uint8_t SCL = 22;
19+
20+
static const uint8_t SS = 5;
21+
static const uint8_t MOSI = 23;
22+
static const uint8_t MISO = 19;
23+
static const uint8_t SCK = 18;
24+
25+
static const uint8_t A0 = 36;
26+
static const uint8_t A3 = 39;
27+
static const uint8_t A4 = 32;
28+
static const uint8_t A5 = 33;
29+
static const uint8_t A6 = 34;
30+
static const uint8_t A7 = 35;
31+
static const uint8_t A10 = 4;
32+
static const uint8_t A11 = 0;
33+
static const uint8_t A12 = 2;
34+
static const uint8_t A13 = 15;
35+
static const uint8_t A14 = 13;
36+
static const uint8_t A15 = 12;
37+
static const uint8_t A16 = 14;
38+
static const uint8_t A17 = 27;
39+
static const uint8_t A18 = 25;
40+
static const uint8_t A19 = 26;
41+
42+
static const uint8_t T0 = 4;
43+
static const uint8_t T1 = 0;
44+
static const uint8_t T2 = 2;
45+
static const uint8_t T3 = 15;
46+
static const uint8_t T4 = 13;
47+
static const uint8_t T5 = 12;
48+
static const uint8_t T6 = 14;
49+
static const uint8_t T7 = 27;
50+
static const uint8_t T8 = 33;
51+
static const uint8_t T9 = 32;
52+
53+
static const uint8_t DAC1 = 25;
54+
static const uint8_t DAC2 = 26;
55+
56+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)