8000 Add BananaPi-BIT Development Board Support (#1810) · bperrybap/arduino-esp32@3028ec4 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3028ec4

Browse files
yelvlabme-no-dev
authored andcommitted
Add BananaPi-BIT Development Board Support (espressif#1810)
* Add BPI-BIT boards connfig * Add BPI-BIT v1.3 boards
1 parent 145904f commit 3028ec4

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

boards.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,6 +2275,49 @@ wipy3.menu.DebugLevel.verbose.build.code_debug=5
22752275

22762276
##############################################################
22772277

2278+
bpi-bit.name=BPI-BIT
2279+
2280+
bpi-bit.upload.tool=esptool
2281+
bpi-bit.upload.maximum_size=1310720
2282+
bpi-bit.upload.maximum_data_size=294912
2283+
bpi-bit.upload.wait_for_upload_port=true
2284+
2285+
bpi-bit.serial.disableDTR=true
2286+
bpi-bit.serial.disableRTS=true
2287+
2288+
bpi-bit.build.mcu=esp32
2289+
bpi-bit.build.core=esp32
2290+
bpi-bit.build.variant=bpi-bit
2291+
bpi-bit.build.board=BPI-BIT
2292+
2293+
bpi-bit.build.f_cpu=160000000L
2294+
bpi-bit.build.flash_mode=dio
2295+
bpi-bit.build.flash_size=4MB
2296+
bpi-bit.build.boot=dio
2297+
bpi-bit.build.partitions=default
2298+
2299+
bpi-bit.menu.FlashFreq.80=80MHz
2300+
bpi-bit.menu.FlashFreq.80.build.flash_freq=80m
2301+
bpi-bit.menu.FlashFreq.40=40MHz
2302+
bpi-bit.menu.FlashFreq.40.build.flash_freq=40m
2303+
2304+
bpi-bit.menu.UploadSpeed.921600=921600
2305+
bpi-bit.menu.UploadSpeed.921600.upload.speed=921600
2306+
bpi-bit.menu.UploadSpeed.115200=115200
2307+
bpi-bit.menu.UploadSpeed.115200.upload.speed=115200
2308+
bpi-bit.menu.UploadSpeed.256000.windows=256000
2309+
bpi-bit.menu.UploadSpeed.256000.upload.speed=256000
2310+
bpi-bit.menu.UploadSpeed.230400.windows.upload.speed=256000
2311+
bpi-bit.menu.UploadSpeed.230400=230400
2312+
bpi-bit.menu.UploadSpeed.230400.upload.speed=230400
2313+
bpi-bit.menu.UploadSpeed.460800.linux=460800
2314+
bpi-bit.menu.UploadSpeed.460800.macosx=460800
2315+
bpi-bit.menu.UploadSpeed.460800.upload.speed=460800
2316+
bpi-bit.menu.UploadSpeed.512000.windows=512000
2317+
bpi-bit.menu.UploadSpeed.512000.upload.speed=512000
2318+
2319+
##############################################################
2320+
22782321
wesp32.name=Silicognition wESP32
22792322

22802323
wesp32.upload.tool=esptool

variants/bpi-bit/pins_arduino.h

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 BUZZER = 25;
15+
16+
static const uint8_t BUTTON_A = 35;
17+
static const uint8_t BUTTON_B = 27;
18+
19+
static const uint8_t RGB_LED = 4;
20+
static const uint8_t RGB_LED_POWER = 2;
21+
22+
static const uint8_t LIGHT_SENSOR1 = 36;
23+
static const uint8_t LIGHT_SENSOR2 = 39;
24+
25+
static const uint8_t TEMPERATURE_SENSOR = 34;
26+
27+
static const uint8_t MPU9250_AD0 = 0;
28+
29+
static const uint8_t TX = 1;
30+
static const uint8_t RX = 3;
31+
32+
static const uint8_t SDA = 21;
33+
static const uint8_t SCL = 22;
34+
35+
static const uint8_t SS = 5;
36+
static const uint8_t MOSI = 23;
37+
static const uint8_t MISO = 19;
38+
static const uint8_t SCK = 23;
39+
40+
static const uint8_t P0 = 25;
41+
static const uint8_t P1 = 32;
42+
static const uint8_t P2 = 33;
43+
static const uint8_t P3 = 13;
44+
static const uint8_t P4 = 15;
45+
static const uint8_t P5 = 35;
46+
static const uint8_t P6 = 12;
47+
static const uint8_t P7 = 14;
48+
static const uint8_t P8 = 16;
49+
static const uint8_t P9 = 17;
50+
static const uint8_t P10 = 26;
51+
static const uint8_t P11 = 27;
52+
static const uint8_t P12 = 2;
53+
static const uint8_t P13 = 18;
54+
static const uint8_t P14 = 19;
55+
static const uint8_t P15 = 23;
56+
static const uint8_t P16 = 5;
57+
static const uint8_t P19 = 22;
58+
static const uint8_t P20 = 21;
59+
60+
static const uint8_t DAC1 = 26;
61+
static const uint8_t DAC2 = 25;
62+
63+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)
0