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
145904fb
Commit
145904fb
authored
Sep 17, 2018
by
Patrick Van Oosterwijck
Committed by
Me No Dev
Sep 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wESP32 support (#1821)
* Add wESP32 support * Add default Ethernet config
parent
cb8d72fd
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
235 additions
and
133 deletions
+235
-133
boards.txt
boards.txt
+191
-133
variants/wesp32/pins_arduino.h
variants/wesp32/pins_arduino.h
+44
-0
No files found.
boards.txt
View file @
145904fb
This diff is collapsed.
Click to expand it.
variants/wesp32/pins_arduino.h
0 → 100644
View file @
145904fb
#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)?(esp32_adc2gpio[(p)]):-1)
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
#define digitalPinHasPWM(p) (p < 34)
static
const
uint8_t
TX
=
1
;
static
const
uint8_t
RX
=
3
;
static
const
uint8_t
SCL
=
4
;
static
const
uint8_t
SDA
=
2
;
static
const
uint8_t
SS
=
5
;
static
const
uint8_t
MOSI
=
23
;
static
const
uint8_t
MISO
=
32
;
static
const
uint8_t
SCK
=
18
;
static
const
uint8_t
A0
=
36
;
static
const
uint8_t
A3
=
39
;
static
const
uint8_t
A4
=
32
;
static
const
uint8_t
A5
=
33
;
static
const
uint8_t
A6
=
34
;
static
const
uint8_t
A7
=
35
;
static
const
uint8_t
T0
=
4
;
static
const
uint8_t
T2
=
2
;
static
const
uint8_t
T8
=
33
;
static
const
uint8_t
T9
=
32
;
#define ETH_PHY_ADDR 0
#define ETH_PHY_POWER -1
#define ETH_PHY_MDC 16
#define ETH_PHY_MDIO 17
#define ETH_PHY_TYPE ETH_PHY_LAN8720
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
#endif
/* Pins_Arduino_h */
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