pull/13204/merge
uPesy Electronics 2024-04-25 22:52:10 +02:00 zatwierdzone przez GitHub
commit 778ac4918b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
9 zmienionych plików z 166 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,26 @@
{
"deploy": [
"deploy.md"
],
"docs": "",
"features": [
"BLE",
"USB-C",
"WiFi"
],
"features_non_filterable": [
"Arduino UNO compatible",
"Grove Shield compatible"
],
"images": [
"upesy_edu_esp32.jpg"
],
"mcu": "esp32",
"product": "uPesy EDU ESP32",
"thumbnail": "",
"url": "https://www.upesy.com/products/esp32-arduino-uno-format",
"variants": {
"IDF3": "Compiled with IDF 3.x"
},
"vendor": "uPesy"
}

Wyświetl plik

@ -0,0 +1 @@
The following files are firmware for the uPesy EDU ESP32 board.

Wyświetl plik

@ -0,0 +1,46 @@
Program your board using the esptool.py program, found [here](https://github.com/espressif/esptool).
Your uPesy EDU ESP32 has an auto-reset circuit on it, so there is no need to put it into a
download mode first to erase or flash it.
If you are putting MicroPython on your board for the first time then you should
first erase the entire flash using:
### Linux
```bash
esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash
```
### Mac
```bash
esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART erase_flash
```
### Windows
Change (X) to whatever COM port is being used by the board
```bash
esptool --chip esp32 --port COM(X) erase_flash
```
Now download the version of the firmware you would like to install from the options below,
then use the following command to program the firmware starting at address 0x1000,
remembering to replace `upesy-edu-esp32-micropython-firmware-version.bin` with the name of the
firmware you just downloaded:
From then on program the firmware starting at address 0x1000:
### Linux
```bash
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash -z 0x1000 upesy-edu-esp32-micropython-firmware-version.bin
```
### Mac
```bash
esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 921600 write_flash -z 0x1000 upesy-edu-esp32-micropython-firmware-version.bin
```
### Windows
Change (X) to whatever COM port is being used by the board
```bash
esptool --chip esp32 --port COM(X) --baud 921600 write_flash -z 0x1000 upesy-edu-esp32-micropython-firmware-version.bin
```

Wyświetl plik

@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
freeze("modules")

Wyświetl plik

@ -0,0 +1,38 @@
# uPesy EDU ESP32 MicroPython Helper Library
# 2023 uPesy Electronics
from micropython import const
SCL = const(22)
SDA = const(21)
SS = const(5)
CS = const(5)
MOSI = const(23)
SCK = const(18)
MISO = const(19)
TX = const(1)
RX = const(3)
LED_BUILTIN = const(2)
D19 = const(22)
D18 = const(21)
D13 = const(18)
D12 = const(19)
D11 = const(23)
D10 = const(5)
D9 = const(13)
D8 = const(12)
D7 = const(14)
D6 = const(27)
D5 = const(16)
D4 = const(17)
D3 = const(25)
D2 = const(26)
D1 = const(1)
D0 = const(3)
A0 = const(33)
A1 = const(32)
A2 = const(35)
A3 = const(34)
A4 = const(36)
A5 = const(39)

Wyświetl plik

@ -0,0 +1,8 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/sdkconfig.240mhz
boards/UPESY_EDU_ESP32/sdkconfig.board
)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

Wyświetl plik

@ -0,0 +1,10 @@
#define MICROPY_HW_BOARD_NAME "uPesy EDU ESP32"
#define MICROPY_HW_MCU_NAME "ESP32"
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "UP_EDU_ESP32"
#define MICROPY_HW_I2C0_SCL (22)
#define MICROPY_HW_I2C0_SDA (21)
#define MICROPY_HW_SPI1_SCK (18)
#define MICROPY_HW_SPI1_MOSI (23)
#define MICROPY_HW_SPI1_MISO (19)

Wyświetl plik

@ -0,0 +1,32 @@
SCL,GPIO22
SDA,GPIO21
SS,GPIO5
CS,GPIO5
MOSI,GPIO23
SCK,GPIO18
MISO,GPIO19
TX,GPIO1
RX,GPIO3
LED_BUILTIN,GPIO2
D19,GPIO22
D18,GPIO21
D13,GPIO18
D12,GPIO19
D11,GPIO23
D10,GPIO5
D9,GPIO13
D8,GPIO12
D7,GPIO14
D6,GPIO27
D5,GPIO16
D4,GPIO17
D3,GPIO25
D2,GPIO26
D1,GPIO1
D0,GPIO3
A0,GPIO33
A1,GPIO32
A2,GPIO35
A3,GPIO34
A4,GPIO36
A5,GPIO39
1 SCL GPIO22
2 SDA GPIO21
3 SS GPIO5
4 CS GPIO5
5 MOSI GPIO23
6 SCK GPIO18
7 MISO GPIO19
8 TX GPIO1
9 RX GPIO3
10 LED_BUILTIN GPIO2
11 D19 GPIO22
12 D18 GPIO21
13 D13 GPIO18
14 D12 GPIO19
15 D11 GPIO23
16 D10 GPIO5
17 D9 GPIO13
18 D8 GPIO12
19 D7 GPIO14
20 D6 GPIO27
21 D5 GPIO16
22 D4 GPIO17
23 D3 GPIO25
24 D2 GPIO26
25 D1 GPIO1
26 D0 GPIO3
27 A0 GPIO33
28 A1 GPIO32
29 A2 GPIO35
30 A3 GPIO34
31 A4 GPIO36
32 A5 GPIO39

Wyświetl plik

@ -0,0 +1,3 @@
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_LWIP_LOCAL_HOSTNAME="UP_EDU_ESP32"