implemented SY6970 lipo charger

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Manuel
2026-05-17 22:21:34 +02:00
co-authored by Copilot
parent f6f5bfab80
commit f1be5c4ff3
6 changed files with 131 additions and 22 deletions
+12 -9
View File
@@ -28,14 +28,16 @@ build_flags = ${esp32s3_base.build_flags}
-D HAS_SDCARD
lib_deps = ${esp32s3_base.lib_deps}
# renovate: datasource=custom.pio depName=LovyanGFX packageName=lovyan03/library/LovyanGFX
lovyan03/LovyanGFX@1.2.19
# renovate: datasource=custom.pio depName=ESP8266Audio packageName=earlephilhower/library/ESP8266Audio
earlephilhower/ESP8266Audio@1.9.9
# renovate: datasource=custom.pio depName=ESP8266SAM packageName=earlephilhower/library/ESP8266SAM
earlephilhower/ESP8266SAM@1.1.0
# renovate: datasource=custom.pio depName=SensorLib packageName=lewisxhe/library/SensorLib
lewisxhe/SensorLib@0.3.4
# renovate: datasource=github-tags depName=LovyanGFX packageName=https://github.com/lovyan03/LovyanGFX
https://github.com/lovyan03/LovyanGFX/archive/refs/tags/1.2.21.zip
# renovate: datasource=git-refs depName=ESP8266Audio packageName=https://github.com/meshtastic/ESP8266Audio gitBranch=meshtastic-2.0.0-dacfix
https://github.com/meshtastic/ESP8266Audio/archive/343024632ee78d6216907b2353fc943a62422d80.zip
# renovate: datasource=github-tags depName=ESP8266SAM packageName=https://github.com/earlephilhower/ESP8266SAM
https://github.com/earlephilhower/ESP8266SAM/archive/refs/tags/1.1.0.zip
# renovate: datasource=github-tags depName=SensorLib packageName=https://github.com/lewisxhe/SensorLib
https://github.com/lewisxhe/SensorLib/archive/refs/tags/v0.4.1.zip
# renovate: datasource=github-tags depName=Arduino_DriveBus packageName=https://github.com/yuttapichai/Arduino_DriveBus
https://github.com/yuttapichai/Arduino_DriveBus/archive/refs/tags/1.1.5.zip
[env:tdisplay-s3-pro-tft]
board_level = extra
@@ -47,6 +49,7 @@ build_flags =
-D INPUTDRIVER_ENCODER_LEFT=12
-D INPUTDRIVER_ENCODER_RIGHT=16
-D INPUTDRIVER_ENCODER_BTN=0
-D INDEV_EVENT_TRIGGER=LV_EVENT_CLICKED
-D HAS_SCREEN=1
-D HAS_TFT=1
-D USE_I2S_BUZZER
@@ -68,7 +71,7 @@ build_flags =
-D DISPLAY_SIZE=480x222 ; landscape mode
-D DISPLAY_SET_RESOLUTION
-D LGFX_DRIVER=LGFX_TDISPLAY_S3PRO
-D GFX_DRIVER_INC=\"graphics/LGFX/LGFX_TDISPLAY_S3PRO.h\"
-D GFX_DRIVER_INC=\"graphics/LGFX/LGFX_T_DISPLAY_S3_PRO.h\"
; -D LVGL_DRIVER=LVGL_TDISPLAY_S3PRO
; -D LV_USE_ST7796=1
-D VIEW_480x222
+2 -1
View File
@@ -31,6 +31,7 @@
#define USE_POWERSAVE
#define SLEEP_TIME 120
#define LED_POWER 38 // green
#define PIN_POWER_EN 42
// GNSS
@@ -40,7 +41,7 @@
#define PCF85063_RTC 0x51
// SY6970 battery charger
#define SY6970_ADDR 0x6A
#define HAS_SY6970
#define SY6970_INT 21
// MAX98357A PCM amplifier