Skip to content

Commit ff18a21

Browse files
hancheol-chome-no-dev
authored andcommitted
Add OROCA EduBot Board (espressif#2264)
1 parent a6e3b29 commit ff18a21

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

Diff for: boards.txt

+57
Original file line numberDiff line numberDiff line change
@@ -2738,3 +2738,60 @@ lopy4.menu.DebugLevel.debug=Debug
27382738
lopy4.menu.DebugLevel.debug.build.code_debug=4
27392739
lopy4.menu.DebugLevel.verbose=Verbose
27402740
lopy4.menu.DebugLevel.verbose.build.code_debug=5
2741+
2742+
##############################################################
2743+
2744+
oroca_edubot.name=OROCA EduBot
2745+
2746+
oroca_edubot.upload.tool=esptool_py
2747+
oroca_edubot.upload.maximum_size=1310720
2748+
oroca_edubot.upload.maximum_data_size=327680
2749+
oroca_edubot.upload.wait_for_upload_port=true
2750+
2751+
oroca_edubot.serial.disableDTR=true
2752+
oroca_edubot.serial.disableRTS=true
2753+
2754+
oroca_edubot.build.mcu=esp32
2755+
oroca_edubot.build.core=esp32
2756+
oroca_edubot.build.variant=oroca_edubot
2757+
oroca_edubot.build.board=OROCA_EDUBOT
2758+
2759+
oroca_edubot.build.f_cpu=240000000L
2760+
oroca_edubot.build.flash_mode=dio
2761+
oroca_edubot.build.flash_size=4MB
2762+
oroca_edubot.build.boot=dio
2763+
oroca_edubot.build.partitions=default
2764+
oroca_edubot.build.defines=
2765+
2766+
oroca_edubot.menu.FlashFreq.80=80MHz
2767+
oroca_edubot.menu.FlashFreq.80.build.flash_freq=80m
2768+
oroca_edubot.menu.FlashFreq.40=40MHz
2769+
oroca_edubot.menu.FlashFreq.40.build.flash_freq=40m
2770+
2771+
oroca_edubot.menu.UploadSpeed.921600=921600
2772+
oroca_edubot.menu.UploadSpeed.921600.upload.speed=921600
2773+
oroca_edubot.menu.UploadSpeed.115200=115200
2774+
oroca_edubot.menu.UploadSpeed.115200.upload.speed=115200
2775+
oroca_edubot.menu.UploadSpeed.256000.windows=256000
2776+
oroca_edubot.menu.UploadSpeed.256000.upload.speed=256000
2777+
oroca_edubot.menu.UploadSpeed.230400.windows.upload.speed=256000
2778+
oroca_edubot.menu.UploadSpeed.230400=230400
2779+
oroca_edubot.menu.UploadSpeed.230400.upload.speed=230400
2780+
oroca_edubot.menu.UploadSpeed.460800.linux=460800
2781+
oroca_edubot.menu.UploadSpeed.460800.macosx=460800
2782+
oroca_edubot.menu.UploadSpeed.460800.upload.speed=460800
2783+
oroca_edubot.menu.UploadSpeed.512000.windows=512000
2784+
oroca_edubot.menu.UploadSpeed.512000.upload.speed=512000
2785+
2786+
oroca_edubot.menu.DebugLevel.none=None
2787+
oroca_edubot.menu.DebugLevel.none.build.code_debug=0
2788+
oroca_edubot.menu.DebugLevel.error=Error
2789+
oroca_edubot.menu.DebugLevel.error.build.code_debug=1
2790+
oroca_edubot.menu.DebugLevel.warn=Warn
2791+
oroca_edubot.menu.DebugLevel.warn.build.code_debug=2
2792+
oroca_edubot.menu.DebugLevel.info=Info
2793+
oroca_edubot.menu.DebugLevel.info.build.code_debug=3
2794+
oroca_edubot.menu.DebugLevel.debug=Debug
2795+
oroca_edubot.menu.DebugLevel.debug.build.code_debug=4
2796+
oroca_edubot.menu.DebugLevel.verbose=Verbose
2797+
oroca_edubot.menu.DebugLevel.verbose.build.code_debug=5

Diff for: variants/oroca_edubot/pins_arduino.h

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
17+
static const uint8_t TX = 17;
18+
static const uint8_t RX = 16;
19+
20+
static const uint8_t SDA = 23;
21+
static const uint8_t SCL = 22;
22+
23+
static const uint8_t SS = 2;
24+
static const uint8_t MOSI = 18;
25+
static const uint8_t MISO = 19;
26+
static const uint8_t SCK = 5;
27+
28+
29+
static const uint8_t A0 = 34;
30+
static const uint8_t A1 = 39;
31+
static const uint8_t A2 = 36;
32+
static const uint8_t A3 = 33;
33+
34+
static const uint8_t D0 = 4;
35+
static const uint8_t D1 = 16;
36+
static const uint8_t D2 = 17;
37+
static const uint8_t D3 = 22;
38+
static const uint8_t D4 = 23;
39+
static const uint8_t D5 = 5;
40+
static const uint8_t D6 = 18;
41+
static const uint8_t D7 = 19;
42+
static const uint8_t D8 = 33;
43+
44+
// vbat measure
45+
static const uint8_t VBAT = 35;
46+
47+
48+
static const uint8_t T0 = 4;
49+
static const uint8_t T1 = 0;
50+
static const uint8_t T2 = 2;
51+
static const uint8_t T3 = 15;
52+
static const uint8_t T4 = 13;
53+
static const uint8_t T5 = 12;
54+
static const uint8_t T6 = 14;
55+
static const uint8_t T7 = 27;
56+
static const uint8_t T8 = 33;
57+
static const uint8_t T9 = 32;
58+
59+
static const uint8_t DAC1 = 25;
60+
static const uint8_t DAC2 = 26;
61+
62+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)