Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 Wemos R1 D32 board #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions boards/esp32-wemos-d1-r32/board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
/* The name of the board */
"name": "ESP32 Wemos D1 R32",

/* Board version. Increment it whenever you make changes. */
"version": 1,

/* One-liner description of the board, it's capabilities, etc. */
"description": "A ESP32 board with Arduino Uno format",

/* The name of the person who created this file */
"author": "Leopoldo Armesto",

/* Microcontroller name. Valid values: atmega328p, atmega2560, attiny85, rp2040, esp32 */
"mcu": "esp32",

/* Fully Qualified Board Name (FQBN) for the Arduino CLI */
"fqbn": "esp32:esp32:d32",

/* Width of the board graphics, in mm. Must match the width defined in board.svg */
"width": 56.276,

/* Height of the board graphics, in mm. Must match the height defined in board.svg */
"height": 42.671,

/* The pins available on the board.
"x"/"y" positions are in mm, and are relative to the top-left corner of the board.
"target" is either:
- an MCU pin name
- "GND" for ground
- "power(n)" for power supply pins, where n is the voltage. e.g. "power(3.3)"
*/
"pins": {
"IO12": { "x": 34.328, "y": 1.64, "target": "GPIO12" },
"IO13": { "x": 32.296, "y": 1.64, "target": "GPIO13" },
"IO5": { "x": 30.264, "y": 1.64, "target": "GPIO5" },
"IO23": { "x": 28.232, "y": 1.64, "target": "GPIO23" },
"IO19": { "x": 26.2, "y": 1.64, "target": "GPIO19" },
"IO18": { "x": 24.168, "y": 1.64, "target": "GPIO18" },
"GND.1": { "x": 22.136, "y": 1.64, "target": "GND" },
"RESET.1": { "x": 20.104, "y": 1.64, "target": "CHIP_PU" },
"SDA": { "x": 18.072, "y": 1.64, "target": "GPIO21" },
"SCL": { "x": 16.04, "y": 1.64, "target": "GPIO22" },
"RX0": { "x": 51.82, "y": 1.64, "target": "GPIO3" },
"TX0": { "x": 49.788, "y": 1.64, "target": "GPIO1" },
"IO26": { "x": 47.756, "y": 1.64, "target": "GPI26" },
"IO25": { "x": 45.724, "y": 1.64, "target": "GPIO25" },
"IO7": { "x": 43.692, "y": 1.64, "target": "GPIO7" },
"IO16": { "x": 41.66, "y": 1.64, "target": "GPIO16" },
"IO17": { "x": 39.628, "y": 1.64, "target": "GPIO17" },
"IO14": { "x": 37.596, "y": 1.64, "target": "GPIO14" },
"VIN": { "x": 37.596, "y": 40.247, "target": "power(5)" },
"GND.2": { "x": 37.596, "y": 40.247, "target": "GND" },
"GND.3": { "x": 37.596, "y": 40.247, "target": "GND" },
"5V.1": { "x": 37.596, "y": 40.247, "target": "power(5)" },
"3V3": { "x": 37.596, "y": 40.247, "target": "power(3.3)" },
"RESET.2": { "x": 27.436, "y": 40.247, "target": "CHIP_PU" },
"5V.2": { "x": 37.596, "y": 40.247, "target": "power(5)" },
"IO0": { "x": 37.596, "y": 40.247, "target": "GPIO0" },
"IO39": { "x": 51.82, "y": 40.247, "target": "GPIO39" },
"IO36": { "x": 49.788, "y": 40.247, "target": "GPI36" },
"IO34": { "x": 47.756, "y": 40.247, "target": "GPI34" },
"IO38": { "x": 45.724, "y": 40.247, "target": "GPIO38" },
"IO4": { "x": 43.692, "y": 40.247, "target": "GPIO4" },
"IO2": { "x": 41.66, "y": 40.247, "target": "GPIO2" }
},

/* On-board LED definitions. These only draw the light of the LED when it's on.
You should draw the body of the LED in your .svg file. */
"leds": [
{
/* A unique identifier of the LED on the board */
"id": "power",

/* x/y positions of the LED center, in mm. Relative to the top-left corner of the board */
"x": 16.936,
"y": 17.836,

/* Supported LED types: 0603, ws2812, apa102, rgb */
"type": "0603",

/* LED color - only relevant for 0603 LEDs */
"color": "red",

/* The PINs object defines how the LED pins connect to the MCU pins. The LED pin names depend on the type of the LED:
- 0603 - "A" for Anode, "C" for cathode
- ws2812 - "DI" for data input
- apa102 - "DI" for data input, "CI" for clock output
- rgb - "R" for red input, "G" for green input, "B" for blue input, "C" for cathode, "A" for anode (define either A or C, not both)
*/
"pins": {
"A": "3V3", // This is a power LED, so it's always on
"C": "GND.1"
}
},
{
"id": "txled",
"x": 16.919,
"y": 21.575,
"type": "0603",
"color": "green",
"pins": {
"A": "TX0", // The LED connects to GPIO pin TX0
"C": "GND.1"
}
},
{
"id": "rxled",
"x": 16.92,
"y": 23.404,
"type": "0603",
"color": "green",
"pins": {
"A": "RX0", // The LED connects to GPIO pin RX0
"C": "GND.1"
}
}
]
}
Loading