Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f447a4a72 | ||
|
|
8ace11e462 | ||
|
|
949dfe7266 | ||
|
|
f0d490aef9 | ||
|
|
bdedae981a |
@@ -562,8 +562,8 @@ env.Replace(
|
||||
# Calculate RBL header offset
|
||||
app_offs = int(env["FLASH_APP_OFFSET"], 16)
|
||||
app_size = int(board.get("build.bkrbl_size_app"), 16)
|
||||
rbl_offs = app_offs + to_offset(app_size) - 102
|
||||
env.Replace(FLASH_RBL_OFFSET=f"0x{rbl_offs:06X}")
|
||||
rbl_offs = to_offset(app_size) - 102
|
||||
env.Replace(FLASH_RBL_OFFSET=f"0x{app_offs + rbl_offs:06X}")
|
||||
|
||||
# Build all libraries
|
||||
env.BuildLibraries()
|
||||
|
||||
@@ -74,25 +74,25 @@ If your board isn't listed, use one of the **Generic** boards, depending on the
|
||||
- write a config file manually:
|
||||
```yaml title="yourdevice.yml"
|
||||
esphome:
|
||||
name: yourdevice
|
||||
name: yourdevice
|
||||
|
||||
libretuya:
|
||||
board: wr3 # THIS IS YOUR BOARD CODE
|
||||
framework:
|
||||
version: latest
|
||||
board: wr3 # THIS IS YOUR BOARD CODE
|
||||
framework:
|
||||
version: latest
|
||||
|
||||
logger:
|
||||
api:
|
||||
password: ""
|
||||
password: ""
|
||||
ota:
|
||||
password: ""
|
||||
password: ""
|
||||
|
||||
wifi:
|
||||
ssid: "YourWiFiSSID"
|
||||
password: "SecretPa$$w0rd"
|
||||
ap:
|
||||
ssid: "Yourdevice Fallback Hotspot"
|
||||
password: "Dv2hZMGZRUvy"
|
||||
ssid: "YourWiFiSSID"
|
||||
password: "SecretPa$$w0rd"
|
||||
ap:
|
||||
ssid: "Yourdevice Fallback Hotspot"
|
||||
password: "Dv2hZMGZRUvy"
|
||||
```
|
||||
|
||||
=== "GUI"
|
||||
@@ -141,8 +141,8 @@ libretuya:
|
||||
version: latest
|
||||
lt_config:
|
||||
LT_LOG_HEAP: 1
|
||||
LT_UART_DEFAULT_PORT: 2
|
||||
LT_UART_SILENT_ALL: 0
|
||||
LT_UART_DEFAULT_PORT: 2
|
||||
LT_UART_SILENT_ALL: 0
|
||||
```
|
||||
(this is only an example)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/kuba2k2/platformio-libretuya"
|
||||
},
|
||||
"version": "0.12.5",
|
||||
"version": "0.12.6",
|
||||
"frameworks": {
|
||||
"arduino": {
|
||||
"title": "Generic Arduino framework",
|
||||
@@ -42,15 +42,12 @@
|
||||
"framework-realtek-amb1": {
|
||||
"type": "framework",
|
||||
"optional": true,
|
||||
"version": "https://github.com/ambiot/amb1_sdk#750b0bc",
|
||||
"manifest": {
|
||||
"description": "SDK for Ameba1"
|
||||
},
|
||||
"version": "https://github.com/libretuya/framework-realtek-amb1#v2022.06.21",
|
||||
"toolchains": {
|
||||
"x86_64": "gccarmnoneeabi@~1.50201.0",
|
||||
"arm": "gccarmnoneeabi@~1.50401.211104",
|
||||
"arm64": "gccarmnoneeabi@~1.50401.210715"
|
||||
},
|
||||
"x86_64": "gccarmnoneeabi@~1.50201.0",
|
||||
"arm": "gccarmnoneeabi@~1.50401.211104",
|
||||
"arm64": "gccarmnoneeabi@~1.50401.210715"
|
||||
},
|
||||
"libraries": {
|
||||
"lwip": [
|
||||
"v2.1.3-amb1"
|
||||
@@ -60,28 +57,22 @@
|
||||
"framework-realtek-ambz2": {
|
||||
"type": "framework",
|
||||
"optional": true,
|
||||
"version": "https://github.com/ambiot/ambz2_sdk#f009272",
|
||||
"manifest": {
|
||||
"description": "SDK for AmebaZ2"
|
||||
},
|
||||
"version": "https://github.com/libretuya/framework-realtek-ambz2#v2022.11.17",
|
||||
"toolchains": {
|
||||
"x86_64": "gccarmnoneeabi@~1.100301.0",
|
||||
"arm": "gccarmnoneeabi@~1.100301.0",
|
||||
"arm64": "gccarmnoneeabi@~1.100301.0"
|
||||
}
|
||||
"x86_64": "gccarmnoneeabi@~1.100301.0",
|
||||
"arm": "gccarmnoneeabi@~1.100301.0",
|
||||
"arm64": "gccarmnoneeabi@~1.100301.0"
|
||||
}
|
||||
},
|
||||
"framework-beken-bdk": {
|
||||
"type": "framework",
|
||||
"optional": true,
|
||||
"version": "https://github.com/bekencorp/bdk_freertos#c3533e8",
|
||||
"manifest": {
|
||||
"description": "Beken Development Kit for FreeRTOS"
|
||||
"version": "https://github.com/libretuya/framework-beken-bdk#v2021.06.07",
|
||||
"toolchains": {
|
||||
"x86_64":"gccarmnoneeabi@~1.40804.0",
|
||||
"arm": "gccarmnoneeabi@~1.40803.0",
|
||||
"arm64": "gccarmnoneeabi@~1.40803.0"
|
||||
},
|
||||
"toolchains": {
|
||||
"x86_64":"gccarmnoneeabi@~1.40804.0",
|
||||
"arm": "gccarmnoneeabi@~1.40803.0",
|
||||
"arm64": "gccarmnoneeabi@~1.40803.0"
|
||||
},
|
||||
"libraries": {
|
||||
"lwip": [
|
||||
"v2.1.3-bdk"
|
||||
|
||||
@@ -19,6 +19,7 @@ from semantic_version import SimpleSpec, Version
|
||||
|
||||
LTCHIPTOOL_VERSION = "^3.0.0"
|
||||
|
||||
|
||||
# Install & import tools
|
||||
def check_ltchiptool(install: bool):
|
||||
if install:
|
||||
|
||||
Reference in New Issue
Block a user