Skip to content

Commit 154931e

Browse files
authored
Create pybstick26-esp32c3 port.
Add files for pybstick26-esp32c3 in the right forlder for this last commit.
1 parent 25eaa91 commit 154931e

5 files changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy_nativeusb.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"RGB LED",
13+
"WiFi"
14+
],
15+
"images": [
16+
"https://github.com/mchobby/pyboard-driver/blob/master/PYBStick-ESP32-C3/docs/_static/GAR-PYBSTICK26-C3-mUSB-00.JPG"
17+
],
18+
"mcu": "esp32c3",
19+
"product": "PYBSTICK26_ESP32C3",
20+
"thumbnail": "",
21+
"url": "https://shop.mchobby.be/fr/pybstick/2505-pybstick26-esp32-c3-micropython-et-arduino-3232100025059.html",
22+
"vendor": "Garatronic"
23+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# PYBSTICK26-ESP32C3 MicroPython Helper Library
2+
# V1.0 by fpie for GARATRONIC (2025)
3+
#
4+
5+
from micropython import const
6+
from machine import Pin
7+
8+
# Pin Assignments
9+
10+
# SPI
11+
SPI_MOSI = const(7)
12+
SPI_MISO = const(2)
13+
SPI_CLK = const(6)
14+
15+
# I2C
16+
I2C_SDA = const(0)
17+
I2C_SCL = const(1)
18+
19+
# LED
20+
LED = const(8)
21+
22+
# BUTTONS
23+
BUTTON_A = const(9)
24+
BUTTON_B = const(5)
25+
26+
# Built-in peripherals
27+
28+
led = Pin(LED, Pin.OUT, value=0)
29+
button = Pin(BUTTON_B, Pin.IN, Pin.PULL_UP)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
set(IDF_TARGET esp32c3)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
boards/sdkconfig.ble
6+
boards/GARATRONIC_PYBSTICK26_ESP32C3/sdkconfig.board
7+
)
8+
9+
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#define MICROPY_HW_BOARD_NAME "PYBSTICK26_ESP32C3"
2+
#define MICROPY_HW_MCU_NAME "ESP32C3"
3+
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "pybstick26_esp32c3"
4+
5+
#define MICROPY_HW_I2C0_SCL (1)
6+
#define MICROPY_HW_I2C0_SDA (0)
7+
8+
#define MICROPY_HW_SPI1_MOSI (7)
9+
#define MICROPY_HW_SPI1_MISO (2)
10+
#define MICROPY_HW_SPI1_SCK (6)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_ESP32C3_REV_MIN_3=y
2+
3+
# Workaround for https://github.com/espressif/esp-idf/issues/14456
4+
CONFIG_ESP_SYSTEM_HW_STACK_GUARD=n

0 commit comments

Comments
 (0)