Skip to content

Commit e65cb26

Browse files
committed
Add new board, remove OTA and add custom multi-filament animations
1 parent 0c0cda2 commit e65cb26

22 files changed

+29316
-794
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.pio
2+
.vscode/.browse.c_cpp.db*
3+
.vscode/c_cpp_properties.json
4+
.vscode/launch.json
5+
.vscode/ipch

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"platformio.platformio-ide"
6+
],
7+
"unwantedRecommendations": [
8+
"ms-vscode.cpptools-extension-pack"
9+
]
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x300000,
5+
app1, app, ota_1, 0x310000,0x300000,
6+
ffat, data, fat, 0x610000,0x9E0000,
7+
coredump, data, coredump,0xFF0000,0x10000,
8+
# to create/use ffat, see https://github.com/marcmerlin/esp32_fatfsimage
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32s3_out.ld",
5+
"memory_type": "qio_qspi",
6+
"partitions": "boards/partitions_app3m_fat9M_16MB.csv"
7+
},
8+
"core": "esp32",
9+
"extra_flags": [
10+
"-DARDUINO_WAVESHARE_ESP32S3_TOUCH_LCD_128",
11+
"-DARDUINO_USB_MODE=1",
12+
"-DARDUINO_RUNNING_CORE=1",
13+
"-DARDUINO_EVENT_RUNNING_CORE=1",
14+
"-DBOARD_HAS_PSRAM",
15+
"-mfix-esp32-psram-cache-issue"
16+
],
17+
"f_cpu": "240000000L",
18+
"f_flash": "80000000L",
19+
"flash_mode": "qio",
20+
"psram_type": "qspi",
21+
"hwids": [
22+
[
23+
"0x1a86",
24+
"0x55d3"
25+
]
26+
],
27+
"mcu": "esp32s3",
28+
"variant": "waveshare_esp32s3_touch_lcd_128"
29+
},
30+
"connectivity": [
31+
"bluetooth",
32+
"wifi"
33+
],
34+
"debug": {
35+
"default_tool": "esp-builtin",
36+
"onboard_tools": [
37+
"esp-builtin"
38+
],
39+
"openocd_target": "esp32s3.cfg"
40+
},
41+
"frameworks": [
42+
"arduino",
43+
"espidf"
44+
],
45+
"name": "Waveshare ESP32-S3-Touch-LCD-1.28 (16 MB QD, 2MB PSRAM)",
46+
"upload": {
47+
"flash_size": "16MB",
48+
"maximum_ram_size": 327680,
49+
"maximum_size": 16777216,
50+
"require_upload_port": true,
51+
"speed": 921600
52+
},
53+
"url": "https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.28",
54+
"vendor": "Waveshare"
55+
}

include/pins_arduino.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define USB_VID 0x1A86
7+
#define USB_PID 0x55D3
8+
#define USB_MANUFACTURER "Waveshare"
9+
#define USB_PRODUCT "ESP32-S3 Touch LCD 1.28"
10+
#define USB_SERIAL "" // Empty string for MAC address
11+
12+
#define LCD_BACKLIGHT 2
13+
#define LCD_DC 8
14+
#define LCD_RST 14
15+
16+
#define TP_INT 5
17+
#define TP_RST 13
18+
19+
#define IMU_INT1 4
20+
#define IMU_INT2 3
21+
22+
static const uint8_t TX = 43;
23+
static const uint8_t RX = 44;
24+
#define TX1 TX
25+
#define RX1 RX
26+
27+
static const uint8_t SCL = 7;
28+
static const uint8_t SDA = 6;
29+
30+
static const uint8_t SS = 9;
31+
static const uint8_t MOSI = 11;
32+
static const uint8_t MISO = 12;
33+
static const uint8_t SCK = 10;
34+
35+
static const uint8_t A0 = 1; // Connected through voltage divider to battery pin
36+
37+
#endif /* Pins_Arduino_h */

partitions_app3m_fat9M_16MB.csv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x300000,
5+
app1, app, ota_1, 0x310000,0x300000,
6+
ffat, data, fat, 0x610000,0x9E0000,
7+
coredump, data, coredump,0xFF0000,0x10000,
8+
# to create/use ffat, see https://github.com/marcmerlin/esp32_fatfsimage

platformio.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,30 @@ platform = espressif32@6.4.0
4747
board = esp32s3r8
4848
build_flags = ${env.build_flags}
4949
-DKNOMIV2
50+
-D USE_HSPI_PORT=1
5051

5152
[env:knomiv1]
5253
platform = espressif32@6.4.0
5354
board = esp32r8
5455
build_flags = ${env.build_flags}
5556
-DKNOMIV1
57+
58+
[env:waveshare_esp32s3_touch_lcd_128]
59+
platform = espressif32@6.4.0
60+
board = waveshare_esp32s3_touch_lcd_128
61+
board_build.partitions=partitions_app3m_fat9M_16MB.csv
62+
framework = arduino
63+
monitor_speed=115200
64+
lib_deps=
65+
LIS2DW12=https://github.com/stm32duino/LIS2DW12/archive/refs/tags/2.1.0.zip
66+
Adafruit_SHT4X=https://github.com/adafruit/Adafruit_SHT4X/archive/refs/tags/1.0.3.zip
67+
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.3.7.zip
68+
bblanchon/ArduinoJson@^6.19.4
69+
TFT_eSPI=https://github.com/Bodmer/TFT_eSPI/archive/refs/tags/v2.5.0.zip
70+
; https://github.com/me-no-dev/ESPAsyncWebServer.git
71+
; https://github.com/ayushsharma82/AsyncElegantOTA.git
72+
; ottowinter/ESPAsyncWebServer-esphome @ ^3.0.0
73+
build_flags = ${env.build_flags}
74+
-DWAVESHARE_S3_TOUCH_128
75+
-Ivariants/waveshare_esp32s3_touch_lcd_128
76+
-D USE_HSPI_PORT=1

0 commit comments

Comments
 (0)