Skip to content

Commit e960bb6

Browse files
ladyadame-no-dev
authored andcommitted
feather variant (espressif#364)
1 parent 3b86e0c commit e960bb6

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

boards.txt

+43
Original file line numberDiff line numberDiff line change
@@ -545,3 +545,46 @@ onehorse32dev.menu.UploadSpeed.460800.macosx=460800
545545
onehorse32dev.menu.UploadSpeed.460800.upload.speed=460800
546546
onehorse32dev.menu.UploadSpeed.512000.windows=512000
547547
onehorse32dev.menu.UploadSpeed.512000.upload.speed=512000
548+
549+
##############################################################
550+
551+
featheresp32.name=Adafruit ESP32 Feather
552+
553+
featheresp32.upload.tool=esptool
554+
featheresp32.upload.maximum_size=1044464
555+
featheresp32.upload.maximum_data_size=294912
556+
featheresp32.upload.wait_for_upload_port=true
557+
558+
featheresp32.serial.disableDTR=true
559+
featheresp32.serial.disableRTS=true
560+
561+
featheresp32.build.mcu=esp32
562+
featheresp32.build.core=esp32
563+
featheresp32.build.variant=feather_esp32
564+
featheresp32.build.board=FEATHER_ESP32
565+
566+
featheresp32.build.f_cpu=240000000L
567+
featheresp32.build.flash_mode=dio
568+
featheresp32.build.flash_size=4MB
569+
570+
featheresp32.menu.FlashFreq.80=80MHz
571+
featheresp32.menu.FlashFreq.80.build.flash_freq=80m
572+
featheresp32.menu.FlashFreq.40=40MHz
573+
featheresp32.menu.FlashFreq.40.build.flash_freq=40m
574+
575+
featheresp32.menu.UploadSpeed.921600=921600
576+
featheresp32.menu.UploadSpeed.921600.upload.speed=921600
577+
featheresp32.menu.UploadSpeed.115200=115200
578+
featheresp32.menu.UploadSpeed.115200.upload.speed=115200
579+
featheresp32.menu.UploadSpeed.256000.windows=256000
580+
featheresp32.menu.UploadSpeed.256000.upload.speed=256000
581+
featheresp32.menu.UploadSpeed.230400.windows.upload.speed=256000
582+
featheresp32.menu.UploadSpeed.230400=230400
583+
featheresp32.menu.UploadSpeed.230400.upload.speed=230400
584+
featheresp32.menu.UploadSpeed.460800.linux=460800
585+
featheresp32.menu.UploadSpeed.460800.macosx=460800
586+
featheresp32.menu.UploadSpeed.460800.upload.speed=460800
587+
featheresp32.menu.UploadSpeed.512000.windows=512000
588+
featheresp32.menu.UploadSpeed.512000.upload.speed=512000
589+
590+
##############################################################

variants/feather_esp32/pins_arduino.h

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 = 13;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t TX = 17;
18+
static const uint8_t RX = 16;
19+
20+
static const uint8_t SDA = 23;
21+
static const uint8_t SCL = 22;
22+
23+
static const uint8_t SS = 2;
24+
static const uint8_t MOSI = 18;
25+
static const uint8_t MISO = 19;
26+
static const uint8_t SCK = 5;
27+
28+
// mapping to match other feathers and also in order
29+
static const uint8_t A0 = 26;
30+
static const uint8_t A1 = 25;
31+
static const uint8_t A2 = 34;
32+
static const uint8_t A3 = 39;
33+
static const uint8_t A4 = 36;
34+
static const uint8_t A5 = 4;
35+
static const uint8_t A6 = 14;
36+
static const uint8_t A7 = 32;
37+
static const uint8_t A8 = 15;
38+
static const uint8_t A9 = 33;
39+
static const uint8_t A10 = 27;
40+
static const uint8_t A11 = 12;
41+
static const uint8_t A12 = 13;
42+
43+
// vbat measure
44+
static const uint8_t A13 = 35;
45+
//static const uint8_t Ax = 0; // not used/available
46+
//static const uint8_t Ax = 2; // not used/available
47+
48+
49+
static const uint8_t T0 = 4;
50+
static const uint8_t T1 = 0;
51+
static const uint8_t T2 = 2;
52+
static const uint8_t T3 = 15;
53+
static const uint8_t T4 = 13;
54+
static const uint8_t T5 = 12;
55+
static const uint8_t T6 = 14;
56+
static const uint8_t T7 = 27;
57+
static const uint8_t T8 = 33;
58+
static const uint8_t T9 = 32;
59+
60+
static const uint8_t DAC1 = 25;
61+
static const uint8_t DAC2 = 26;
62+
63+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)