Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
1065e387
Unverified
Commit
1065e387
authored
Sep 06, 2022
by
Limor "Ladyada" Fried
Committed by
GitHub
Sep 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itsy bitsy esp32 board working :) (#7199)
parent
074f3151
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
210 additions
and
0 deletions
+210
-0
boards.txt
boards.txt
+112
-0
variants/adafruit_itsybitsy_esp32/pins_arduino.h
variants/adafruit_itsybitsy_esp32/pins_arduino.h
+58
-0
variants/adafruit_itsybitsy_esp32/variant.cpp
variants/adafruit_itsybitsy_esp32/variant.cpp
+40
-0
No files found.
boards.txt
View file @
1065e387
...
...
@@ -9468,6 +9468,118 @@ adafruit_qtpy_esp32s3_nopsram.menu.EraseFlash.none.upload.erase_cmd=
adafruit_qtpy_esp32s3_nopsram.menu.EraseFlash.all=Enabled
adafruit_qtpy_esp32s3_nopsram.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
# Adafruit ItsyBitsy ESP32
adafruit_itsybitsy_esp32.name=Adafruit ItsyBitsy ESP32
adafruit_itsybitsy_esp32.bootloader.tool=esptool_py
adafruit_itsybitsy_esp32.bootloader.tool.default=esptool_py
adafruit_itsybitsy_esp32.upload.tool=esptool_py
adafruit_itsybitsy_esp32.upload.tool.default=esptool_py
adafruit_itsybitsy_esp32.upload.tool.network=esp_ota
adafruit_itsybitsy_esp32.upload.maximum_size=1310720
adafruit_itsybitsy_esp32.upload.maximum_data_size=327680
adafruit_itsybitsy_esp32.upload.flags=
adafruit_itsybitsy_esp32.upload.extra_flags=
adafruit_itsybitsy_esp32.serial.disableDTR=true
adafruit_itsybitsy_esp32.serial.disableRTS=true
adafruit_itsybitsy_esp32.build.tarch=xtensa
adafruit_itsybitsy_esp32.build.bootloader_addr=0x1000
adafruit_itsybitsy_esp32.build.target=esp32
adafruit_itsybitsy_esp32.build.mcu=esp32
adafruit_itsybitsy_esp32.build.core=esp32
adafruit_itsybitsy_esp32.build.variant=adafruit_itsybitsy_esp32
adafruit_itsybitsy_esp32.build.board=ADAFRUIT_ITSYBITSY_ESP32
adafruit_itsybitsy_esp32.build.f_cpu=240000000L
adafruit_itsybitsy_esp32.build.flash_size=8MB
adafruit_itsybitsy_esp32.build.flash_freq=80m
adafruit_itsybitsy_esp32.build.flash_mode=dio
adafruit_itsybitsy_esp32.build.boot=dio
adafruit_itsybitsy_esp32.build.partitions=default
adafruit_itsybitsy_esp32.build.defines=
adafruit_itsybitsy_esp32.build.loop_core=
adafruit_itsybitsy_esp32.build.event_core=
adafruit_itsybitsy_esp32.menu.LoopCore.1=Core 1
adafruit_itsybitsy_esp32.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
adafruit_itsybitsy_esp32.menu.LoopCore.0=Core 0
adafruit_itsybitsy_esp32.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
adafruit_itsybitsy_esp32.menu.EventsCore.1=Core 1
adafruit_itsybitsy_esp32.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
adafruit_itsybitsy_esp32.menu.EventsCore.0=Core 0
adafruit_itsybitsy_esp32.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
adafruit_itsybitsy_esp32.menu.PSRAM.enabled=Enabled
adafruit_itsybitsy_esp32.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
adafruit_itsybitsy_esp32.menu.PSRAM.disabled=Disabled
adafruit_itsybitsy_esp32.menu.PSRAM.disabled.build.defines=
adafruit_itsybitsy_esp32.menu.PartitionScheme.default_8MB=Default (3MB APP/1.5MB SPIFFS)
adafruit_itsybitsy_esp32.menu.PartitionScheme.default_8MB.build.partitions=default_8MB
adafruit_itsybitsy_esp32.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336
adafruit_itsybitsy_esp32.menu.CPUFreq.240=240MHz (WiFi/BT)
adafruit_itsybitsy_esp32.menu.CPUFreq.240.build.f_cpu=240000000L
adafruit_itsybitsy_esp32.menu.CPUFreq.160=160MHz (WiFi/BT)
adafruit_itsybitsy_esp32.menu.CPUFreq.160.build.f_cpu=160000000L
adafruit_itsybitsy_esp32.menu.CPUFreq.80=80MHz (WiFi/BT)
adafruit_itsybitsy_esp32.menu.CPUFreq.80.build.f_cpu=80000000L
adafruit_itsybitsy_esp32.menu.CPUFreq.40=40MHz
adafruit_itsybitsy_esp32.menu.CPUFreq.40.build.f_cpu=40000000L
adafruit_itsybitsy_esp32.menu.CPUFreq.20=20MHz
adafruit_itsybitsy_esp32.menu.CPUFreq.20.build.f_cpu=20000000L
adafruit_itsybitsy_esp32.menu.CPUFreq.10=10MHz
adafruit_itsybitsy_esp32.menu.CPUFreq.10.build.f_cpu=10000000L
adafruit_itsybitsy_esp32.menu.FlashFreq.80=80MHz
adafruit_itsybitsy_esp32.menu.FlashFreq.80.build.flash_freq=80m
adafruit_itsybitsy_esp32.menu.FlashFreq.40=40MHz
adafruit_itsybitsy_esp32.menu.FlashFreq.40.build.flash_freq=40m
adafruit_itsybitsy_esp32.menu.FlashSize.8M=8MB (64Mb)
adafruit_itsybitsy_esp32.menu.FlashSize.8M.build.flash_size=8MB
adafruit_itsybitsy_esp32.menu.UploadSpeed.921600=921600
adafruit_itsybitsy_esp32.menu.UploadSpeed.921600.upload.speed=921600
adafruit_itsybitsy_esp32.menu.UploadSpeed.115200=115200
adafruit_itsybitsy_esp32.menu.UploadSpeed.115200.upload.speed=115200
adafruit_itsybitsy_esp32.menu.UploadSpeed.256000.windows=256000
adafruit_itsybitsy_esp32.menu.UploadSpeed.256000.upload.speed=256000
adafruit_itsybitsy_esp32.menu.UploadSpeed.230400.windows.upload.speed=256000
adafruit_itsybitsy_esp32.menu.UploadSpeed.230400=230400
adafruit_itsybitsy_esp32.menu.UploadSpeed.230400.upload.speed=230400
adafruit_itsybitsy_esp32.menu.UploadSpeed.460800.linux=460800
adafruit_itsybitsy_esp32.menu.UploadSpeed.460800.macosx=460800
adafruit_itsybitsy_esp32.menu.UploadSpeed.460800.upload.speed=460800
adafruit_itsybitsy_esp32.menu.UploadSpeed.512000.windows=512000
adafruit_itsybitsy_esp32.menu.UploadSpeed.512000.upload.speed=512000
adafruit_itsybitsy_esp32.menu.DebugLevel.none=None
adafruit_itsybitsy_esp32.menu.DebugLevel.none.build.code_debug=0
adafruit_itsybitsy_esp32.menu.DebugLevel.error=Error
adafruit_itsybitsy_esp32.menu.DebugLevel.error.build.code_debug=1
adafruit_itsybitsy_esp32.menu.DebugLevel.warn=Warn
adafruit_itsybitsy_esp32.menu.DebugLevel.warn.build.code_debug=2
adafruit_itsybitsy_esp32.menu.DebugLevel.info=Info
adafruit_itsybitsy_esp32.menu.DebugLevel.info.build.code_debug=3
adafruit_itsybitsy_esp32.menu.DebugLevel.debug=Debug
adafruit_itsybitsy_esp32.menu.DebugLevel.debug.build.code_debug=4
adafruit_itsybitsy_esp32.menu.DebugLevel.verbose=Verbose
adafruit_itsybitsy_esp32.menu.DebugLevel.verbose.build.code_debug=5
adafruit_itsybitsy_esp32.menu.EraseFlash.none=Disabled
adafruit_itsybitsy_esp32.menu.EraseFlash.none.upload.erase_cmd=
adafruit_itsybitsy_esp32.menu.EraseFlash.all=Enabled
adafruit_itsybitsy_esp32.menu.EraseFlash.all.upload.erase_cmd=-e
##############################################################
nodemcu-32s.name=NodeMCU-32S
...
...
variants/adafruit_itsybitsy_esp32/pins_arduino.h
0 → 100644
View file @
1065e387
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS 40
#define NUM_ANALOG_INPUTS 16
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
#define digitalPinHasPWM(p) (p < 34)
static
const
uint8_t
LED_BUILTIN
=
13
;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN
// Neopixel
static
const
uint8_t
PIN_NEOPIXEL
=
0
;
static
const
uint8_t
NEOPIXEL_POWER
=
2
;
static
const
uint8_t
TX
=
20
;
static
const
uint8_t
RX
=
8
;
#define TX1 TX
#define RX1 RX
static
const
uint8_t
SDA
=
15
;
static
const
uint8_t
SCL
=
27
;
static
const
uint8_t
SS
=
32
;
static
const
uint8_t
MOSI
=
21
;
static
const
uint8_t
MISO
=
22
;
static
const
uint8_t
SCK
=
19
;
static
const
uint8_t
A0
=
25
;
static
const
uint8_t
A1
=
26
;
static
const
uint8_t
A2
=
4
;
static
const
uint8_t
A3
=
38
;
static
const
uint8_t
A4
=
37
;
static
const
uint8_t
A5
=
36
;
// internal switch
static
const
uint8_t
BUTTON
=
35
;
static
const
uint8_t
T0
=
4
;
static
const
uint8_t
T3
=
15
;
static
const
uint8_t
T4
=
13
;
static
const
uint8_t
T5
=
12
;
static
const
uint8_t
T6
=
14
;
static
const
uint8_t
T7
=
27
;
static
const
uint8_t
T8
=
33
;
static
const
uint8_t
T9
=
32
;
static
const
uint8_t
DAC1
=
25
;
static
const
uint8_t
DAC2
=
26
;
#endif
/* Pins_Arduino_h */
variants/adafruit_itsybitsy_esp32/variant.cpp
0 → 100644
View file @
1065e387
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "esp32-hal-gpio.h"
#include "pins_arduino.h"
extern
"C"
{
// Initialize variant/board, called before setup()
void
initVariant
(
void
)
{
// This board has a power control pin, and we must set it to output and high
// in order to enable the NeoPixels.
pinMode
(
NEOPIXEL_POWER
,
OUTPUT
);
digitalWrite
(
NEOPIXEL_POWER
,
HIGH
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment