Skip to content

Commit f9a8314

Browse files
committed
qt py esp32s2
1 parent ed84c4b commit f9a8314

File tree

5 files changed

+240
-0
lines changed

5 files changed

+240
-0
lines changed

boards.txt

+164
Original file line numberDiff line numberDiff line change
@@ -4704,6 +4704,170 @@ adafruit_feather_esp32s2_tft.menu.DebugLevel.verbose.build.code_debug=5
47044704

47054705
##############################################################
47064706

4707+
adafruit_qtpy_esp32s2.name=Adafruit QT Py ESP32-S2
4708+
adafruit_qtpy_esp32s2.vid.0=0x239A
4709+
adafruit_qtpy_esp32s2.pid.0=0x8111
4710+
adafruit_qtpy_esp32s2.vid.1=0x239A
4711+
adafruit_qtpy_esp32s2.pid.1=0x0111
4712+
adafruit_qtpy_esp32s2.vid.1=0x239A
4713+
adafruit_qtpy_esp32s2.pid.1=0x8112
4714+
4715+
adafruit_qtpy_esp32s2.upload.tool=esptool_py
4716+
adafruit_qtpy_esp32s2.upload.maximum_size=1310720
4717+
adafruit_qtpy_esp32s2.upload.maximum_data_size=327680
4718+
adafruit_qtpy_esp32s2.upload.flags=
4719+
adafruit_qtpy_esp32s2.upload.extra_flags=0x2d0000 "{runtime.platform.path}/variants/{build.variant}/tinyuf2.bin"
4720+
adafruit_qtpy_esp32s2.upload.use_1200bps_touch=true
4721+
adafruit_qtpy_esp32s2.upload.wait_for_upload_port=true
4722+
4723+
adafruit_qtpy_esp32s2.serial.disableDTR=false
4724+
adafruit_qtpy_esp32s2.serial.disableRTS=false
4725+
4726+
adafruit_qtpy_esp32s2.build.tarch=xtensa
4727+
adafruit_qtpy_esp32s2.build.bootloader_addr=0x1000
4728+
adafruit_qtpy_esp32s2.build.target=esp32s2
4729+
adafruit_qtpy_esp32s2.build.mcu=esp32s2
4730+
adafruit_qtpy_esp32s2.build.core=esp32
4731+
adafruit_qtpy_esp32s2.build.variant=adafruit_qtpy_esp32s2
4732+
adafruit_qtpy_esp32s2.build.board=ADAFRUIT_QTPY_ESP32S2
4733+
4734+
adafruit_qtpy_esp32s2.build.cdc_on_boot=0
4735+
adafruit_qtpy_esp32s2.build.msc_on_boot=0
4736+
adafruit_qtpy_esp32s2.build.dfu_on_boot=0
4737+
adafruit_qtpy_esp32s2.build.f_cpu=240000000L
4738+
adafruit_qtpy_esp32s2.build.flash_size=4MB
4739+
adafruit_qtpy_esp32s2.build.flash_freq=80m
4740+
adafruit_qtpy_esp32s2.build.flash_mode=qio
4741+
adafruit_qtpy_esp32s2.build.boot=qio
4742+
adafruit_qtpy_esp32s2.build.partitions=default
4743+
adafruit_qtpy_esp32s2.build.defines=
4744+
4745+
adafruit_qtpy_esp32s2.menu.CDCOnBoot.cdc=Enabled
4746+
adafruit_qtpy_esp32s2.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
4747+
adafruit_qtpy_esp32s2.menu.CDCOnBoot.default=Disabled
4748+
adafruit_qtpy_esp32s2.menu.CDCOnBoot.default.build.cdc_on_boot=0
4749+
4750+
adafruit_qtpy_esp32s2.menu.MSCOnBoot.default=Disabled
4751+
adafruit_qtpy_esp32s2.menu.MSCOnBoot.default.build.msc_on_boot=0
4752+
adafruit_qtpy_esp32s2.menu.MSCOnBoot.msc=Enabled
4753+
adafruit_qtpy_esp32s2.menu.MSCOnBoot.msc.build.msc_on_boot=1
4754+
4755+
adafruit_qtpy_esp32s2.menu.DFUOnBoot.default=Disabled
4756+
adafruit_qtpy_esp32s2.menu.DFUOnBoot.default.build.dfu_on_boot=0
4757+
adafruit_qtpy_esp32s2.menu.DFUOnBoot.dfu=Enabled
4758+
adafruit_qtpy_esp32s2.menu.DFUOnBoot.dfu.build.dfu_on_boot=1
4759+
4760+
adafruit_qtpy_esp32s2.menu.PSRAM.disabled=Disabled
4761+
adafruit_qtpy_esp32s2.menu.PSRAM.disabled.build.defines=
4762+
adafruit_qtpy_esp32s2.menu.PSRAM.enabled=Enabled
4763+
adafruit_qtpy_esp32s2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
4764+
4765+
adafruit_qtpy_esp32s2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
4766+
adafruit_qtpy_esp32s2.menu.PartitionScheme.default.build.partitions=default
4767+
adafruit_qtpy_esp32s2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
4768+
adafruit_qtpy_esp32s2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
4769+
adafruit_qtpy_esp32s2.menu.PartitionScheme.default_8MB=8M Flash (3MB APP/1.5MB FAT)
4770+
adafruit_qtpy_esp32s2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
4771+
adafruit_qtpy_esp32s2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
4772+
adafruit_qtpy_esp32s2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
4773+
adafruit_qtpy_esp32s2.menu.PartitionScheme.minimal.build.partitions=minimal
4774+
adafruit_qtpy_esp32s2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
4775+
adafruit_qtpy_esp32s2.menu.PartitionScheme.no_ota.build.partitions=no_ota
4776+
adafruit_qtpy_esp32s2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
4777+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
4778+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
4779+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
4780+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
4781+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
4782+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
4783+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
4784+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
4785+
adafruit_qtpy_esp32s2.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
4786+
adafruit_qtpy_esp32s2.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
4787+
adafruit_qtpy_esp32s2.menu.PartitionScheme.huge_app.build.partitions=huge_app
4788+
adafruit_qtpy_esp32s2.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
4789+
adafruit_qtpy_esp32s2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
4790+
adafruit_qtpy_esp32s2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
4791+
adafruit_qtpy_esp32s2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
4792+
adafruit_qtpy_esp32s2.menu.PartitionScheme.fatflash=16M Flash (2MB APP/12.5MB FAT)
4793+
adafruit_qtpy_esp32s2.menu.PartitionScheme.fatflash.build.partitions=ffat
4794+
adafruit_qtpy_esp32s2.menu.PartitionScheme.fatflash.upload.maximum_size=2097152
4795+
adafruit_qtpy_esp32s2.menu.PartitionScheme.app3M_fat9M_16MB=16M Flash (3MB APP/9MB FATFS)
4796+
adafruit_qtpy_esp32s2.menu.PartitionScheme.app3M_fat9M_16MB.build.partitions=app3M_fat9M_16MB
4797+
adafruit_qtpy_esp32s2.menu.PartitionScheme.app3M_fat9M_16MB.upload.maximum_size=3145728
4798+
4799+
adafruit_qtpy_esp32s2.menu.CPUFreq.240=240MHz (WiFi)
4800+
adafruit_qtpy_esp32s2.menu.CPUFreq.240.build.f_cpu=240000000L
4801+
adafruit_qtpy_esp32s2.menu.CPUFreq.160=160MHz (WiFi)
4802+
adafruit_qtpy_esp32s2.menu.CPUFreq.160.build.f_cpu=160000000L
4803+
adafruit_qtpy_esp32s2.menu.CPUFreq.80=80MHz (WiFi)
4804+
adafruit_qtpy_esp32s2.menu.CPUFreq.80.build.f_cpu=80000000L
4805+
adafruit_qtpy_esp32s2.menu.CPUFreq.40=40MHz
4806+
adafruit_qtpy_esp32s2.menu.CPUFreq.40.build.f_cpu=40000000L
4807+
adafruit_qtpy_esp32s2.menu.CPUFreq.20=20MHz
4808+
adafruit_qtpy_esp32s2.menu.CPUFreq.20.build.f_cpu=20000000L
4809+
adafruit_qtpy_esp32s2.menu.CPUFreq.10=10MHz
4810+
adafruit_qtpy_esp32s2.menu.CPUFreq.10.build.f_cpu=10000000L
4811+
4812+
adafruit_qtpy_esp32s2.menu.FlashMode.qio=QIO
4813+
adafruit_qtpy_esp32s2.menu.FlashMode.qio.build.flash_mode=dio
4814+
adafruit_qtpy_esp32s2.menu.FlashMode.qio.build.boot=qio
4815+
adafruit_qtpy_esp32s2.menu.FlashMode.dio=DIO
4816+
adafruit_qtpy_esp32s2.menu.FlashMode.dio.build.flash_mode=dio
4817+
adafruit_qtpy_esp32s2.menu.FlashMode.dio.build.boot=dio
4818+
adafruit_qtpy_esp32s2.menu.FlashMode.qout=QOUT
4819+
adafruit_qtpy_esp32s2.menu.FlashMode.qout.build.flash_mode=dout
4820+
adafruit_qtpy_esp32s2.menu.FlashMode.qout.build.boot=qout
4821+
adafruit_qtpy_esp32s2.menu.FlashMode.dout=DOUT
4822+
adafruit_qtpy_esp32s2.menu.FlashMode.dout.build.flash_mode=dout
4823+
adafruit_qtpy_esp32s2.menu.FlashMode.dout.build.boot=dout
4824+
4825+
adafruit_qtpy_esp32s2.menu.FlashFreq.80=80MHz
4826+
adafruit_qtpy_esp32s2.menu.FlashFreq.80.build.flash_freq=80m
4827+
adafruit_qtpy_esp32s2.menu.FlashFreq.40=40MHz
4828+
adafruit_qtpy_esp32s2.menu.FlashFreq.40.build.flash_freq=40m
4829+
4830+
adafruit_qtpy_esp32s2.menu.FlashSize.4M=4MB (32Mb)
4831+
adafruit_qtpy_esp32s2.menu.FlashSize.4M.build.flash_size=4MB
4832+
adafruit_qtpy_esp32s2.menu.FlashSize.8M=8MB (64Mb)
4833+
adafruit_qtpy_esp32s2.menu.FlashSize.8M.build.flash_size=8MB
4834+
adafruit_qtpy_esp32s2.menu.FlashSize.8M.build.partitions=default_8MB
4835+
adafruit_qtpy_esp32s2.menu.FlashSize.2M=2MB (16Mb)
4836+
adafruit_qtpy_esp32s2.menu.FlashSize.2M.build.flash_size=2MB
4837+
adafruit_qtpy_esp32s2.menu.FlashSize.2M.build.partitions=minimal
4838+
adafruit_qtpy_esp32s2.menu.FlashSize.16M=16MB (128Mb)
4839+
adafruit_qtpy_esp32s2.menu.FlashSize.16M.build.flash_size=16MB
4840+
4841+
adafruit_qtpy_esp32s2.menu.UploadSpeed.921600=921600
4842+
adafruit_qtpy_esp32s2.menu.UploadSpeed.921600.upload.speed=921600
4843+
adafruit_qtpy_esp32s2.menu.UploadSpeed.115200=115200
4844+
adafruit_qtpy_esp32s2.menu.UploadSpeed.115200.upload.speed=115200
4845+
adafruit_qtpy_esp32s2.menu.UploadSpeed.256000.windows=256000
4846+
adafruit_qtpy_esp32s2.menu.UploadSpeed.256000.upload.speed=256000
4847+
adafruit_qtpy_esp32s2.menu.UploadSpeed.230400.windows.upload.speed=256000
4848+
adafruit_qtpy_esp32s2.menu.UploadSpeed.230400=230400
4849+
adafruit_qtpy_esp32s2.menu.UploadSpeed.230400.upload.speed=230400
4850+
adafruit_qtpy_esp32s2.menu.UploadSpeed.460800.linux=460800
4851+
adafruit_qtpy_esp32s2.menu.UploadSpeed.460800.macosx=460800
4852+
adafruit_qtpy_esp32s2.menu.UploadSpeed.460800.upload.speed=460800
4853+
adafruit_qtpy_esp32s2.menu.UploadSpeed.512000.windows=512000
4854+
adafruit_qtpy_esp32s2.menu.UploadSpeed.512000.upload.speed=512000
4855+
4856+
adafruit_qtpy_esp32s2.menu.DebugLevel.none=None
4857+
adafruit_qtpy_esp32s2.menu.DebugLevel.none.build.code_debug=0
4858+
adafruit_qtpy_esp32s2.menu.DebugLevel.error=Error
4859+
adafruit_qtpy_esp32s2.menu.DebugLevel.error.build.code_debug=1
4860+
adafruit_qtpy_esp32s2.menu.DebugLevel.warn=Warn
4861+
adafruit_qtpy_esp32s2.menu.DebugLevel.warn.build.code_debug=2
4862+
adafruit_qtpy_esp32s2.menu.DebugLevel.info=Info
4863+
adafruit_qtpy_esp32s2.menu.DebugLevel.info.build.code_debug=3
4864+
adafruit_qtpy_esp32s2.menu.DebugLevel.debug=Debug
4865+
adafruit_qtpy_esp32s2.menu.DebugLevel.debug.build.code_debug=4
4866+
adafruit_qtpy_esp32s2.menu.DebugLevel.verbose=Verbose
4867+
adafruit_qtpy_esp32s2.menu.DebugLevel.verbose.build.code_debug=5
4868+
4869+
##############################################################
4870+
47074871
nodemcu-32s.name=NodeMCU-32S
47084872

47094873
nodemcu-32s.upload.tool=esptool_py
21.9 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table, 0x8000, 4K
5+
6+
nvs, data, nvs, 0x9000, 20K,
7+
otadata, data, ota, 0xe000, 8K,
8+
ota_0, 0, ota_0, 0x10000, 1408K,
9+
ota_1, 0, ota_1, 0x170000, 1408K,
10+
uf2, app, factory,0x2d0000, 256K,
11+
ffat, data, fat, 0x310000, 960K,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
7+
#define USB_VID 0x239A
8+
#define USB_PID 0x8111
9+
#define USB_MANUFACTURER "Adafruit"
10+
#define USB_PRODUCT "QT Py ESP32-S2"
11+
#define USB_SERIAL "" // Empty string for MAC adddress
12+
13+
14+
#define EXTERNAL_NUM_INTERRUPTS 46
15+
#define NUM_DIGITAL_PINS 48
16+
#define NUM_ANALOG_INPUTS 20
17+
18+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
19+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
20+
#define digitalPinHasPWM(p) (p < 46)
21+
22+
//#define LED_BUILTIN 13
23+
24+
#define PIN_NEOPIXEL 39
25+
#define NEOPIXEL_NUM 1 // number of neopixels
26+
#define NEOPIXEL_POWER 38 // power pin
27+
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
28+
29+
static const uint8_t SDA = 7;
30+
static const uint8_t SCL = 6;
31+
32+
static const uint8_t SS = 42;
33+
static const uint8_t MOSI = 35;
34+
static const uint8_t SCK = 36;
35+
static const uint8_t MISO = 37;
36+
37+
static const uint8_t A0 = 18;
38+
static const uint8_t A1 = 17;
39+
static const uint8_t A2 = 9;
40+
static const uint8_t A3 = 8;
41+
static const uint8_t A6 = 5;
42+
static const uint8_t A7 = 16;
43+
44+
static const uint8_t TX = 5;
45+
static const uint8_t RX = 16;
46+
47+
static const uint8_t T1 = 1;
48+
static const uint8_t T2 = 2;
49+
static const uint8_t T3 = 3;
50+
static const uint8_t T4 = 4;
51+
static const uint8_t T5 = 5;
52+
static const uint8_t T6 = 6;
53+
static const uint8_t T7 = 7;
54+
static const uint8_t T8 = 8;
55+
static const uint8_t T9 = 9;
56+
static const uint8_t T10 = 10;
57+
static const uint8_t T11 = 11;
58+
static const uint8_t T12 = 12;
59+
static const uint8_t T13 = 13;
60+
static const uint8_t T14 = 14;
61+
62+
static const uint8_t DAC1 = 17;
63+
static const uint8_t DAC2 = 18;
64+
65+
#endif /* Pins_Arduino_h */
130 KB
Binary file not shown.

0 commit comments

Comments
 (0)