Skip to content

Commit 9c20f1b

Browse files
authored
added denky boards (#5079)
Added new boards including one with brand new ESP32-PICO-V3-02
1 parent b45cf11 commit 9c20f1b

File tree

2 files changed

+159
-0
lines changed

2 files changed

+159
-0
lines changed

boards.txt

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8208,3 +8208,83 @@ ET-Board.menu.DebugLevel.debug=Debug
82088208
ET-Board.menu.DebugLevel.debug.build.code_debug=4
82098209
ET-Board.menu.DebugLevel.verbose=Verbose
82108210
ET-Board.menu.DebugLevel.verbose.build.code_debug=5
8211+
8212+
##############################################################
8213+
8214+
ch_denky.name=Denky
8215+
8216+
ch_denky.upload.tool=esptool_py
8217+
ch_denky.upload.maximum_size=1310720
8218+
ch_denky.upload.maximum_data_size=327680
8219+
ch_denky.upload.flags=
8220+
ch_denky.upload.extra_flags=
8221+
8222+
ch_denky.serial.disableDTR=true
8223+
ch_denky.serial.disableRTS=true
8224+
8225+
ch_denky.build.tarch=xtensa
8226+
ch_denky.build.bootloader_addr=0x1000
8227+
ch_denky.build.target=esp32
8228+
ch_denky.build.mcu=esp32
8229+
ch_denky.build.core=esp32
8230+
ch_denky.build.variant=ch_denky
8231+
ch_denky.build.board=DENKY
8232+
8233+
ch_denky.build.f_cpu=240000000L
8234+
ch_denky.build.flash_size=4MB
8235+
ch_denky.build.flash_freq=80m
8236+
ch_denky.build.flash_mode=dio
8237+
ch_denky.build.boot=dio
8238+
ch_denky.build.partitions=default
8239+
ch_denky.build.defines=
8240+
8241+
ch_denky.menu.Revision.denkyd4=PICO-V3-02
8242+
ch_denky.menu.Revision.denkyd4.build.board=DENKY_PICOV3
8243+
ch_denky.menu.Revision.denkyd4.build.flash_size=8MB
8244+
ch_denky.menu.Revision.denky32=WROOM32
8245+
ch_denky.menu.Revision.denky32.build.board=DENKY_WROOM32
8246+
ch_denky.menu.Revision.denkyd4.build.flash_size=4MB
8247+
8248+
ch_denky.menu.PartitionScheme.default=Default
8249+
ch_denky.menu.PartitionScheme.default.build.partitions=default
8250+
ch_denky.menu.PartitionScheme.no_ota=No OTA (Large APP)
8251+
ch_denky.menu.PartitionScheme.no_ota.build.partitions=no_ota
8252+
ch_denky.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
8253+
ch_denky.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
8254+
ch_denky.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
8255+
ch_denky.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
8256+
8257+
ch_denky.menu.UploadSpeed.921600=921600
8258+
ch_denky.menu.UploadSpeed.921600.upload.speed=921600
8259+
ch_denky.menu.UploadSpeed.115200=115200
8260+
ch_denky.menu.UploadSpeed.115200.upload.speed=115200
8261+
ch_denky.menu.UploadSpeed.256000.windows=256000
8262+
ch_denky.menu.UploadSpeed.256000.upload.speed=256000
8263+
ch_denky.menu.UploadSpeed.230400.windows.upload.speed=256000
8264+
ch_denky.menu.UploadSpeed.230400=230400
8265+
ch_denky.menu.UploadSpeed.230400.upload.speed=230400
8266+
ch_denky.menu.UploadSpeed.460800.linux=460800
8267+
ch_denky.menu.UploadSpeed.460800.macosx=460800
8268+
ch_denky.menu.UploadSpeed.460800.upload.speed=460800
8269+
ch_denky.menu.UploadSpeed.512000.windows=512000
8270+
ch_denky.menu.UploadSpeed.512000.upload.speed=512000
8271+
8272+
ch_denky.menu.PSRAM.enabled=Enabled
8273+
ch_denky.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw
8274+
ch_denky.menu.PSRAM.enabled.build.extra_libs=
8275+
ch_denky.menu.PSRAM.disabled=Disabled
8276+
ch_denky.menu.PSRAM.disabled.build.defines=
8277+
ch_denky.menu.PSRAM.disabled.build.extra_libs=
8278+
8279+
ch_denky.menu.DebugLevel.none=None
8280+
ch_denky.menu.DebugLevel.none.build.code_debug=0
8281+
ch_denky.menu.DebugLevel.error=Error
8282+
ch_denky.menu.DebugLevel.error.build.code_debug=1
8283+
ch_denky.menu.DebugLevel.warn=Warn
8284+
ch_denky.menu.DebugLevel.warn.build.code_debug=2
8285+
ch_denky.menu.DebugLevel.info=Info
8286+
ch_denky.menu.DebugLevel.info.build.code_debug=3
8287+
ch_denky.menu.DebugLevel.debug=Debug
8288+
ch_denky.menu.DebugLevel.debug.build.code_debug=4
8289+
ch_denky.menu.DebugLevel.verbose=Verbose
8290+
ch_denky.menu.DebugLevel.verbose.build.code_debug=5

variants/ch_denky/pins_arduino.h

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 TX = 1;
15+
static const uint8_t RX = 3;
16+
17+
static const uint8_t SDA = 21;
18+
static const uint8_t SCL = 22;
19+
20+
static const uint8_t SS = 5;
21+
static const uint8_t MOSI = 23;
22+
static const uint8_t MISO = 19;
23+
static const uint8_t SCK = 18;
24+
25+
static const uint8_t A0 = 36;
26+
static const uint8_t A3 = 39;
27+
static const uint8_t A4 = 32;
28+
static const uint8_t A5 = 33;
29+
static const uint8_t A6 = 34;
30+
static const uint8_t A7 = 35;
31+
static const uint8_t A10 = 4;
32+
static const uint8_t A11 = 0;
33+
static const uint8_t A12 = 2;
34+
static const uint8_t A13 = 15;
35+
static const uint8_t A14 = 13;
36+
static const uint8_t A15 = 12;
37+
static const uint8_t A16 = 14;
38+
static const uint8_t A17 = 27;
39+
static const uint8_t A18 = 25;
40+
static const uint8_t A19 = 26;
41+
42+
static const uint8_t T0 = 4;
43+
static const uint8_t T1 = 0;
44+
static const uint8_t T2 = 2;
45+
static const uint8_t T3 = 15;
46+
static const uint8_t T4 = 13;
47+
static const uint8_t T5 = 12;
48+
static const uint8_t T6 = 14;
49+
static const uint8_t T7 = 27;
50+
static const uint8_t T8 = 33;
51+
static const uint8_t T9 = 32;
52+
53+
static const uint8_t DAC1 = 25;
54+
static const uint8_t DAC2 = 26;
55+
56+
// Specific CH2i (Charles Hallard) Boards
57+
// 1st Revision Denky with ESP WROOM32 + LoRa RN2483 module
58+
#if defined (ARDUINO_DENKY_WROOM32)
59+
#define PUSH_BUTTON 0
60+
#define TIC_ENABLE_PIN 4
61+
#define TIC_RX_PIN 33
62+
#define LORA_TX_PIN 26
63+
#define LORA_RX_PIN 27
64+
#define LORA_RESET 14
65+
#define RGB_LED_PIN 25
66+
67+
// 2nd Utra Small version with ESP Pico-D4-V3-02
68+
#elif defined (ARDUINO_DENKY_PICOV3)
69+
// RGB Led Pins
70+
#define LED_RED_PIN 27
71+
#define LED_GRN_PIN 26
72+
#define LED_BLU_PIN 25
73+
74+
// Teleinfo RXD pin is connected to ESP32-PICO-V3-02 GPIO8
75+
#define TIC_RX_PIN 8
76+
#endif
77+
78+
79+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy