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
509d31ba
Commit
509d31ba
authored
Jul 17, 2019
by
Magicblocks
Committed by
Me No Dev
Jul 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create variant for magicbit board (#2987)
* create varient for magicbit board * update boards.txt
parent
9e32cec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
2 deletions
+106
-2
boards.txt
boards.txt
+35
-2
variants/magicbit/pins_arduino.h
variants/magicbit/pins_arduino.h
+71
-0
No files found.
boards.txt
View file @
509d31ba
...
...
@@ -230,7 +230,6 @@ esp32wrover.menu.DebugLevel.verbose=Verbose
esp32wrover.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
pico32.name=ESP32 Pico Kit
pico32.upload.tool=esptool_py
...
...
@@ -353,7 +352,41 @@ tinypico.menu.DebugLevel.verbose=Verbose
tinypico.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
magicbit.name=MagicBit
magicbit.upload.tool=esptool_py
magicbit.upload.maximum_size=1310720
magicbit.upload.maximum_data_size=327680
magicbit.upload.wait_for_upload_port=true
magicbit.serial.disableDTR=true
magicbit.serial.disableRTS=true
magicbit.build.mcu=esp32
magicbit.build.core=esp32
magicbit.build.variant=esp32
magicbit.build.board=ESP32_DEV
magicbit.build.f_cpu=240000000L
magicbit.build.flash_size=4MB
magicbit.build.flash_freq=40m
magicbit.build.flash_mode=dio
magicbit.build.boot=dio
magicbit.build.partitions=default
magicbit.menu.CPUFreq.240=240MHz (WiFi/BT)
magicbit.menu.CPUFreq.240.build.f_cpu=240000000L
magicbit.menu.CPUFreq.160=160MHz (WiFi/BT)
magicbit.menu.CPUFreq.160.build.f_cpu=160000000L
magicbit.menu.CPUFreq.80=80MHz (WiFi/BT)
magicbit.menu.CPUFreq.80.build.f_cpu=80000000L
magicbit.menu.CPUFreq.40=40MHz (40MHz XTAL)
magicbit.menu.UploadSpeed.921600=921600
magicbit.menu.UploadSpeed.921600.upload.speed=921600
magicbit.menu.UploadSpeed.115200=115200
magicbit.menu.UploadSpeed.115200.upload.speed=115200
##############################################################
turta_iot_node.name=Turta IoT Node
turta_iot_node.upload.tool=esptool_py
...
...
variants/magicbit/pins_arduino.h
0 → 100644
View file @
509d31ba
#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
SDA
=
21
;
static
const
uint8_t
SCL
=
22
;
static
const
uint8_t
SS
=
5
;
static
const
uint8_t
MOSI
=
23
;
static
const
uint8_t
MISO
=
19
;
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
A10
=
4
;
static
const
uint8_t
A11
=
0
;
static
const
uint8_t
A12
=
2
;
static
const
uint8_t
A13
=
15
;
static
const
uint8_t
A14
=
13
;
static
const
uint8_t
A15
=
12
;
static
const
uint8_t
A16
=
14
;
static
const
uint8_t
A17
=
27
;
static
const
uint8_t
A18
=
25
;
static
const
uint8_t
A19
=
26
;
static
const
uint8_t
T0
=
4
;
static
const
uint8_t
T1
=
0
;
static
const
uint8_t
T2
=
2
;
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
;
static
const
uint8_t
BUZZER
=
25
;
static
const
uint8_t
RED_LED
=
32
;
static
const
uint8_t
YELLOW_LED
=
33
;
static
const
uint8_t
GREEN_LED
=
16
;
static
const
uint8_t
BLUE_LED
=
17
;
static
const
uint8_t
LDR
=
36
;
static
const
uint8_t
POT
=
39
;
static
const
uint8_t
RIGHT_PUTTON
=
34
;
static
const
uint8_t
LEFT_BUTTON
=
35
;
static
const
uint8_t
MOTOR1A
=
32
;
static
const
uint8_t
MOTOR1B
=
33
;
static
const
uint8_t
MOTOR2A
=
16
;
static
const
uint8_t
MOTOR2B
=
17
;
#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