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 fb6d5ad

Browse filesBrowse files
authored
Add Inex OpenKB Board (espressif#4002)
Please add OpenKB Board Product from INEX Co. Ltd. https://inex.co.th/shop/openkb.html
1 parent 219ff30 commit fb6d5ad
Copy full SHA for fb6d5ad

File tree

Expand file treeCollapse file tree

2 files changed

+134
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+134
-0
lines changed

‎boards.txt

Copy file name to clipboardExpand all lines: boards.txt
+44Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5273,6 +5273,50 @@ mPython.menu.DebugLevel.verbose.build.code_debug=5
52735273

52745274
##############################################################
52755275

5276+
OpenKB.name=INEX OpenKB
5277+
5278+
OpenKB.upload.tool=esptool_py
5279+
OpenKB.upload.maximum_size=1310720
5280+
OpenKB.upload.maximum_data_size=327680
5281+
OpenKB.upload.wait_for_upload_port=true
5282+
5283+
OpenKB.serial.disableDTR=true
5284+
OpenKB.serial.disableRTS=true
5285+
5286+
OpenKB.build.mcu=esp32
5287+
OpenKB.build.core=esp32
5288+
OpenKB.build.variant=openkb
5289+
OpenKB.build.board=openkb
5290+
5291+
OpenKB.build.f_cpu=240000000L
5292+
OpenKB.build.flash_mode=dio
5293+
OpenKB.build.flash_size=4MB
5294+
OpenKB.build.boot=dio
5295+
OpenKB.build.partitions=default
5296+
OpenKB.build.defines=
5297+
5298+
OpenKB.menu.FlashFreq.80=80MHz
5299+
OpenKB.menu.FlashFreq.80.build.flash_freq=80m
5300+
OpenKB.menu.FlashFreq.40=40MHz
5301+
OpenKB.menu.FlashFreq.40.build.flash_freq=40m
5302+
5303+
OpenKB.menu.UploadSpeed.921600=921600
5304+
OpenKB.menu.UploadSpeed.921600.upload.speed=921600
5305+
OpenKB.menu.UploadSpeed.115200=115200
5306+
OpenKB.menu.UploadSpeed.115200.upload.speed=115200
5307+
OpenKB.menu.UploadSpeed.256000.windows=256000
5308+
OpenKB.menu.UploadSpeed.256000.upload.speed=256000
5309+
OpenKB.menu.UploadSpeed.230400.windows.upload.speed=256000
5310+
OpenKB.menu.UploadSpeed.230400=230400
5311+
OpenKB.menu.UploadSpeed.230400.upload.speed=230400
5312+
OpenKB.menu.UploadSpeed.460800.linux=460800
5313+
OpenKB.menu.UploadSpeed.460800.macosx=460800
5314+
OpenKB.menu.UploadSpeed.460800.upload.speed=460800
5315+
OpenKB.menu.UploadSpeed.512000.windows=512000
5316+
OpenKB.menu.UploadSpeed.512000.upload.speed=512000
5317+
5318+
##############################################################
5319+
52765320
wifiduino32.name=WiFiduino32
52775321

52785322
wifiduino32.upload.tool=esptool_py

‎variants/openkb/pins_arduino.h

Copy file name to clipboard
+90Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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 38
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 = 16;
15+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+
static const uint8_t TX = 1;
18+
static const uint8_t RX = 3;
19+
20+
static const uint8_t SDA = 21;
21+
static const uint8_t SCL = 22;
22+
23+
static const uint8_t SS = 5;
24+
static const uint8_t MOSI = 23;
25+
static const uint8_t MISO = 19;
26+
static const uint8_t SCK = 18;
27+
28+
static const uint8_t A0 = 36;
29+
static const uint8_t A3 = 39;
30+
static const uint8_t A4 = 32;
31+
static const uint8_t A5 = 33;
32+
static const uint8_t A6 = 34;
33+
static const uint8_t A7 = 35;
34+
static const uint8_t A10 = 4;
35+
static const uint8_t A11 = 0;
36+
static const uint8_t A12 = 2;
37+
static const uint8_t A13 = 15;
38+
static const uint8_t A14 = 13;
39+
static const uint8_t A15 = 12;
40+
static const uint8_t A16 = 14;
41+
static const uint8_t A17 = 27;
42+
static const uint8_t A18 = 25;
43+
static const uint8_t A19 = 26;
44+
45+
static const uint8_t T0 = 4;
46+
static const uint8_t T1 = 0;
47+
static const uint8_t T2 = 2;
48+
static const uint8_t T3 = 15;
49+
static const uint8_t T4 = 13;
50+
static const uint8_t T5 = 12;
51+
static const uint8_t T6 = 14;
52+
static const uint8_t T7 = 27;
53+
static const uint8_t T8 = 33;
54+
static const uint8_t T9 = 32;
55+
56+
static const uint8_t DAC1 = 25;
57+
static const uint8_t DAC2 = 26;
58+
59+
static const uint8_t LDR_PIN = 36;
60+
61+
static const uint8_t SW1 = 16;
62+
static const uint8_t SW2 = 14;
63+
64+
65+
static const uint8_t BT_LED = 17;
66+
static const uint8_t WIFI_LED = 2;
67+
static const uint8_t NTP_LED = 15;
68+
static const uint8_t IOT_LED = 12;
69+
70+
static const uint8_t BUZZER = 13;
71+
72+
static const uint8_t INPUT1 = 32;
73+
static const uint8_t INPUT2 = 33;
74+
static const uint8_t INPUT3 = 34;
75+
static const uint8_t INPUT4 = 35;
76+
77+
static const uint8_t OUTPUT1 = 26;
78+
static const uint8_t OUTPUT2 = 27;
79+
80+
static const uint8_t SDA0 = 21;
81+
static const uint8_t SCL0 = 22;
82+
83+
static const uint8_t SDA1 = 4;
84+
static const uint8_t SCL1 = 5;
85+
86+
static const uint8_t KB_GPIO18 = 18;
87+
static const uint8_t KB_GPIO19 = 19;
88+
static const uint8_t KB_GPIO23= 23;
89+
90+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.