Skip to content

Commit bb4d902

Browse files
authored
add feather esp32 v2 and qtpy c3 board def (#6223)
* add feather esp32 v2 and qtpy c3 board def update some pin names add variant.cpp's to auto-enable i2c, tft, neopixels on boot * add auto-enable for i2c!
1 parent 1046f59 commit bb4d902

File tree

8 files changed

+471
-6
lines changed

8 files changed

+471
-6
lines changed

Diff for: boards.txt

+278
Original file line numberDiff line numberDiff line change
@@ -5088,6 +5088,284 @@ adafruit_qtpy_esp32s2.menu.DebugLevel.debug.build.code_debug=4
50885088
adafruit_qtpy_esp32s2.menu.DebugLevel.verbose=Verbose
50895089
adafruit_qtpy_esp32s2.menu.DebugLevel.verbose.build.code_debug=5
50905090

5091+
##############################################################
5092+
5093+
adafruit_qtpy_esp32c3.name=Adafruit QT Py ESP32-C3
5094+
adafruit_qtpy_esp32c3.vid.0=0x303a
5095+
adafruit_qtpy_esp32c3.pid.0=0x1001
5096+
5097+
adafruit_qtpy_esp32c3.upload.tool=esptool_py
5098+
adafruit_qtpy_esp32c3.upload.maximum_size=1310720
5099+
adafruit_qtpy_esp32c3.upload.maximum_data_size=327680
5100+
adafruit_qtpy_esp32c3.upload.flags=
5101+
adafruit_qtpy_esp32c3.upload.extra_flags=
5102+
adafruit_qtpy_esp32c3.upload.use_1200bps_touch=false
5103+
adafruit_qtpy_esp32c3.upload.wait_for_upload_port=false
5104+
5105+
adafruit_qtpy_esp32c3.serial.disableDTR=false
5106+
adafruit_qtpy_esp32c3.serial.disableRTS=false
5107+
5108+
adafruit_qtpy_esp32c3.build.tarch=riscv32
5109+
adafruit_qtpy_esp32c3.build.target=esp
5110+
adafruit_qtpy_esp32c3.build.mcu=esp32c3
5111+
adafruit_qtpy_esp32c3.build.core=esp32
5112+
adafruit_qtpy_esp32c3.build.variant=adafruit_qtpy_esp32c3
5113+
adafruit_qtpy_esp32c3.build.board=ADAFRUIT_QTPY_ESP32C3
5114+
adafruit_qtpy_esp32c3.build.bootloader_addr=0x0
5115+
5116+
adafruit_qtpy_esp32c3.build.cdc_on_boot=0
5117+
adafruit_qtpy_esp32c3.build.f_cpu=160000000L
5118+
adafruit_qtpy_esp32c3.build.flash_size=4MB
5119+
adafruit_qtpy_esp32c3.build.flash_freq=80m
5120+
adafruit_qtpy_esp32c3.build.flash_mode=dout
5121+
adafruit_qtpy_esp32c3.build.boot=dout
5122+
adafruit_qtpy_esp32c3.build.partitions=default
5123+
adafruit_qtpy_esp32c3.build.defines=
5124+
5125+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.cdc=Enabled
5126+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.cdc.build.cdc_on_boot=1
5127+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.default=Disabled
5128+
adafruit_qtpy_esp32c3.menu.CDCOnBoot.default.build.cdc_on_boot=0
5129+
5130+
adafruit_qtpy_esp32c3.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
5131+
adafruit_qtpy_esp32c3.menu.PartitionScheme.default.build.partitions=default
5132+
adafruit_qtpy_esp32c3.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
5133+
adafruit_qtpy_esp32c3.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
5134+
adafruit_qtpy_esp32c3.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
5135+
adafruit_qtpy_esp32c3.menu.PartitionScheme.minimal.build.partitions=minimal
5136+
adafruit_qtpy_esp32c3.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
5137+
adafruit_qtpy_esp32c3.menu.PartitionScheme.no_ota.build.partitions=no_ota
5138+
adafruit_qtpy_esp32c3.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5139+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
5140+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
5141+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
5142+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
5143+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
5144+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
5145+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
5146+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
5147+
adafruit_qtpy_esp32c3.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
5148+
adafruit_qtpy_esp32c3.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
5149+
adafruit_qtpy_esp32c3.menu.PartitionScheme.huge_app.build.partitions=huge_app
5150+
adafruit_qtpy_esp32c3.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
5151+
adafruit_qtpy_esp32c3.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
5152+
adafruit_qtpy_esp32c3.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5153+
adafruit_qtpy_esp32c3.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5154+
5155+
adafruit_qtpy_esp32c3.menu.CPUFreq.160=160MHz (WiFi)
5156+
adafruit_qtpy_esp32c3.menu.CPUFreq.160.build.f_cpu=160000000L
5157+
adafruit_qtpy_esp32c3.menu.CPUFreq.80=80MHz (WiFi)
5158+
adafruit_qtpy_esp32c3.menu.CPUFreq.80.build.f_cpu=80000000L
5159+
adafruit_qtpy_esp32c3.menu.CPUFreq.40=40MHz
5160+
adafruit_qtpy_esp32c3.menu.CPUFreq.40.build.f_cpu=40000000L
5161+
adafruit_qtpy_esp32c3.menu.CPUFreq.20=20MHz
5162+
adafruit_qtpy_esp32c3.menu.CPUFreq.20.build.f_cpu=20000000L
5163+
adafruit_qtpy_esp32c3.menu.CPUFreq.10=10MHz
5164+
adafruit_qtpy_esp32c3.menu.CPUFreq.10.build.f_cpu=10000000L
5165+
5166+
adafruit_qtpy_esp32c3.menu.FlashMode.dout=DOUT
5167+
adafruit_qtpy_esp32c3.menu.FlashMode.dout.build.flash_mode=dout
5168+
adafruit_qtpy_esp32c3.menu.FlashMode.dout.build.boot=dout
5169+
adafruit_qtpy_esp32c3.menu.FlashMode.qio=QIO
5170+
adafruit_qtpy_esp32c3.menu.FlashMode.qio.build.flash_mode=dio
5171+
adafruit_qtpy_esp32c3.menu.FlashMode.qio.build.boot=qio
5172+
adafruit_qtpy_esp32c3.menu.FlashMode.dio=DIO
5173+
adafruit_qtpy_esp32c3.menu.FlashMode.dio.build.flash_mode=dio
5174+
adafruit_qtpy_esp32c3.menu.FlashMode.dio.build.boot=dio
5175+
adafruit_qtpy_esp32c3.menu.FlashMode.qout=QOUT
5176+
adafruit_qtpy_esp32c3.menu.FlashMode.qout.build.flash_mode=dout
5177+
adafruit_qtpy_esp32c3.menu.FlashMode.qout.build.boot=qout
5178+
5179+
adafruit_qtpy_esp32c3.menu.FlashFreq.80=80MHz
5180+
adafruit_qtpy_esp32c3.menu.FlashFreq.80.build.flash_freq=80m
5181+
adafruit_qtpy_esp32c3.menu.FlashFreq.40=40MHz
5182+
adafruit_qtpy_esp32c3.menu.FlashFreq.40.build.flash_freq=40m
5183+
5184+
adafruit_qtpy_esp32c3.menu.FlashSize.4M=4MB (32Mb)
5185+
adafruit_qtpy_esp32c3.menu.FlashSize.4M.build.flash_size=4MB
5186+
adafruit_qtpy_esp32c3.menu.FlashSize.2M=2MB (16Mb)
5187+
adafruit_qtpy_esp32c3.menu.FlashSize.2M.build.flash_size=2MB
5188+
adafruit_qtpy_esp32c3.menu.FlashSize.2M.build.partitions=minimal
5189+
5190+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200=115200
5191+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200.upload.speed=115200
5192+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600=921600
5193+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600.upload.speed=921600
5194+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600=921600
5195+
adafruit_qtpy_esp32c3.menu.UploadSpeed.921600.upload.speed=921600
5196+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200=115200
5197+
adafruit_qtpy_esp32c3.menu.UploadSpeed.115200.upload.speed=115200
5198+
adafruit_qtpy_esp32c3.menu.UploadSpeed.256000.windows=256000
5199+
adafruit_qtpy_esp32c3.menu.UploadSpeed.256000.upload.speed=256000
5200+
adafruit_qtpy_esp32c3.menu.UploadSpeed.230400.windows.upload.speed=256000
5201+
adafruit_qtpy_esp32c3.menu.UploadSpeed.230400=230400
5202+
adafruit_qtpy_esp32c3.menu.UploadSpeed.230400.upload.speed=230400
5203+
adafruit_qtpy_esp32c3.menu.UploadSpeed.460800.linux=460800
5204+
adafruit_qtpy_esp32c3.menu.UploadSpeed.460800.macosx=460800
5205+
adafruit_qtpy_esp32c3.menu.UploadSpeed.460800.upload.speed=460800
5206+
adafruit_qtpy_esp32c3.menu.UploadSpeed.512000.windows=512000
5207+
adafruit_qtpy_esp32c3.menu.UploadSpeed.512000.upload.speed=512000
5208+
5209+
adafruit_qtpy_esp32c3.menu.DebugLevel.none=None
5210+
adafruit_qtpy_esp32c3.menu.DebugLevel.none.build.code_debug=0
5211+
adafruit_qtpy_esp32c3.menu.DebugLevel.error=Error
5212+
adafruit_qtpy_esp32c3.menu.DebugLevel.error.build.code_debug=1
5213+
adafruit_qtpy_esp32c3.menu.DebugLevel.warn=Warn
5214+
adafruit_qtpy_esp32c3.menu.DebugLevel.warn.build.code_debug=2
5215+
adafruit_qtpy_esp32c3.menu.DebugLevel.info=Info
5216+
adafruit_qtpy_esp32c3.menu.DebugLevel.info.build.code_debug=3
5217+
adafruit_qtpy_esp32c3.menu.DebugLevel.debug=Debug
5218+
adafruit_qtpy_esp32c3.menu.DebugLevel.debug.build.code_debug=4
5219+
adafruit_qtpy_esp32c3.menu.DebugLevel.verbose=Verbose
5220+
adafruit_qtpy_esp32c3.menu.DebugLevel.verbose.build.code_debug=5
5221+
5222+
5223+
adafruit_qtpy_esp32_pico.name=Adafruit QT Py ESP32 Pico
5224+
5225+
adafruit_qtpy_esp32_pico.upload.tool=esptool_py
5226+
adafruit_qtpy_esp32_pico.upload.maximum_size=1310720
5227+
adafruit_qtpy_esp32_pico.upload.maximum_data_size=327680
5228+
adafruit_qtpy_esp32_pico.upload.flags=
5229+
adafruit_qtpy_esp32_pico.upload.extra_flags=
5230+
5231+
adafruit_qtpy_esp32_pico.serial.disableDTR=true
5232+
adafruit_qtpy_esp32_pico.serial.disableRTS=true
5233+
5234+
adafruit_qtpy_esp32_pico.build.tarch=xtensa
5235+
adafruit_qtpy_esp32_pico.build.bootloader_addr=0x1000
5236+
adafruit_qtpy_esp32_pico.build.target=esp32
5237+
adafruit_qtpy_esp32_pico.build.mcu=esp32
5238+
adafruit_qtpy_esp32_pico.build.core=esp32
5239+
adafruit_qtpy_esp32_pico.build.variant=adafruit_qtpy_esp32
5240+
adafruit_qtpy_esp32_pico.build.board=ADAFRUIT_QTPY_ESP32_PICO
5241+
5242+
adafruit_qtpy_esp32_pico.build.f_cpu=240000000L
5243+
adafruit_qtpy_esp32_pico.build.flash_size=8MB
5244+
adafruit_qtpy_esp32_pico.build.flash_freq=80m
5245+
adafruit_qtpy_esp32_pico.build.flash_mode=dio
5246+
adafruit_qtpy_esp32_pico.build.boot=dio
5247+
adafruit_qtpy_esp32_pico.build.partitions=default
5248+
adafruit_qtpy_esp32_pico.build.defines=
5249+
5250+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.default=Default
5251+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.default.build.partitions=default
5252+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.no_ota=No OTA (Large APP)
5253+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.no_ota.build.partitions=no_ota
5254+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5255+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
5256+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5257+
adafruit_qtpy_esp32_pico.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5258+
5259+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.921600=921600
5260+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.921600.upload.speed=921600
5261+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.115200=115200
5262+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.115200.upload.speed=115200
5263+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.256000.windows=256000
5264+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.256000.upload.speed=256000
5265+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.230400.windows.upload.speed=256000
5266+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.230400=230400
5267+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.230400.upload.speed=230400
5268+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.460800.linux=460800
5269+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.460800.macosx=460800
5270+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.460800.upload.speed=460800
5271+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.512000.windows=512000
5272+
adafruit_qtpy_esp32_pico.menu.UploadSpeed.512000.upload.speed=512000
5273+
5274+
adafruit_qtpy_esp32_pico.menu.PSRAM.enabled=Enabled
5275+
adafruit_qtpy_esp32_pico.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
5276+
adafruit_qtpy_esp32_pico.menu.PSRAM.enabled.build.extra_libs=
5277+
adafruit_qtpy_esp32_pico.menu.PSRAM.disabled=Disabled
5278+
adafruit_qtpy_esp32_pico.menu.PSRAM.disabled.build.defines=
5279+
adafruit_qtpy_esp32_pico.menu.PSRAM.disabled.build.extra_libs=
5280+
5281+
adafruit_qtpy_esp32_pico.menu.DebugLevel.none=None
5282+
adafruit_qtpy_esp32_pico.menu.DebugLevel.none.build.code_debug=0
5283+
adafruit_qtpy_esp32_pico.menu.DebugLevel.error=Error
5284+
adafruit_qtpy_esp32_pico.menu.DebugLevel.error.build.code_debug=1
5285+
adafruit_qtpy_esp32_pico.menu.DebugLevel.warn=Warn
5286+
adafruit_qtpy_esp32_pico.menu.DebugLevel.warn.build.code_debug=2
5287+
adafruit_qtpy_esp32_pico.menu.DebugLevel.info=Info
5288+
adafruit_qtpy_esp32_pico.menu.DebugLevel.info.build.code_debug=3
5289+
adafruit_qtpy_esp32_pico.menu.DebugLevel.debug=Debug
5290+
adafruit_qtpy_esp32_pico.menu.DebugLevel.debug.build.code_debug=4
5291+
adafruit_qtpy_esp32_pico.menu.DebugLevel.verbose=Verbose
5292+
adafruit_qtpy_esp32_pico.menu.DebugLevel.verbose.build.code_debug=5
5293+
5294+
5295+
5296+
adafruit_feather_esp32_v2.name=Adafruit Feather ESP32 V2
5297+
5298+
adafruit_feather_esp32_v2.upload.tool=esptool_py
5299+
adafruit_feather_esp32_v2.upload.maximum_size=1310720
5300+
adafruit_feather_esp32_v2.upload.maximum_data_size=327680
5301+
adafruit_feather_esp32_v2.upload.flags=
5302+
adafruit_feather_esp32_v2.upload.extra_flags=
5303+
5304+
adafruit_feather_esp32_v2.serial.disableDTR=true
5305+
adafruit_feather_esp32_v2.serial.disableRTS=true
5306+
5307+
adafruit_feather_esp32_v2.build.tarch=xtensa
5308+
adafruit_feather_esp32_v2.build.bootloader_addr=0x1000
5309+
adafruit_feather_esp32_v2.build.target=esp32
5310+
adafruit_feather_esp32_v2.build.mcu=esp32
5311+
adafruit_feather_esp32_v2.build.core=esp32
5312+
adafruit_feather_esp32_v2.build.variant=adafruit_feather_esp32_v2
5313+
adafruit_feather_esp32_v2.build.board=ADAFRUIT_FEATHER_ESP32_V2
5314+
5315+
adafruit_feather_esp32_v2.build.f_cpu=240000000L
5316+
adafruit_feather_esp32_v2.build.flash_size=8MB
5317+
adafruit_feather_esp32_v2.build.flash_freq=80m
5318+
adafruit_feather_esp32_v2.build.flash_mode=dio
5319+
adafruit_feather_esp32_v2.build.boot=dio
5320+
adafruit_feather_esp32_v2.build.partitions=default
5321+
adafruit_feather_esp32_v2.build.defines=
5322+
5323+
adafruit_feather_esp32_v2.menu.PartitionScheme.default=Default
5324+
adafruit_feather_esp32_v2.menu.PartitionScheme.default.build.partitions=default
5325+
adafruit_feather_esp32_v2.menu.PartitionScheme.no_ota=No OTA (Large APP)
5326+
adafruit_feather_esp32_v2.menu.PartitionScheme.no_ota.build.partitions=no_ota
5327+
adafruit_feather_esp32_v2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
5328+
adafruit_feather_esp32_v2.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
5329+
adafruit_feather_esp32_v2.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
5330+
adafruit_feather_esp32_v2.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
5331+
5332+
adafruit_feather_esp32_v2.menu.UploadSpeed.921600=921600
5333+
adafruit_feather_esp32_v2.menu.UploadSpeed.921600.upload.speed=921600
5334+
adafruit_feather_esp32_v2.menu.UploadSpeed.115200=115200
5335+
adafruit_feather_esp32_v2.menu.UploadSpeed.115200.upload.speed=115200
5336+
adafruit_feather_esp32_v2.menu.UploadSpeed.256000.windows=256000
5337+
adafruit_feather_esp32_v2.menu.UploadSpeed.256000.upload.speed=256000
5338+
adafruit_feather_esp32_v2.menu.UploadSpeed.230400.windows.upload.speed=256000
5339+
adafruit_feather_esp32_v2.menu.UploadSpeed.230400=230400
5340+
adafruit_feather_esp32_v2.menu.UploadSpeed.230400.upload.speed=230400
5341+
adafruit_feather_esp32_v2.menu.UploadSpeed.460800.linux=460800
5342+
adafruit_feather_esp32_v2.menu.UploadSpeed.460800.macosx=460800
5343+
adafruit_feather_esp32_v2.menu.UploadSpeed.460800.upload.speed=460800
5344+
adafruit_feather_esp32_v2.menu.UploadSpeed.512000.windows=512000
5345+
adafruit_feather_esp32_v2.menu.UploadSpeed.512000.upload.speed=512000
5346+
5347+
adafruit_feather_esp32_v2.menu.PSRAM.enabled=Enabled
5348+
adafruit_feather_esp32_v2.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
5349+
adafruit_feather_esp32_v2.menu.PSRAM.enabled.build.extra_libs=
5350+
adafruit_feather_esp32_v2.menu.PSRAM.disabled=Disabled
5351+
adafruit_feather_esp32_v2.menu.PSRAM.disabled.build.defines=
5352+
adafruit_feather_esp32_v2.menu.PSRAM.disabled.build.extra_libs=
5353+
5354+
adafruit_feather_esp32_v2.menu.DebugLevel.none=None
5355+
adafruit_feather_esp32_v2.menu.DebugLevel.none.build.code_debug=0
5356+
adafruit_feather_esp32_v2.menu.DebugLevel.error=Error
5357+
adafruit_feather_esp32_v2.menu.DebugLevel.error.build.code_debug=1
5358+
adafruit_feather_esp32_v2.menu.DebugLevel.warn=Warn
5359+
adafruit_feather_esp32_v2.menu.DebugLevel.warn.build.code_debug=2
5360+
adafruit_feather_esp32_v2.menu.DebugLevel.info=Info
5361+
adafruit_feather_esp32_v2.menu.DebugLevel.info.build.code_debug=3
5362+
adafruit_feather_esp32_v2.menu.DebugLevel.debug=Debug
5363+
adafruit_feather_esp32_v2.menu.DebugLevel.debug.build.code_debug=4
5364+
adafruit_feather_esp32_v2.menu.DebugLevel.verbose=Verbose
5365+
adafruit_feather_esp32_v2.menu.DebugLevel.verbose.build.code_debug=5
5366+
5367+
5368+
50915369
##############################################################
50925370

50935371
nodemcu-32s.name=NodeMCU-32S

Diff for: variants/adafruit_feather_esp32_v2/pins_arduino.h

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

Diff for: variants/adafruit_feather_esp32_v2/variant.cpp

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
26+
#include "esp32-hal-gpio.h"
27+
#include "pins_arduino.h"
28+
29+
extern "C" {
30+
31+
// Initialize variant/board, called before setup()
32+
void initVariant(void)
33+
{
34+
// This board has a power control pin, and we must set it to output and high
35+
// in order to enable the NeoPixels & I2C
36+
pinMode(NEOPIXEL_I2C_POWER, OUTPUT);
37+
digitalWrite(NEOPIXEL_I2C_POWER, HIGH);
38+
}
39+
40+
}

0 commit comments

Comments
 (0)