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
ba8024c0
Unverified
Commit
ba8024c0
authored
Mar 14, 2022
by
Limor "Ladyada" Fried
Committed by
GitHub
Mar 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some board variant fixes (#6411)
* make work with rev C pcb * use #define for easy testing
parent
e87b87d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
variants/adafruit_feather_esp32_v2/pins_arduino.h
variants/adafruit_feather_esp32_v2/pins_arduino.h
+5
-6
variants/adafruit_feather_esp32s2/variant.cpp
variants/adafruit_feather_esp32s2/variant.cpp
+5
-4
variants/adafruit_qtpy_esp32c3/pins_arduino.h
variants/adafruit_qtpy_esp32c3/pins_arduino.h
+2
-2
No files found.
variants/adafruit_feather_esp32_v2/pins_arduino.h
View file @
ba8024c0
...
...
@@ -42,20 +42,19 @@ static const uint8_t A9 = 33;
static
const
uint8_t
A10
=
27
;
static
const
uint8_t
A11
=
12
;
static
const
uint8_t
A12
=
13
;
static
const
uint8_t
A13
=
35
;
// vbat measure
static
const
uint8_t
BATT_MONITOR
=
35
;
static
const
uint8_t
A13
=
35
;
#define BATT_MONITOR 35
// internal switch
static
const
uint8_t
BUTTON
=
38
;
#define
BUTTON = 38;
// Neopixel
static
const
uint8_t
NEOPIXEL_PIN
=
0
;
static
const
uint8_t
PIN_NEOPIXEL
=
0
;
#define PIN_NEOPIXEL 0
// Neopixel & I2C power
static
const
uint8_t
NEOPIXEL_I2C_POWER
=
2
;
#define NEOPIXEL_I2C_POWER 2
static
const
uint8_t
T0
=
4
;
static
const
uint8_t
T1
=
0
;
...
...
variants/adafruit_feather_esp32s2/variant.cpp
View file @
ba8024c0
...
...
@@ -36,10 +36,11 @@ void initVariant(void)
pinMode
(
NEOPIXEL_POWER
,
OUTPUT
);
digitalWrite
(
NEOPIXEL_POWER
,
HIGH
);
// This board has a power control pin, and we must set it to output and low
// in order to enable the I2C port.
// turn on the I2C power by setting pin to opposite of 'rest state'
pinMode
(
PIN_I2C_POWER
,
INPUT
);
delay
(
1
);
bool
polarity
=
digitalRead
(
PIN_I2C_POWER
);
pinMode
(
PIN_I2C_POWER
,
OUTPUT
);
digitalWrite
(
PIN_I2C_POWER
,
LOW
);
digitalWrite
(
PIN_I2C_POWER
,
!
polarity
);
}
}
variants/adafruit_qtpy_esp32c3/pins_arduino.h
View file @
ba8024c0
...
...
@@ -11,8 +11,8 @@
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
static
const
uint8_t
SWITCH
=
9
;
static
const
uint8_t
NEOPIXEL_PIN
=
2
;
#define BUTTON 9
#define PIN_NEOPIXEL 2
static
const
uint8_t
TX
=
21
;
static
const
uint8_t
RX
=
20
;
...
...
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