diff --git a/.github/workflows/Tasmota_build_development.yml.off b/.github/workflows/Tasmota_build_development.yml.off
deleted file mode 100644
index dd86c2e37..000000000
--- a/.github/workflows/Tasmota_build_development.yml.off
+++ /dev/null
@@ -1,1385 +0,0 @@
-name: Build_firmware_development
-
-on:
- workflow_dispatch: # Manually start a workflow
- push:
- branches: development
- paths-ignore:
- - '.github/**' # Ignore changes towards the .github directory
- - '**.md' # Do no build if *.md files changes
-
-jobs:
-
- tasmota:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-minimal:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-minimal
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-lite:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-lite
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-knx:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-knx
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-sensors:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-sensors
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-display:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-display
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-ir:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-ir
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-zbbridge:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-zbbridge
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-zigbee:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-zigbee
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-AF:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-AF
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-BG:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-BG
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-BR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-BR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-CN:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-CN
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-CZ:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-CZ
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-DE:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-DE
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-ES:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-ES
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-FR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-FR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-FY:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-FY
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-GR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-GR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-HE:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-HE
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-HU:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-HU
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-IT:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-IT
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-KO:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-KO
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-NL:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-NL
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-PL:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-PL
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-PT:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-PT
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-RO:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-RO
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-RU:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-RU
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-SE:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-SE
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-SK:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-SK
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-TR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-TR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-TW:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-TW
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-UK:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-UK
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota-VN:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota-VN
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32solo1:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32solo1
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-webcam:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-webcam
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-odroidgo:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-odroidgo
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-core2:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-core2
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-bluetooth:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-bluetooth
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-display:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-display
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-lvgl:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-lvgl
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-ir:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-ir
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
- tasmota32c3:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32c3
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
- tasmota32-AF:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-AF
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-BG:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-BG
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-BR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-BR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-CN:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-CN
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-CZ:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-CZ
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-DE:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-DE
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-ES:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-ES
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-FR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-FR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-FY:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-FY
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-GR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-GR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-HE:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-HE
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-HU:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-HU
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-IT:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-IT
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-KO:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-KO
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-NL:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-NL
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-PL:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-PL
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-PT:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-PT
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-RO:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-RO
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-RU:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-RU
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-SE:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-SE
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-SK:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-SK
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-TR:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-TR
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-TW:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-TW
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-UK:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-UK
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- tasmota32-VN:
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- - name: Install dependencies
- run: |
- pip install -U platformio
- - name: Run PlatformIO
- run: |
- platformio run -e tasmota32-VN
- - uses: actions/upload-artifact@v2
- with:
- name: firmware
- path: ./build_output
-
-
- Upload:
- needs: [tasmota-VN, tasmota32-VN, tasmota32-TW, tasmota32-TR]
- runs-on: ubuntu-latest
- continue-on-error: true
- steps:
- - uses: actions/download-artifact@v2
- with:
- name: firmware
- path: ./mv_firmware
- - name: Display structure of downloaded files
- run: ls -R
- working-directory: ./mv_firmware
- - name: Move firmware files in sub-folders
- run: |
- mkdir -p ./firmware/tasmota/languages
- mkdir -p ./firmware/tasmota32/languages
- mkdir -p ./firmware/map
- [ ! -f ./mv_firmware/map/* ] || mv ./mv_firmware/map/* ./firmware/map/
- [ ! -f ./mv_firmware/firmware/tasmota.* ] || mv ./mv_firmware/firmware/tasmota.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-sensors.* ] || mv ./mv_firmware/firmware/tasmota-sensors.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-minimal.* ] || mv ./mv_firmware/firmware/tasmota-minimal.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-lite.* ] || mv ./mv_firmware/firmware/tasmota-lite.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-ir*.* ] || mv ./mv_firmware/firmware/tasmota-ir*.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-display.* ] || mv ./mv_firmware/firmware/tasmota-display.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-knx.* ] || mv ./mv_firmware/firmware/tasmota-knx.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-zbbridge.* ] || mv ./mv_firmware/firmware/tasmota-zbbridge.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota-zigbee.* ] || mv ./mv_firmware/firmware/tasmota-zigbee.* ./firmware/tasmota/
- [ ! -f ./mv_firmware/firmware/tasmota32.* ] || mv ./mv_firmware/firmware/tasmota32.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32solo1*.* ] || mv ./mv_firmware/firmware/tasmota32solo1*.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-ir*.* ] || mv ./mv_firmware/firmware/tasmota32-ir*.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-display.* ] || mv ./mv_firmware/firmware/tasmota32-display.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-lvgl.* ] || mv ./mv_firmware/firmware/tasmota32-lvgl.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-web*.* ] || mv ./mv_firmware/firmware/tasmota32-web*.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-odroidgo.* ] || mv ./mv_firmware/firmware/tasmota32-odroidgo.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-core2.* ] || mv ./mv_firmware/firmware/tasmota32-core2.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32-bluetooth.* ] || mv ./mv_firmware/firmware/tasmota32-bluetooth.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32c3*.* ] || mv ./mv_firmware/firmware/tasmota32c3*.* ./firmware/tasmota32/
- [ ! -f ./mv_firmware/firmware/tasmota32* ] || mv ./mv_firmware/firmware/tasmota32* ./firmware/tasmota32/languages/
- [ ! -f ./mv_firmware/firmware/* ] || mv ./mv_firmware/firmware/* ./firmware/tasmota/languages/
- - name: Display files to transfer
- run: ls -R ./*
- - name: Push Firmware files to https://github.com/arendst/Tasmota-firmware
- uses: Jason2866/copy_file_to_another_repo_action@main
- env:
- API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
- with:
- source_file: 'firmware'
- destination_repo: 'arendst/Tasmota-firmware'
- user_email: 'github-actions@github.com'
- user_name: 'github-actions'
- - name: Creat trigger.txt
- run: |
- echo ${GITHUB_SHA} &> trigger.txt
- echo "$( trigger.txt
echo "$(
}
+#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 0)
+#define NEOPIXELBUS_RMT_INT_FLAGS (ESP_INTR_FLAG_LOWMED)
+#else
+#define NEOPIXELBUS_RMT_INT_FLAGS (ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_LEVEL1)
+#endif
+
class NeoEsp32RmtSpeed
{
public:
@@ -554,7 +560,7 @@ public:
config.clk_div = T_SPEED::RmtClockDivider;
ESP_ERROR_CHECK(rmt_config(&config));
- ESP_ERROR_CHECK(rmt_driver_install(_channel.RmtChannelNumber, 0, ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_LEVEL1));
+ ESP_ERROR_CHECK(rmt_driver_install(_channel.RmtChannelNumber, 0, NEOPIXELBUS_RMT_INT_FLAGS));
ESP_ERROR_CHECK(rmt_translator_init(_channel.RmtChannelNumber, T_SPEED::Translate));
}
diff --git a/lib/lib_display/UDisplay/uDisplay.cpp b/lib/lib_display/UDisplay/uDisplay.cpp
index 6f48d5796..8414795e0 100755
--- a/lib/lib_display/UDisplay/uDisplay.cpp
+++ b/lib/lib_display/UDisplay/uDisplay.cpp
@@ -76,6 +76,9 @@ uDisplay::uDisplay(char *lp) : Renderer(800, 600) {
uint8_t section = 0;
dsp_ncmds = 0;
lut_num = 0;
+ lvgl_param.data = 0;
+ lvgl_param.fluslines = 40;
+
for (uint32_t cnt = 0; cnt < 5; cnt++) {
lut_cnt[cnt] = 0;
lut_cmd[cnt] = 0xff;
diff --git a/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp b/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp
index 70c705e6e..f41c8df59 100644
--- a/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp
+++ b/lib/lib_ssl/tls_mini/src/StackThunk_light.cpp
@@ -43,10 +43,8 @@ uint32_t stack_thunk_light_refcnt = 0;
//#define _stackSize (5600/4)
#if defined(USE_MQTT_AWS_IOT) || defined(USE_MQTT_AWS_IOT_LIGHT) || defined(USE_MQTT_AZURE_IOT)
#define _stackSize (5300/4) // using a light version of bearssl we can save 300 bytes
-#elif defined(USE_MQTT_TLS_FORCE_EC_CIPHER) || defined(USE_4K_RSA)
- #define _stackSize (4800/4) // no private key, we can reduce a little, max observed 4300
#else
- #define _stackSize (3800/4) // using a light version of bearssl we can save 2k
+ #define _stackSize (4800/4) // no private key, we can reduce a little, max observed 4300
#endif
#define _stackPaint 0xdeadbeef
diff --git a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp
index 6f66915f3..7be46adf0 100755
--- a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp
+++ b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp
@@ -191,11 +191,7 @@ void WiFiClientSecure_light::_clear() {
_last_error = 0;
_recvapp_buf = nullptr;
_recvapp_len = 0;
-#ifdef USE_MQTT_TLS_CA_CERT
- _insecure = false; // insecure (fingerprint) mode is only enabled if setPubKeyFingerprint() is called
-#else
- _insecure = true; // force insecure if CA validation is not enabled
-#endif
+ _insecure = false; // set to true when calling setPubKeyFingerprint()
_fingerprint_any = true; // by default accept all fingerprints
_fingerprint1 = nullptr;
_fingerprint2 = nullptr;
@@ -920,11 +916,7 @@ extern "C" {
// We limit to a single cipher to reduce footprint
// we reference it, don't put in PROGMEM
static const uint16_t suites[] = {
-#ifdef USE_MQTT_TLS_FORCE_EC_CIPHER
BR_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
-#else
- BR_TLS_RSA_WITH_AES_128_GCM_SHA256
-#endif
};
// Default initializion for our SSL clients
@@ -947,10 +939,8 @@ extern "C" {
br_ssl_engine_set_aes_ctr(&cc->eng, &br_aes_small_ctr_vtable);
br_ssl_engine_set_ghash(&cc->eng, &br_ghash_ctmul32);
-#ifdef USE_MQTT_TLS_FORCE_EC_CIPHER
// we support only P256 EC curve for AWS IoT, no EC curve for Letsencrypt unless forced
br_ssl_engine_set_ec(&cc->eng, &br_ec_p256_m15); // TODO
-#endif
}
}
@@ -958,9 +948,8 @@ extern "C" {
// Returns if the SSL handshake succeeded.
bool WiFiClientSecure_light::_connectSSL(const char* hostName) {
// Validation context, either full CA validation or checking only fingerprints
-#ifdef USE_MQTT_TLS_CA_CERT
+
br_x509_minimal_context *x509_minimal = nullptr;
-#endif
br_x509_pubkeyfingerprint_context *x509_insecure = nullptr;
LOG_HEAP_SIZE("_connectSSL.start");
@@ -998,7 +987,6 @@ bool WiFiClientSecure_light::_connectSSL(const char* hostName) {
br_x509_pubkeyfingerprint_init(x509_insecure, _fingerprint1, _fingerprint2, _recv_fingerprint, _fingerprint_any);
br_ssl_engine_set_x509(_eng, &x509_insecure->vtable);
- #ifdef USE_MQTT_TLS_CA_CERT
if (!_insecure) {
x509_minimal = (br_x509_minimal_context*) malloc(sizeof(br_x509_minimal_context));
if (!x509_minimal) break;
@@ -1011,7 +999,6 @@ bool WiFiClientSecure_light::_connectSSL(const char* hostName) {
if (cfg_time > now) { now = cfg_time; }
br_x509_minimal_set_time(x509_minimal, now / 86400 + 719528, now % 86400);
}
- #endif
LOG_HEAP_SIZE("_connectSSL after DecoderContext allocation");
// ============================================================
@@ -1050,9 +1037,7 @@ bool WiFiClientSecure_light::_connectSSL(const char* hostName) {
LOG_HEAP_SIZE("_connectSSL.end, freeing StackThunk");
#endif // ESP8266
- #ifdef USE_MQTT_TLS_CA_CERT
- free(x509_minimal);
- #endif
+ free(x509_minimal); // safe to call if nullptr
free(x509_insecure);
LOG_HEAP_SIZE("_connectSSL after release of Priv Key");
return ret;
@@ -1065,9 +1050,7 @@ bool WiFiClientSecure_light::_connectSSL(const char* hostName) {
#ifdef ESP8266
stack_thunk_light_del_ref();
#endif
-#ifdef USE_MQTT_TLS_CA_CERT
- free(x509_minimal);
-#endif
+ free(x509_minimal); // safe to call if nullptr
free(x509_insecure);
LOG_HEAP_SIZE("_connectSSL clean_on_error");
return false;
diff --git a/lib/libesp32/Berry/Makefile b/lib/libesp32/Berry/Makefile
index 531661bc2..f9d61125d 100644
--- a/lib/libesp32/Berry/Makefile
+++ b/lib/libesp32/Berry/Makefile
@@ -10,6 +10,8 @@ SRCPATH = src default
GENERATE = generate
CONFIG = default/berry_conf.h
COC = tools/coc/coc
+PY = python3
+PYCOC = tools/pycoc/main.py
CONST_TAB = $(GENERATE)/be_const_strtab.h
MAKE_COC = $(MAKE) -C tools/coc
@@ -18,6 +20,7 @@ ifeq ($(OS), Windows_NT) # Windows
LFLAGS += -Wl,--out-implib,berry.lib # export symbols lib for dll linked
TARGET := $(TARGET).exe
COC := $(COC).exe
+ PY := $(PY).exe
else
CFLAGS += -DUSE_READLINE_LIB
LIBS += -lreadline -ldl
@@ -92,7 +95,7 @@ uninstall:
prebuild: $(COC) $(GENERATE)
$(MSG) [Prebuild] generate resources
- $(Q) $(COC) -o $(GENERATE) $(SRCPATH) -c $(CONFIG)
+ $(Q) $(PY) $(PYCOC) -o $(GENERATE) $(SRCPATH) -c $(CONFIG)
$(MSG) done
clean:
diff --git a/lib/libesp32/Berry/default/be_animate_lib.c b/lib/libesp32/Berry/default/be_animate_lib.c
index db6052653..398f87b66 100644
--- a/lib/libesp32/Berry/default/be_animate_lib.c
+++ b/lib/libesp32/Berry/default/be_animate_lib.c
@@ -20,17 +20,17 @@ be_local_closure(Animate_rotate_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 8]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("closure", 1548407746, 7),
- /* K2 */ be_nested_string("code", -114201356, 4),
- /* K3 */ be_nested_string("push", -2022703139, 4),
- /* K4 */ be_nested_string("animate", -409180496, 7),
- /* K5 */ be_nested_string("ins_ramp", 1068049360, 8),
- /* K6 */ be_nested_string("ins_goto", 1342843963, 8),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(closure),
+ /* K2 */ be_nested_str(code),
+ /* K3 */ be_nested_str(push),
+ /* K4 */ be_nested_str(animate),
+ /* K5 */ be_nested_str(ins_ramp),
+ /* K6 */ be_nested_str(ins_goto),
/* K7 */ be_const_int(0),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[25]) { /* code */
0x60140003, // 0000 GETGBL R5 G3
0x5C180000, // 0001 MOVE R6 R0
@@ -72,9 +72,9 @@ be_local_class(Animate_rotate,
&be_class_Animate_engine,
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(Animate_rotate_init_closure) },
+ { be_const_key(init, -1), be_const_closure(Animate_rotate_init_closure) },
})),
- (be_nested_const_str("Animate_rotate", -787188142, 14))
+ be_str_literal("Animate_rotate")
);
/********************************************************************
@@ -91,15 +91,15 @@ be_local_closure(Animate_from_to_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("closure", 1548407746, 7),
- /* K2 */ be_nested_string("code", -114201356, 4),
- /* K3 */ be_nested_string("push", -2022703139, 4),
- /* K4 */ be_nested_string("animate", -409180496, 7),
- /* K5 */ be_nested_string("ins_ramp", 1068049360, 8),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(closure),
+ /* K2 */ be_nested_str(code),
+ /* K3 */ be_nested_str(push),
+ /* K4 */ be_nested_str(animate),
+ /* K5 */ be_nested_str(ins_ramp),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[16]) { /* code */
0x60140003, // 0000 GETGBL R5 G3
0x5C180000, // 0001 MOVE R6 R0
@@ -132,9 +132,9 @@ be_local_class(Animate_from_to,
&be_class_Animate_engine,
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(Animate_from_to_init_closure) },
+ { be_const_key(init, -1), be_const_closure(Animate_from_to_init_closure) },
})),
- (be_nested_const_str("Animate_from_to", 1699049867, 15))
+ be_str_literal("Animate_from_to")
);
/********************************************************************
@@ -151,18 +151,18 @@ be_local_closure(Animate_back_forth_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("closure", 1548407746, 7),
- /* K2 */ be_nested_string("code", -114201356, 4),
- /* K3 */ be_nested_string("push", -2022703139, 4),
- /* K4 */ be_nested_string("animate", -409180496, 7),
- /* K5 */ be_nested_string("ins_ramp", 1068049360, 8),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(closure),
+ /* K2 */ be_nested_str(code),
+ /* K3 */ be_nested_str(push),
+ /* K4 */ be_nested_str(animate),
+ /* K5 */ be_nested_str(ins_ramp),
/* K6 */ be_const_int(2),
- /* K7 */ be_nested_string("ins_goto", 1342843963, 8),
+ /* K7 */ be_nested_str(ins_goto),
/* K8 */ be_const_int(0),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[34]) { /* code */
0x60140003, // 0000 GETGBL R5 G3
0x5C180000, // 0001 MOVE R6 R0
@@ -213,9 +213,9 @@ be_local_class(Animate_back_forth,
&be_class_Animate_engine,
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(Animate_back_forth_init_closure) },
+ { be_const_key(init, -1), be_const_closure(Animate_back_forth_init_closure) },
})),
- (be_nested_const_str("Animate_back_forth", 5319526, 18))
+ be_str_literal("Animate_back_forth")
);
/********************************************************************
@@ -232,12 +232,12 @@ be_local_closure(Animate_ins_goto_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("pc_rel", 991921176, 6),
- /* K1 */ be_nested_string("pc_abs", 920256495, 6),
- /* K2 */ be_nested_string("duration", 799079693, 8),
+ /* K0 */ be_nested_str(pc_rel),
+ /* K1 */ be_nested_str(pc_abs),
+ /* K2 */ be_nested_str(duration),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x90020001, // 0000 SETMBR R0 K0 R1
0x90020202, // 0001 SETMBR R0 K1 R2
@@ -257,12 +257,12 @@ be_local_class(Animate_ins_goto,
NULL,
be_nested_map(4,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("pc_rel", 991921176, 6, -1), be_const_var(0) },
- { be_nested_key("duration", 799079693, 8, -1), be_const_var(2) },
- { be_nested_key("pc_abs", 920256495, 6, -1), be_const_var(1) },
- { be_nested_key("init", 380752755, 4, 2), be_const_closure(Animate_ins_goto_init_closure) },
+ { be_const_key(pc_rel, -1), be_const_var(0) },
+ { be_const_key(duration, -1), be_const_var(2) },
+ { be_const_key(pc_abs, -1), be_const_var(1) },
+ { be_const_key(init, 2), be_const_closure(Animate_ins_goto_init_closure) },
})),
- (be_nested_const_str("Animate_ins_goto", 1667367043, 16))
+ be_str_literal("Animate_ins_goto")
);
/********************************************************************
@@ -279,12 +279,12 @@ be_local_closure(Animate_ins_ramp_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("a", -468965076, 1),
- /* K1 */ be_nested_string("b", -418632219, 1),
- /* K2 */ be_nested_string("duration", 799079693, 8),
+ /* K0 */ be_nested_str(a),
+ /* K1 */ be_nested_str(b),
+ /* K2 */ be_nested_str(duration),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x90020001, // 0000 SETMBR R0 K0 R1
0x90020202, // 0001 SETMBR R0 K1 R2
@@ -304,12 +304,12 @@ be_local_class(Animate_ins_ramp,
NULL,
be_nested_map(4,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("a", -468965076, 1, -1), be_const_var(0) },
- { be_nested_key("b", -418632219, 1, 2), be_const_var(1) },
- { be_nested_key("duration", 799079693, 8, -1), be_const_var(2) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(Animate_ins_ramp_init_closure) },
+ { be_const_key(a, -1), be_const_var(0) },
+ { be_const_key(b, 2), be_const_var(1) },
+ { be_const_key(duration, -1), be_const_var(2) },
+ { be_const_key(init, -1), be_const_closure(Animate_ins_ramp_init_closure) },
})),
- (be_nested_const_str("Animate_ins_ramp", 785058280, 16))
+ be_str_literal("Animate_ins_ramp")
);
/********************************************************************
@@ -326,15 +326,15 @@ be_local_closure(Animate_engine_run, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("millis", 1214679063, 6),
- /* K2 */ be_nested_string("value", 1113510858, 5),
- /* K3 */ be_nested_string("ins_time", -1314721743, 8),
- /* K4 */ be_nested_string("running", 343848780, 7),
- /* K5 */ be_nested_string("add_driver", 1654458371, 10),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(millis),
+ /* K2 */ be_nested_str(value),
+ /* K3 */ be_nested_str(ins_time),
+ /* K4 */ be_nested_str(running),
+ /* K5 */ be_nested_str(add_driver),
}),
- (be_nested_const_str("run", 718098122, 3)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_run,
+ &be_const_str_solidified,
( &(const binstruction[19]) { /* code */
0x4C0C0000, // 0000 LDNIL R3
0x1C0C0203, // 0001 EQ R3 R1 R3
@@ -375,14 +375,14 @@ be_local_closure(Animate_engine_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("code", -114201356, 4),
- /* K1 */ be_nested_string("pc", 1313756516, 2),
+ /* K0 */ be_nested_str(code),
+ /* K1 */ be_nested_str(pc),
/* K2 */ be_const_int(0),
- /* K3 */ be_nested_string("ins_time", -1314721743, 8),
- /* K4 */ be_nested_string("running", 343848780, 7),
+ /* K3 */ be_nested_str(ins_time),
+ /* K4 */ be_nested_str(running),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 8]) { /* code */
0x60040012, // 0000 GETGBL R1 G18
0x7C040000, // 0001 CALL R1 0
@@ -412,12 +412,12 @@ be_local_closure(Animate_engine_autorun, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("run", 718098122, 3),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("add_driver", 1654458371, 10),
+ /* K0 */ be_nested_str(run),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(add_driver),
}),
- (be_nested_const_str("autorun", 1447527407, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_autorun,
+ &be_const_str_solidified,
( &(const binstruction[ 9]) { /* code */
0x8C0C0100, // 0000 GETMET R3 R0 K0
0x5C140200, // 0001 MOVE R5 R1
@@ -448,12 +448,12 @@ be_local_closure(Animate_engine_stop, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("running", 343848780, 7),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("remove_driver", 1030243768, 13),
+ /* K0 */ be_nested_str(running),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(remove_driver),
}),
- (be_nested_const_str("stop", -883741979, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_stop,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0x50040000, // 0000 LDBOOL R1 0 0
0x90020001, // 0001 SETMBR R0 K0 R1
@@ -482,10 +482,10 @@ be_local_closure(Animate_engine_is_running, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("running", 343848780, 7),
+ /* K0 */ be_nested_str(running),
}),
- (be_nested_const_str("is_running", -2068120035, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_is_running,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x80040200, // 0001 RET 1 R1
@@ -509,10 +509,10 @@ be_local_closure(Animate_engine_every_50ms, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("animate", -409180496, 7),
+ /* K0 */ be_nested_str(animate),
}),
- (be_nested_const_str("every_50ms", -1911083288, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_every_50ms,
+ &be_const_str_solidified,
( &(const binstruction[ 3]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x7C040200, // 0001 CALL R1 1
@@ -537,31 +537,31 @@ be_local_closure(Animate_engine_animate, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[22]) { /* constants */
- /* K0 */ be_nested_string("running", 343848780, 7),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("millis", 1214679063, 6),
- /* K3 */ be_nested_string("ins_time", -1314721743, 8),
- /* K4 */ be_nested_string("pc", 1313756516, 2),
- /* K5 */ be_nested_string("code", -114201356, 4),
+ /* K0 */ be_nested_str(running),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(millis),
+ /* K3 */ be_nested_str(ins_time),
+ /* K4 */ be_nested_str(pc),
+ /* K5 */ be_nested_str(code),
/* K6 */ be_const_int(0),
- /* K7 */ be_nested_string("internal_error", -1775809127, 14),
- /* K8 */ be_nested_string("Animate pc is out of range", 1854929421, 26),
- /* K9 */ be_nested_string("animate", -409180496, 7),
- /* K10 */ be_nested_string("ins_ramp", 1068049360, 8),
- /* K11 */ be_nested_string("closure", 1548407746, 7),
- /* K12 */ be_nested_string("duration", 799079693, 8),
- /* K13 */ be_nested_string("value", 1113510858, 5),
- /* K14 */ be_nested_string("scale_uint", -1204156202, 10),
- /* K15 */ be_nested_string("a", -468965076, 1),
- /* K16 */ be_nested_string("b", -418632219, 1),
+ /* K7 */ be_nested_str(internal_error),
+ /* K8 */ be_nested_str(Animate_X20pc_X20is_X20out_X20of_X20range),
+ /* K9 */ be_nested_str(animate),
+ /* K10 */ be_nested_str(ins_ramp),
+ /* K11 */ be_nested_str(closure),
+ /* K12 */ be_nested_str(duration),
+ /* K13 */ be_nested_str(value),
+ /* K14 */ be_nested_str(scale_uint),
+ /* K15 */ be_nested_str(a),
+ /* K16 */ be_nested_str(b),
/* K17 */ be_const_int(1),
- /* K18 */ be_nested_string("ins_goto", 1342843963, 8),
- /* K19 */ be_nested_string("pc_rel", 991921176, 6),
- /* K20 */ be_nested_string("pc_abs", 920256495, 6),
- /* K21 */ be_nested_string("unknown instruction", 1093911841, 19),
+ /* K18 */ be_nested_str(ins_goto),
+ /* K19 */ be_nested_str(pc_rel),
+ /* K20 */ be_nested_str(pc_abs),
+ /* K21 */ be_nested_str(unknown_X20instruction),
}),
- (be_nested_const_str("animate", -409180496, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_animate,
+ &be_const_str_solidified,
( &(const binstruction[99]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x740A0000, // 0001 JMPT R2 #0003
@@ -676,21 +676,21 @@ be_local_class(Animate_engine,
NULL,
be_nested_map(13,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("code", -114201356, 4, -1), be_const_var(0) },
- { be_nested_key("run", 718098122, 3, 4), be_const_closure(Animate_engine_run_closure) },
- { be_nested_key("running", 343848780, 7, 8), be_const_var(4) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(Animate_engine_init_closure) },
- { be_nested_key("autorun", 1447527407, 7, -1), be_const_closure(Animate_engine_autorun_closure) },
- { be_nested_key("value", 1113510858, 5, -1), be_const_var(5) },
- { be_nested_key("stop", -883741979, 4, 3), be_const_closure(Animate_engine_stop_closure) },
- { be_nested_key("pc", 1313756516, 2, -1), be_const_var(2) },
- { be_nested_key("is_running", -2068120035, 10, 11), be_const_closure(Animate_engine_is_running_closure) },
- { be_nested_key("every_50ms", -1911083288, 10, 10), be_const_closure(Animate_engine_every_50ms_closure) },
- { be_nested_key("animate", -409180496, 7, -1), be_const_closure(Animate_engine_animate_closure) },
- { be_nested_key("closure", 1548407746, 7, -1), be_const_var(1) },
- { be_nested_key("ins_time", -1314721743, 8, 9), be_const_var(3) },
+ { be_const_key(code, -1), be_const_var(0) },
+ { be_const_key(run, 4), be_const_closure(Animate_engine_run_closure) },
+ { be_const_key(running, 8), be_const_var(4) },
+ { be_const_key(init, -1), be_const_closure(Animate_engine_init_closure) },
+ { be_const_key(autorun, -1), be_const_closure(Animate_engine_autorun_closure) },
+ { be_const_key(value, -1), be_const_var(5) },
+ { be_const_key(stop, 3), be_const_closure(Animate_engine_stop_closure) },
+ { be_const_key(pc, -1), be_const_var(2) },
+ { be_const_key(is_running, 11), be_const_closure(Animate_engine_is_running_closure) },
+ { be_const_key(every_50ms, 10), be_const_closure(Animate_engine_every_50ms_closure) },
+ { be_const_key(animate, -1), be_const_closure(Animate_engine_animate_closure) },
+ { be_const_key(closure, -1), be_const_var(1) },
+ { be_const_key(ins_time, 9), be_const_var(3) },
})),
- (be_nested_const_str("Animate_engine", 1498417667, 14))
+ be_str_literal("Animate_engine")
);
/********************************************************************
@@ -700,12 +700,12 @@ be_local_module(animate,
"animate",
be_nested_map(6,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("rotate", -1510671094, 6, 2), be_const_class(be_class_Animate_rotate) },
- { be_nested_key("from_to", 21625507, 7, 3), be_const_class(be_class_Animate_from_to) },
- { be_nested_key("back_forth", -1629925234, 10, -1), be_const_class(be_class_Animate_back_forth) },
- { be_nested_key("ins_goto", 1342843963, 8, -1), be_const_class(be_class_Animate_ins_goto) },
- { be_nested_key("ins_ramp", 1068049360, 8, -1), be_const_class(be_class_Animate_ins_ramp) },
- { be_nested_key("engine", -301606853, 6, -1), be_const_class(be_class_Animate_engine) },
+ { be_const_key(rotate, 2), be_const_class(be_class_Animate_rotate) },
+ { be_const_key(from_to, 3), be_const_class(be_class_Animate_from_to) },
+ { be_const_key(back_forth, -1), be_const_class(be_class_Animate_back_forth) },
+ { be_const_key(ins_goto, -1), be_const_class(be_class_Animate_ins_goto) },
+ { be_const_key(ins_ramp, -1), be_const_class(be_class_Animate_ins_ramp) },
+ { be_const_key(engine, -1), be_const_class(be_class_Animate_engine) },
}))
);
BE_EXPORT_VARIABLE be_define_const_native_module(animate);
diff --git a/lib/libesp32/Berry/default/be_autoconf_lib.c b/lib/libesp32/Berry/default/be_autoconf_lib.c
index 3d864a988..da41707c7 100644
--- a/lib/libesp32/Berry/default/be_autoconf_lib.c
+++ b/lib/libesp32/Berry/default/be_autoconf_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: page_autoconf_ctl
********************************************************************/
-be_local_closure(page_autoconf_ctl, /* name */
+be_local_closure(Autoconf_page_autoconf_ctl, /* name */
be_nested_proto(
13, /* nstack */
1, /* argc */
@@ -21,50 +21,50 @@ be_local_closure(page_autoconf_ctl, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[41]) { /* constants */
- /* K0 */ be_nested_string("webserver", 1572454038, 9),
- /* K1 */ be_nested_string("string", 398550328, 6),
- /* K2 */ be_nested_string("path", -2071507658, 4),
- /* K3 */ be_nested_string("check_privileged_access", -602033328, 23),
- /* K4 */ be_nested_string("has_arg", 424878688, 7),
- /* K5 */ be_nested_string("reapply", -516027964, 7),
- /* K6 */ be_nested_string("tasmota", 424643812, 7),
- /* K7 */ be_nested_string("log", 1062293841, 3),
- /* K8 */ be_nested_string("CFG: removing first time marker", 2125556683, 31),
+ /* K0 */ be_nested_str(webserver),
+ /* K1 */ be_nested_str(string),
+ /* K2 */ be_nested_str(path),
+ /* K3 */ be_nested_str(check_privileged_access),
+ /* K4 */ be_nested_str(has_arg),
+ /* K5 */ be_nested_str(reapply),
+ /* K6 */ be_nested_str(tasmota),
+ /* K7 */ be_nested_str(log),
+ /* K8 */ be_nested_str(CFG_X3A_X20removing_X20first_X20time_X20marker),
/* K9 */ be_const_int(2),
- /* K10 */ be_nested_string("clear_first_time", 632769909, 16),
- /* K11 */ be_nested_string("redirect", 389758641, 8),
- /* K12 */ be_nested_string("/?rst=", 580074707, 6),
- /* K13 */ be_nested_string("zip", -1417514060, 3),
- /* K14 */ be_nested_string("CFG: removing autoconf files", -280262326, 28),
- /* K15 */ be_nested_string("delete_all_configs", -1912899718, 18),
- /* K16 */ be_nested_string("arg", 1047474471, 3),
- /* K17 */ be_nested_string("reset", 1695364032, 5),
- /* K18 */ be_nested_string("format", -1180859054, 6),
- /* K19 */ be_nested_string("https://raw.githubusercontent.com/tasmota/autoconf/main/%s/%s.autoconf", -1551440987, 70),
- /* K20 */ be_nested_string("arch", -1342162999, 4),
- /* K21 */ be_nested_string("CFG: downloading '%s'", 589480701, 21),
- /* K22 */ be_nested_string("%s.autoconf", -734583772, 11),
- /* K23 */ be_nested_string("webclient", -218578150, 9),
- /* K24 */ be_nested_string("begin", 1748273790, 5),
- /* K25 */ be_nested_string("GET", -1763262857, 3),
- /* K26 */ be_nested_string("return code=%i", 2127454401, 14),
- /* K27 */ be_nested_string("connection_error", 1358926260, 16),
- /* K28 */ be_nested_string("write_file", -1117308417, 10),
- /* K29 */ be_nested_string("close", 667630371, 5),
- /* K30 */ be_nested_string("value_error", 773297791, 11),
- /* K31 */ be_nested_string("Unknown command", 1830905432, 15),
- /* K32 */ be_nested_string("CFG: Exception> '%s' - %s", 1228874553, 25),
- /* K33 */ be_nested_string("content_start", -1357458227, 13),
- /* K34 */ be_nested_string("Parameter error", -454925258, 15),
- /* K35 */ be_nested_string("content_send_style", 1087907647, 18),
- /* K36 */ be_nested_string("content_send", 1673733649, 12),
- /* K37 */ be_nested_string("Exception:
'%s'
%s
", -42402214, 59),
- /* K38 */ be_nested_string("content_button", 1956476087, 14),
- /* K39 */ be_nested_string("BUTTON_CONFIGURATION", 70820856, 20),
- /* K40 */ be_nested_string("content_stop", 658554751, 12),
+ /* K10 */ be_nested_str(clear_first_time),
+ /* K11 */ be_nested_str(redirect),
+ /* K12 */ be_nested_str(_X2F_X3Frst_X3D),
+ /* K13 */ be_nested_str(zip),
+ /* K14 */ be_nested_str(CFG_X3A_X20removing_X20autoconf_X20files),
+ /* K15 */ be_nested_str(delete_all_configs),
+ /* K16 */ be_nested_str(arg),
+ /* K17 */ be_nested_str(reset),
+ /* K18 */ be_nested_str(format),
+ /* K19 */ be_nested_str(https_X3A_X2F_X2Fraw_X2Egithubusercontent_X2Ecom_X2Ftasmota_X2Fautoconf_X2Fmain_X2F_X25s_X2F_X25s_X2Eautoconf),
+ /* K20 */ be_nested_str(arch),
+ /* K21 */ be_nested_str(CFG_X3A_X20downloading_X20_X27_X25s_X27),
+ /* K22 */ be_nested_str(_X25s_X2Eautoconf),
+ /* K23 */ be_nested_str(webclient),
+ /* K24 */ be_nested_str(begin),
+ /* K25 */ be_nested_str(GET),
+ /* K26 */ be_nested_str(return_X20code_X3D_X25i),
+ /* K27 */ be_nested_str(connection_error),
+ /* K28 */ be_nested_str(write_file),
+ /* K29 */ be_nested_str(close),
+ /* K30 */ be_nested_str(value_error),
+ /* K31 */ be_nested_str(Unknown_X20command),
+ /* K32 */ be_nested_str(CFG_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s),
+ /* K33 */ be_nested_str(content_start),
+ /* K34 */ be_nested_str(Parameter_X20error),
+ /* K35 */ be_nested_str(content_send_style),
+ /* K36 */ be_nested_str(content_send),
+ /* K37 */ be_nested_str(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E),
+ /* K38 */ be_nested_str(content_button),
+ /* K39 */ be_nested_str(BUTTON_CONFIGURATION),
+ /* K40 */ be_nested_str(content_stop),
}),
- (be_nested_const_str("page_autoconf_ctl", -1841585800, 17)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_page_autoconf_ctl,
+ &be_const_str_solidified,
( &(const binstruction[117]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xA40A0200, // 0001 IMPORT R2 K1
@@ -192,7 +192,7 @@ be_local_closure(page_autoconf_ctl, /* name */
/********************************************************************
** Solidified function: autoexec
********************************************************************/
-be_local_closure(autoexec, /* name */
+be_local_closure(Autoconf_autoexec, /* name */
be_nested_proto(
9, /* nstack */
1, /* argc */
@@ -203,41 +203,41 @@ be_local_closure(autoexec, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[32]) { /* constants */
- /* K0 */ be_nested_string("_archive", -290407892, 8),
- /* K1 */ be_nested_string("path", -2071507658, 4),
- /* K2 */ be_nested_string("#init.bat", -997372219, 9),
- /* K3 */ be_nested_string("is_first_time", 275242384, 13),
- /* K4 */ be_nested_string("exists", 1002329533, 6),
- /* K5 */ be_nested_string("set_first_time", -1183719746, 14),
- /* K6 */ be_nested_string("run_bat", -1758063998, 7),
- /* K7 */ be_nested_string("tasmota", 424643812, 7),
- /* K8 */ be_nested_string("log", 1062293841, 3),
- /* K9 */ be_nested_string("CFG: 'init.bat' done, restarting", 1569670677, 32),
+ /* K0 */ be_nested_str(_archive),
+ /* K1 */ be_nested_str(path),
+ /* K2 */ be_nested_str(_X23init_X2Ebat),
+ /* K3 */ be_nested_str(is_first_time),
+ /* K4 */ be_nested_str(exists),
+ /* K5 */ be_nested_str(set_first_time),
+ /* K6 */ be_nested_str(run_bat),
+ /* K7 */ be_nested_str(tasmota),
+ /* K8 */ be_nested_str(log),
+ /* K9 */ be_nested_str(CFG_X3A_X20_X27init_X2Ebat_X27_X20done_X2C_X20restarting),
/* K10 */ be_const_int(2),
- /* K11 */ be_nested_string("cmd", -158181397, 3),
- /* K12 */ be_nested_string("Restart 1", -790511441, 9),
- /* K13 */ be_nested_string("#display.ini", 182218220, 12),
- /* K14 */ be_nested_string("gpio", -1656812038, 4),
- /* K15 */ be_nested_string("pin_used", -261112684, 8),
- /* K16 */ be_nested_string("OPTION_A", 1133299440, 8),
- /* K17 */ be_nested_string("display.ini", -1648793295, 11),
- /* K18 */ be_nested_string("CFG: skipping 'display.ini' because already present in file-system", -329418032, 66),
- /* K19 */ be_nested_string("display", 1164572437, 7),
- /* K20 */ be_nested_string("r", -150190315, 1),
- /* K21 */ be_nested_string("read", -824204347, 4),
- /* K22 */ be_nested_string("close", 667630371, 5),
- /* K23 */ be_nested_string("start", 1697318111, 5),
- /* K24 */ be_nested_string("#autoexec.bat", -912076799, 13),
- /* K25 */ be_nested_string("CFG: running ", -1816632762, 13),
+ /* K11 */ be_nested_str(cmd),
+ /* K12 */ be_nested_str(Restart_X201),
+ /* K13 */ be_nested_str(_X23display_X2Eini),
+ /* K14 */ be_nested_str(gpio),
+ /* K15 */ be_nested_str(pin_used),
+ /* K16 */ be_nested_str(OPTION_A),
+ /* K17 */ be_nested_str(display_X2Eini),
+ /* K18 */ be_nested_str(CFG_X3A_X20skipping_X20_X27display_X2Eini_X27_X20because_X20already_X20present_X20in_X20file_X2Dsystem),
+ /* K19 */ be_nested_str(display),
+ /* K20 */ be_nested_str(r),
+ /* K21 */ be_nested_str(read),
+ /* K22 */ be_nested_str(close),
+ /* K23 */ be_nested_str(start),
+ /* K24 */ be_nested_str(_X23autoexec_X2Ebat),
+ /* K25 */ be_nested_str(CFG_X3A_X20running_X20),
/* K26 */ be_const_int(3),
- /* K27 */ be_nested_string("CFG: ran ", -715396824, 10),
- /* K28 */ be_nested_string("#autoexec.be", 1181757091, 12),
- /* K29 */ be_nested_string("CFG: loading ", -284605793, 13),
- /* K30 */ be_nested_string("load", -435725847, 4),
- /* K31 */ be_nested_string("CFG: loaded ", -584693758, 13),
+ /* K27 */ be_nested_str(CFG_X3A_X20ran_X20_X20),
+ /* K28 */ be_nested_str(_X23autoexec_X2Ebe),
+ /* K29 */ be_nested_str(CFG_X3A_X20loading_X20),
+ /* K30 */ be_nested_str(load),
+ /* K31 */ be_nested_str(CFG_X3A_X20loaded_X20_X20),
}),
- (be_nested_const_str("autoexec", -618105405, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_autoexec,
+ &be_const_str_solidified,
( &(const binstruction[107]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x4C080000, // 0001 LDNIL R2
@@ -355,7 +355,7 @@ be_local_closure(autoexec, /* name */
/********************************************************************
** Solidified function: run_bat
********************************************************************/
-be_local_closure(run_bat, /* name */
+be_local_closure(Autoconf_run_bat, /* name */
be_nested_proto(
13, /* nstack */
2, /* argc */
@@ -366,19 +366,19 @@ be_local_closure(run_bat, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("r", -150190315, 1),
- /* K2 */ be_nested_string("readline", 1212709927, 8),
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(r),
+ /* K2 */ be_nested_str(readline),
/* K3 */ be_const_int(0),
- /* K4 */ be_nested_string("\n", 252472541, 1),
- /* K5 */ be_nested_string("tasmota", 424643812, 7),
- /* K6 */ be_nested_string("cmd", -158181397, 3),
- /* K7 */ be_nested_string("close", 667630371, 5),
- /* K8 */ be_nested_string("format", -1180859054, 6),
- /* K9 */ be_nested_string("CFG: could not run %s (%s - %s)", 1428829580, 31),
+ /* K4 */ be_nested_str(_X0A),
+ /* K5 */ be_nested_str(tasmota),
+ /* K6 */ be_nested_str(cmd),
+ /* K7 */ be_nested_str(close),
+ /* K8 */ be_nested_str(format),
+ /* K9 */ be_nested_str(CFG_X3A_X20could_X20not_X20run_X20_X25s_X20_X28_X25s_X20_X2D_X20_X25s_X29),
}),
- (be_nested_const_str("run_bat", -1758063998, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_run_bat,
+ &be_const_str_solidified,
( &(const binstruction[54]) { /* code */
0xA40A0000, // 0000 IMPORT R2 K0
0x4C0C0000, // 0001 LDNIL R3
@@ -443,7 +443,7 @@ be_local_closure(run_bat, /* name */
/********************************************************************
** Solidified function: page_autoconf_mgr
********************************************************************/
-be_local_closure(page_autoconf_mgr, /* name */
+be_local_closure(Autoconf_page_autoconf_mgr, /* name */
be_nested_proto(
19, /* nstack */
1, /* argc */
@@ -454,48 +454,48 @@ be_local_closure(page_autoconf_mgr, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[39]) { /* constants */
- /* K0 */ be_nested_string("webserver", 1572454038, 9),
- /* K1 */ be_nested_string("string", 398550328, 6),
- /* K2 */ be_nested_string("check_privileged_access", -602033328, 23),
- /* K3 */ be_nested_string("content_start", -1357458227, 13),
- /* K4 */ be_nested_string("Auto-configuration", 1665006109, 18),
- /* K5 */ be_nested_string("content_send_style", 1087907647, 18),
- /* K6 */ be_nested_string("content_send", 1673733649, 12),
- /* K7 */ be_nested_string(" (This feature requires an internet connection)
", -1575700810, 74),
- /* K8 */ be_nested_string("get_current_module_path", -1088293888, 23),
- /* K9 */ be_nested_string("tr", 1195724803, 2),
- /* K10 */ be_nested_string("get_current_module_name", -1915696556, 23),
- /* K11 */ be_nested_string("_", -636741266, 1),
- /* K12 */ be_nested_string(" ", 621580159, 1),
- /* K13 */ be_nested_string("_error", 1132109656, 6),
- /* K14 */ be_nested_string("<Error: apply new or remove>", -1439459347, 34),
- /* K15 */ be_nested_string("<None>", -1692801798, 12),
- /* K16 */ be_nested_string("
", -748395557, 11),
- /* K24 */ be_nested_string("", 2052843416, 25),
- /* K25 */ be_nested_string("", 1926223891, 80),
- /* K26 */ be_nested_string("", 452285201, 120),
+ /* K0 */ be_nested_str(webserver),
+ /* K1 */ be_nested_str(content_send),
+ /* K2 */ be_nested_str(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27ac_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E_X26_X23129668_X3B_X20Auto_X2Dconfiguration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E),
}),
- (be_nested_const_str("web_add_config_button", 639674325, 21)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_web_add_config_button,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0x8C080301, // 0001 GETMET R2 R1 K1
@@ -916,7 +916,7 @@ be_local_closure(web_add_config_button, /* name */
/********************************************************************
** Solidified function: is_first_time
********************************************************************/
-be_local_closure(is_first_time, /* name */
+be_local_closure(Autoconf_is_first_time, /* name */
be_nested_proto(
5, /* nstack */
1, /* argc */
@@ -927,12 +927,12 @@ be_local_closure(is_first_time, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("path", -2071507658, 4),
- /* K1 */ be_nested_string("exists", 1002329533, 6),
- /* K2 */ be_nested_string("/.autoconf", -2082892903, 10),
+ /* K0 */ be_nested_str(path),
+ /* K1 */ be_nested_str(exists),
+ /* K2 */ be_nested_str(_X2F_X2Eautoconf),
}),
- (be_nested_const_str("is_first_time", 275242384, 13)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_is_first_time,
+ &be_const_str_solidified,
( &(const binstruction[ 8]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0x8C080301, // 0001 GETMET R2 R1 K1
@@ -951,7 +951,7 @@ be_local_closure(is_first_time, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(Autoconf_init, /* name */
be_nested_proto(
12, /* nstack */
1, /* argc */
@@ -962,26 +962,26 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[17]) { /* constants */
- /* K0 */ be_nested_str_literal("path"),
- /* K1 */ be_nested_str_literal("string"),
- /* K2 */ be_nested_str_literal("listdir"),
- /* K3 */ be_nested_str_literal("/"),
- /* K4 */ be_nested_str_literal("tasmota"),
- /* K5 */ be_nested_str_literal("add_driver"),
+ /* K0 */ be_nested_str(path),
+ /* K1 */ be_nested_str(string),
+ /* K2 */ be_nested_str(listdir),
+ /* K3 */ be_nested_str(_X2F),
+ /* K4 */ be_nested_str(tasmota),
+ /* K5 */ be_nested_str(add_driver),
/* K6 */ be_const_int(0),
- /* K7 */ be_nested_str_literal("find"),
- /* K8 */ be_nested_str_literal(".autoconf"),
- /* K9 */ be_nested_str_literal("format"),
- /* K10 */ be_nested_str_literal("CFG: multiple autoconf files found, aborting ('%s' + '%s')"),
- /* K11 */ be_nested_str_literal("_error"),
+ /* K7 */ be_nested_str(find),
+ /* K8 */ be_nested_str(_X2Eautoconf),
+ /* K9 */ be_nested_str(format),
+ /* K10 */ be_nested_str(CFG_X3A_X20multiple_X20autoconf_X20files_X20found_X2C_X20aborting_X20_X28_X27_X25s_X27_X20_X2B_X20_X27_X25s_X27_X29),
+ /* K11 */ be_nested_str(_error),
/* K12 */ be_const_int(1),
- /* K13 */ be_nested_str_literal("log"),
- /* K14 */ be_nested_str_literal("CFG: no '*.autoconf' file found"),
+ /* K13 */ be_nested_str(log),
+ /* K14 */ be_nested_str(CFG_X3A_X20no_X20_X27_X2A_X2Eautoconf_X27_X20file_X20found),
/* K15 */ be_const_int(2),
- /* K16 */ be_nested_str_literal("_archive"),
+ /* K16 */ be_nested_str(_archive),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[51]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xA40A0200, // 0001 IMPORT R2 K1
@@ -1043,7 +1043,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: preinit
********************************************************************/
-be_local_closure(preinit, /* name */
+be_local_closure(Autoconf_preinit, /* name */
be_nested_proto(
7, /* nstack */
1, /* argc */
@@ -1054,19 +1054,19 @@ be_local_closure(preinit, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("_archive", -290407892, 8),
- /* K1 */ be_nested_string("path", -2071507658, 4),
- /* K2 */ be_nested_string("#preinit.be", 687035716, 11),
- /* K3 */ be_nested_string("exists", 1002329533, 6),
- /* K4 */ be_nested_string("tasmota", 424643812, 7),
- /* K5 */ be_nested_string("log", 1062293841, 3),
- /* K6 */ be_nested_string("CFG: loading ", -284605793, 13),
+ /* K0 */ be_nested_str(_archive),
+ /* K1 */ be_nested_str(path),
+ /* K2 */ be_nested_str(_X23preinit_X2Ebe),
+ /* K3 */ be_nested_str(exists),
+ /* K4 */ be_nested_str(tasmota),
+ /* K5 */ be_nested_str(log),
+ /* K6 */ be_nested_str(CFG_X3A_X20loading_X20),
/* K7 */ be_const_int(3),
- /* K8 */ be_nested_string("load", -435725847, 4),
- /* K9 */ be_nested_string("CFG: loaded ", -584693758, 13),
+ /* K8 */ be_nested_str(load),
+ /* K9 */ be_nested_str(CFG_X3A_X20loaded_X20_X20),
}),
- (be_nested_const_str("preinit", -1572960196, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_preinit,
+ &be_const_str_solidified,
( &(const binstruction[26]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x4C080000, // 0001 LDNIL R2
@@ -1103,7 +1103,7 @@ be_local_closure(preinit, /* name */
/********************************************************************
** Solidified function: reset
********************************************************************/
-be_local_closure(reset, /* name */
+be_local_closure(Autoconf_reset, /* name */
be_nested_proto(
12, /* nstack */
1, /* argc */
@@ -1114,22 +1114,22 @@ be_local_closure(reset, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[13]) { /* constants */
- /* K0 */ be_nested_string("path", -2071507658, 4),
- /* K1 */ be_nested_string("string", 398550328, 6),
- /* K2 */ be_nested_string("listdir", 2005220720, 7),
- /* K3 */ be_nested_string("/", 705468254, 1),
+ /* K0 */ be_nested_str(path),
+ /* K1 */ be_nested_str(string),
+ /* K2 */ be_nested_str(listdir),
+ /* K3 */ be_nested_str(_X2F),
/* K4 */ be_const_int(0),
- /* K5 */ be_nested_string("find", -1108310694, 4),
- /* K6 */ be_nested_string(".autoconf", -1770288208, 9),
- /* K7 */ be_nested_string("remove", -611183107, 6),
- /* K8 */ be_nested_string("format", -1180859054, 6),
- /* K9 */ be_nested_string("CFG: removed file '%s'", 2048602473, 22),
+ /* K5 */ be_nested_str(find),
+ /* K6 */ be_nested_str(_X2Eautoconf),
+ /* K7 */ be_nested_str(remove),
+ /* K8 */ be_nested_str(format),
+ /* K9 */ be_nested_str(CFG_X3A_X20removed_X20file_X20_X27_X25s_X27),
/* K10 */ be_const_int(1),
- /* K11 */ be_nested_string("_archive", -290407892, 8),
- /* K12 */ be_nested_string("_error", 1132109656, 6),
+ /* K11 */ be_nested_str(_archive),
+ /* K12 */ be_nested_str(_error),
}),
- (be_nested_const_str("reset", 1695364032, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_reset,
+ &be_const_str_solidified,
( &(const binstruction[35]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xA40A0200, // 0001 IMPORT R2 K1
@@ -1175,7 +1175,7 @@ be_local_closure(reset, /* name */
/********************************************************************
** Solidified function: web_add_handler
********************************************************************/
-be_local_closure(web_add_handler, /* name */
+be_local_closure(Autoconf_web_add_handler, /* name */
be_nested_proto(
7, /* nstack */
1, /* argc */
@@ -1196,10 +1196,10 @@ be_local_closure(web_add_handler, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("page_autoconf_mgr", -651030265, 17),
+ /* K0 */ be_nested_str(page_autoconf_mgr),
}),
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x68000000, // 0000 GETUPV R0 U0
0x8C000100, // 0001 GETMET R0 R0 K0
@@ -1219,10 +1219,10 @@ be_local_closure(web_add_handler, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("page_autoconf_ctl", -1841585800, 17),
+ /* K0 */ be_nested_str(page_autoconf_ctl),
}),
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x68000000, // 0000 GETUPV R0 U0
0x8C000100, // 0001 GETMET R0 R0 K0
@@ -1233,14 +1233,14 @@ be_local_closure(web_add_handler, /* name */
}),
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("webserver", 1572454038, 9),
- /* K1 */ be_nested_string("on", 1630810064, 2),
- /* K2 */ be_nested_string("/ac", -390315318, 3),
- /* K3 */ be_nested_string("HTTP_GET", 1722467738, 8),
- /* K4 */ be_nested_string("HTTP_POST", 1999554144, 9),
+ /* K0 */ be_nested_str(webserver),
+ /* K1 */ be_nested_str(on),
+ /* K2 */ be_nested_str(_X2Fac),
+ /* K3 */ be_nested_str(HTTP_GET),
+ /* K4 */ be_nested_str(HTTP_POST),
}),
- (be_nested_const_str("web_add_handler", -304792334, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_web_add_handler,
+ &be_const_str_solidified,
( &(const binstruction[13]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0x8C080301, // 0001 GETMET R2 R1 K1
@@ -1264,7 +1264,7 @@ be_local_closure(web_add_handler, /* name */
/********************************************************************
** Solidified function: clear_first_time
********************************************************************/
-be_local_closure(clear_first_time, /* name */
+be_local_closure(Autoconf_clear_first_time, /* name */
be_nested_proto(
5, /* nstack */
1, /* argc */
@@ -1275,12 +1275,12 @@ be_local_closure(clear_first_time, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("path", -2071507658, 4),
- /* K1 */ be_nested_string("remove", -611183107, 6),
- /* K2 */ be_nested_string("/.autoconf", -2082892903, 10),
+ /* K0 */ be_nested_str(path),
+ /* K1 */ be_nested_str(remove),
+ /* K2 */ be_nested_str(_X2F_X2Eautoconf),
}),
- (be_nested_const_str("clear_first_time", 632769909, 16)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_clear_first_time,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0x8C080301, // 0001 GETMET R2 R1 K1
@@ -1296,7 +1296,7 @@ be_local_closure(clear_first_time, /* name */
/********************************************************************
** Solidified function: get_current_module_path
********************************************************************/
-be_local_closure(get_current_module_path, /* name */
+be_local_closure(Autoconf_get_current_module_path, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -1307,10 +1307,10 @@ be_local_closure(get_current_module_path, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("_archive", -290407892, 8),
+ /* K0 */ be_nested_str(_archive),
}),
- (be_nested_const_str("get_current_module_path", -1088293888, 23)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_current_module_path,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x80040200, // 0001 RET 1 R1
@@ -1328,26 +1328,26 @@ be_local_class(Autoconf,
NULL,
be_nested_map(18,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("page_autoconf_ctl", -1841585800, 17, -1), be_const_closure(page_autoconf_ctl_closure) },
- { be_nested_key("autoexec", -618105405, 8, -1), be_const_closure(autoexec_closure) },
- { be_nested_key("run_bat", -1758063998, 7, 6), be_const_closure(run_bat_closure) },
- { be_nested_key("page_autoconf_mgr", -651030265, 17, -1), be_const_closure(page_autoconf_mgr_closure) },
- { be_nested_key("get_current_module_name", -1915696556, 23, -1), be_const_closure(get_current_module_name_closure) },
- { be_nested_key("delete_all_configs", -1912899718, 18, 13), be_const_closure(delete_all_configs_closure) },
- { be_nested_key("set_first_time", -1183719746, 14, -1), be_const_closure(set_first_time_closure) },
- { be_nested_key("load_templates", -781097163, 14, -1), be_const_closure(load_templates_closure) },
- { be_nested_key("_archive", -290407892, 8, -1), be_const_var(0) },
- { be_nested_key("web_add_config_button", 639674325, 21, -1), be_const_closure(web_add_config_button_closure) },
- { be_nested_key("is_first_time", 275242384, 13, -1), be_const_closure(is_first_time_closure) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("preinit", -1572960196, 7, 5), be_const_closure(preinit_closure) },
- { be_nested_key("reset", 1695364032, 5, 17), be_const_closure(reset_closure) },
- { be_nested_key("web_add_handler", -304792334, 15, 4), be_const_closure(web_add_handler_closure) },
- { be_nested_key("clear_first_time", 632769909, 16, 11), be_const_closure(clear_first_time_closure) },
- { be_nested_key("_error", 1132109656, 6, -1), be_const_var(1) },
- { be_nested_key("get_current_module_path", -1088293888, 23, -1), be_const_closure(get_current_module_path_closure) },
+ { be_const_key(page_autoconf_ctl, -1), be_const_closure(Autoconf_page_autoconf_ctl_closure) },
+ { be_const_key(autoexec, -1), be_const_closure(Autoconf_autoexec_closure) },
+ { be_const_key(run_bat, 17), be_const_closure(Autoconf_run_bat_closure) },
+ { be_const_key(page_autoconf_mgr, -1), be_const_closure(Autoconf_page_autoconf_mgr_closure) },
+ { be_const_key(get_current_module_path, 13), be_const_closure(Autoconf_get_current_module_path_closure) },
+ { be_const_key(preinit, -1), be_const_closure(Autoconf_preinit_closure) },
+ { be_const_key(clear_first_time, -1), be_const_closure(Autoconf_clear_first_time_closure) },
+ { be_const_key(load_templates, -1), be_const_closure(Autoconf_load_templates_closure) },
+ { be_const_key(_archive, -1), be_const_var(0) },
+ { be_const_key(web_add_config_button, -1), be_const_closure(Autoconf_web_add_config_button_closure) },
+ { be_const_key(is_first_time, -1), be_const_closure(Autoconf_is_first_time_closure) },
+ { be_const_key(web_add_handler, -1), be_const_closure(Autoconf_web_add_handler_closure) },
+ { be_const_key(delete_all_configs, 4), be_const_closure(Autoconf_delete_all_configs_closure) },
+ { be_const_key(reset, 5), be_const_closure(Autoconf_reset_closure) },
+ { be_const_key(get_current_module_name, 11), be_const_closure(Autoconf_get_current_module_name_closure) },
+ { be_const_key(init, 6), be_const_closure(Autoconf_init_closure) },
+ { be_const_key(_error, -1), be_const_var(1) },
+ { be_const_key(set_first_time, -1), be_const_closure(Autoconf_set_first_time_closure) },
})),
- (be_nested_const_str("Autoconf", 984011268, 8))
+ be_str_literal("Autoconf")
);
/********************************************************************
@@ -1366,8 +1366,8 @@ be_local_closure(_anonymous_, /* name */
( &(const bvalue[ 1]) { /* constants */
/* K0 */ be_const_class(be_class_Autoconf),
}),
- (be_nested_const_str("_anonymous_", 1957281476, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__anonymous_,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x58040000, // 0000 LDCONST R1 K0
0xB4000000, // 0001 CLASS K0
@@ -1387,7 +1387,7 @@ be_local_module(autoconf,
"autoconf",
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(_anonymous__closure) },
+ { be_const_key(init, -1), be_const_closure(_anonymous__closure) },
}))
);
BE_EXPORT_VARIABLE be_define_const_native_module(autoconf);
diff --git a/lib/libesp32/Berry/default/be_display_lib.c b/lib/libesp32/Berry/default/be_display_lib.c
index 2d8bf9ff7..3943396fc 100644
--- a/lib/libesp32/Berry/default/be_display_lib.c
+++ b/lib/libesp32/Berry/default/be_display_lib.c
@@ -11,7 +11,7 @@
// Tasmota specific
-extern int be_disp_start(bvm *vm);
+extern int be_ntv_display_start(bvm *vm);
/********************************************************************
** Solidified module: display
@@ -20,7 +20,7 @@ be_local_module(display,
"display",
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("start", 1697318111, 5, -1), be_const_func(be_disp_start) },
+ { be_const_key(start, -1), be_const_func(be_ntv_display_start) },
}))
);
BE_EXPORT_VARIABLE be_define_const_native_module(display);
diff --git a/lib/libesp32/Berry/default/be_driverlib.c b/lib/libesp32/Berry/default/be_driverlib.c
index 13f1d211e..45a611382 100644
--- a/lib/libesp32/Berry/default/be_driverlib.c
+++ b/lib/libesp32/Berry/default/be_driverlib.c
@@ -9,7 +9,7 @@
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(Driver_init, /* name */
be_nested_proto(
1, /* nstack */
1, /* argc */
@@ -20,8 +20,8 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
0, /* has constants */
NULL, /* no const */
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 1]) { /* code */
0x80000000, // 0000 RET 0
})
@@ -33,7 +33,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: get_tasmota
********************************************************************/
-be_local_closure(get_tasmota, /* name */
+be_local_closure(Driver_get_tasmota, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -44,10 +44,10 @@ be_local_closure(get_tasmota, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
+ /* K0 */ be_nested_str(tasmota),
}),
- (be_nested_const_str("get_tasmota", 334356779, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_tasmota,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x80040200, // 0001 RET 1 R1
@@ -60,7 +60,7 @@ be_local_closure(get_tasmota, /* name */
/********************************************************************
** Solidified function: add_cmd
********************************************************************/
-be_local_closure(add_cmd, /* name */
+be_local_closure(Driver_add_cmd, /* name */
be_nested_proto(
7, /* nstack */
3, /* argc */
@@ -82,8 +82,8 @@ be_local_closure(add_cmd, /* name */
NULL, /* no sub protos */
0, /* has constants */
NULL, /* no const */
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 8]) { /* code */
0x68100000, // 0000 GETUPV R4 U0
0x68140001, // 0001 GETUPV R5 U1
@@ -98,11 +98,11 @@ be_local_closure(add_cmd, /* name */
}),
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("add_cmd", -933336417, 7),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(add_cmd),
}),
- (be_nested_const_str("add_cmd", -933336417, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_add_cmd,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0xB80E0000, // 0000 GETNGBL R3 K0
0x8C0C0701, // 0001 GETMET R3 R3 K1
@@ -125,24 +125,24 @@ be_local_class(Driver,
NULL,
be_nested_map(16,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("web_add_main_button", -334599632, 19, 14), be_const_var(4) },
- { be_nested_key("web_add_console_button", -813531104, 22, -1), be_const_var(7) },
- { be_nested_key("web_add_management_button", -1556090110, 25, 8), be_const_var(5) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("json_append", -1292948012, 11, -1), be_const_var(10) },
- { be_nested_key("web_add_config_button", 639674325, 21, 7), be_const_var(6) },
- { be_nested_key("every_100ms", 1546407804, 11, -1), be_const_var(1) },
- { be_nested_key("display", 1164572437, 7, -1), be_const_var(12) },
- { be_nested_key("web_add_button", -757092238, 14, 13), be_const_var(3) },
- { be_nested_key("every_second", 2075451465, 12, -1), be_const_var(0) },
- { be_nested_key("save_before_restart", 1253239338, 19, -1), be_const_var(8) },
- { be_nested_key("get_tasmota", 334356779, 11, -1), be_const_closure(get_tasmota_closure) },
- { be_nested_key("web_sensor", -1394870324, 10, 6), be_const_var(9) },
- { be_nested_key("web_add_handler", -304792334, 15, -1), be_const_var(2) },
- { be_nested_key("button_pressed", 1694209616, 14, 1), be_const_var(11) },
- { be_nested_key("add_cmd", -933336417, 7, -1), be_const_closure(add_cmd_closure) },
+ { be_const_key(web_add_main_button, 14), be_const_var(4) },
+ { be_const_key(web_add_console_button, -1), be_const_var(7) },
+ { be_const_key(web_add_management_button, 8), be_const_var(5) },
+ { be_const_key(init, -1), be_const_closure(Driver_init_closure) },
+ { be_const_key(json_append, -1), be_const_var(10) },
+ { be_const_key(web_add_config_button, 7), be_const_var(6) },
+ { be_const_key(every_100ms, -1), be_const_var(1) },
+ { be_const_key(display, -1), be_const_var(12) },
+ { be_const_key(web_add_button, 13), be_const_var(3) },
+ { be_const_key(every_second, -1), be_const_var(0) },
+ { be_const_key(save_before_restart, -1), be_const_var(8) },
+ { be_const_key(get_tasmota, -1), be_const_closure(Driver_get_tasmota_closure) },
+ { be_const_key(web_sensor, 6), be_const_var(9) },
+ { be_const_key(web_add_handler, -1), be_const_var(2) },
+ { be_const_key(button_pressed, 1), be_const_var(11) },
+ { be_const_key(add_cmd, -1), be_const_closure(Driver_add_cmd_closure) },
})),
- (be_nested_const_str("Driver", -718580993, 6))
+ be_str_literal("Driver")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_energylib.c b/lib/libesp32/Berry/default/be_energylib.c
index e115a8507..cbdddbfca 100644
--- a/lib/libesp32/Berry/default/be_energylib.c
+++ b/lib/libesp32/Berry/default/be_energylib.c
@@ -12,32 +12,127 @@
extern struct ENERGY Energy;
/*
+_energy = nil # avoid compilation error
+energy = module("energy")
+energy._ptr = nil
+
def init(m)
import global
global._energy = energy_struct(m._ptr)
return m
end
+energy.init = init
def read()
return _energy.tomap()
end
+energy.read = read
def member(k)
return _energy.(k)
end
+energy.member = member
def setmember(k, v)
_energy.(k) = v
end
+energy.setmember = setmember
import solidify
-solidify.dump(m.init)
+solidify.dump(energy)
*/
+
+/********************************************************************
+** Solidified function: member
+********************************************************************/
+be_local_closure(energy_member, /* name */
+ be_nested_proto(
+ 2, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str(_energy),
+ }),
+ &be_const_str_member,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 3]) { /* code */
+ 0xB8060000, // 0000 GETNGBL R1 K0
+ 0x88040200, // 0001 GETMBR R1 R1 R0
+ 0x80040200, // 0002 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: setmember
+********************************************************************/
+be_local_closure(energy_setmember, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str(_energy),
+ }),
+ &be_const_str_setmember,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 3]) { /* code */
+ 0xB80A0000, // 0000 GETNGBL R2 K0
+ 0x90080001, // 0001 SETMBR R2 R0 R1
+ 0x80000000, // 0002 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: read
+********************************************************************/
+be_local_closure(energy_read, /* name */
+ be_nested_proto(
+ 2, /* nstack */
+ 0, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(_energy),
+ /* K1 */ be_nested_str(tomap),
+ }),
+ &be_const_str_read,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0xB8020000, // 0000 GETNGBL R0 K0
+ 0x8C000101, // 0001 GETMET R0 R0 K1
+ 0x7C000200, // 0002 CALL R0 1
+ 0x80040000, // 0003 RET 1 R0
+ })
+ )
+);
+/*******************************************************************/
+
+
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(energy_init, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -48,13 +143,13 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("global", 503252654, 6),
- /* K1 */ be_nested_string("_energy", 535372070, 7),
- /* K2 */ be_nested_string("energy_struct", 1655792843, 13),
- /* K3 */ be_nested_string("_ptr", 306235816, 4),
+ /* K0 */ be_nested_str(global),
+ /* K1 */ be_nested_str(_energy),
+ /* K2 */ be_nested_str(energy_struct),
+ /* K3 */ be_nested_str(_ptr),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xB80A0400, // 0001 GETNGBL R2 K2
@@ -69,100 +164,23 @@ be_local_closure(init, /* name */
/********************************************************************
-** Solidified function: read
+** Solidified module: energy
********************************************************************/
-be_local_closure(read, /* name */
- be_nested_proto(
- 2, /* nstack */
- 0, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_energy", 535372070, 7),
- /* K1 */ be_nested_string("tomap", 612167626, 5),
- }),
- (be_nested_const_str("", 1160973142, 11)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 4]) { /* code */
- 0xB8020000, // 0000 GETNGBL R0 K0
- 0x8C000101, // 0001 GETMET R0 R0 K1
- 0x7C000200, // 0002 CALL R0 1
- 0x80040000, // 0003 RET 1 R0
- })
- )
+be_local_module(energy,
+ "energy",
+ be_nested_map(5,
+ ( (struct bmapnode*) &(const bmapnode[]) {
+ { be_const_key(init, -1), be_const_closure(energy_init_closure) },
+ { be_const_key(member, 2), be_const_closure(energy_member_closure) },
+ { be_const_key(_ptr, 3), be_const_comptr(&Energy) },
+ { be_const_key(setmember, -1), be_const_closure(energy_setmember_closure) },
+ { be_const_key(read, -1), be_const_closure(energy_read_closure) },
+ }))
);
-/*******************************************************************/
-
-/********************************************************************
-** Solidified function: member
-********************************************************************/
-be_local_closure(member, /* name */
- be_nested_proto(
- 2, /* nstack */
- 1, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("_energy", 535372070, 7),
- }),
- (be_nested_const_str("member", 719708611, 6)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 3]) { /* code */
- 0xB8060000, // 0000 GETNGBL R1 K0
- 0x88040200, // 0001 GETMBR R1 R1 R0
- 0x80040200, // 0002 RET 1 R1
- })
- )
-);
-/*******************************************************************/
+BE_EXPORT_VARIABLE be_define_const_native_module(energy);
+/********************************************************************/
-/********************************************************************
-** Solidified function: setmember
-********************************************************************/
-be_local_closure(setmember, /* name */
- be_nested_proto(
- 3, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("_energy", 535372070, 7),
- }),
- (be_nested_const_str("setmember", 1432909441, 9)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 3]) { /* code */
- 0xB80A0000, // 0000 GETNGBL R2 K0
- 0x90080001, // 0001 SETMBR R2 R0 R1
- 0x80000000, // 0002 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/* @const_object_info_begin
-module energy (scope: global) {
- _ptr, comptr(&Energy)
- init, closure(init_closure)
-
- read, closure(read_closure)
- member, closure(member_closure)
- setmember, closure(setmember_closure)
-}
-@const_object_info_end */
-#include "../generate/be_fixed_energy.h"
+// { be_const_key(_ptr, 3), be_const_comptr(&Energy) }, /* patch */
#endif // USE_ENERGY_SENSOR
\ No newline at end of file
diff --git a/lib/libesp32/Berry/default/be_i2c_axp192_lib.c b/lib/libesp32/Berry/default/be_i2c_axp192_lib.c
index 7449780d6..4f9f02307 100644
--- a/lib/libesp32/Berry/default/be_i2c_axp192_lib.c
+++ b/lib/libesp32/Berry/default/be_i2c_axp192_lib.c
@@ -6,7 +6,7 @@
/********************************************************************
** Solidified function: get_warning_level
********************************************************************/
-be_local_closure(get_warning_level, /* name */
+be_local_closure(AXP192_get_warning_level, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -17,11 +17,11 @@ be_local_closure(get_warning_level, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read12", -3890326, 6),
+ /* K0 */ be_nested_str(read12),
/* K1 */ be_const_int(1),
}),
- (be_nested_const_str("get_warning_level", 1737834441, 17)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_warning_level,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0046, // 0001 LDINT R3 71
@@ -37,7 +37,7 @@ be_local_closure(get_warning_level, /* name */
/********************************************************************
** Solidified function: get_vbus_current
********************************************************************/
-be_local_closure(get_vbus_current, /* name */
+be_local_closure(AXP192_get_vbus_current, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -48,11 +48,11 @@ be_local_closure(get_vbus_current, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read12", -3890326, 6),
+ /* K0 */ be_nested_str(read12),
/* K1 */ be_const_real_hex(0x3EC00000),
}),
- (be_nested_const_str("get_vbus_current", 1205347942, 16)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_vbus_current,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E005B, // 0001 LDINT R3 92
@@ -68,7 +68,7 @@ be_local_closure(get_vbus_current, /* name */
/********************************************************************
** Solidified function: set_chg_current
********************************************************************/
-be_local_closure(set_chg_current, /* name */
+be_local_closure(AXP192_set_chg_current, /* name */
be_nested_proto(
8, /* nstack */
2, /* argc */
@@ -79,11 +79,11 @@ be_local_closure(set_chg_current, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("write8", -1160975764, 6),
- /* K1 */ be_nested_string("read8", -1492179129, 5),
+ /* K0 */ be_nested_str(write8),
+ /* K1 */ be_nested_str(read8),
}),
- (be_nested_const_str("set_chg_current", 336304386, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_chg_current,
+ &be_const_str_solidified,
( &(const binstruction[12]) { /* code */
0x8C080100, // 0000 GETMET R2 R0 K0
0x54120032, // 0001 LDINT R4 51
@@ -106,7 +106,7 @@ be_local_closure(set_chg_current, /* name */
/********************************************************************
** Solidified function: get_bat_current
********************************************************************/
-be_local_closure(get_bat_current, /* name */
+be_local_closure(AXP192_get_bat_current, /* name */
be_nested_proto(
5, /* nstack */
1, /* argc */
@@ -117,11 +117,11 @@ be_local_closure(get_bat_current, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read13", 12887293, 6),
+ /* K0 */ be_nested_str(read13),
/* K1 */ be_const_real_hex(0x3F000000),
}),
- (be_nested_const_str("get_bat_current", 1912106073, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_bat_current,
+ &be_const_str_solidified,
( &(const binstruction[ 9]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0079, // 0001 LDINT R3 122
@@ -141,7 +141,7 @@ be_local_closure(get_bat_current, /* name */
/********************************************************************
** Solidified function: get_bat_power
********************************************************************/
-be_local_closure(get_bat_power, /* name */
+be_local_closure(AXP192_get_bat_power, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -152,11 +152,11 @@ be_local_closure(get_bat_power, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read24", 1808533811, 6),
+ /* K0 */ be_nested_str(read24),
/* K1 */ be_const_real_hex(0x3A102DE1),
}),
- (be_nested_const_str("get_bat_power", -1227592443, 13)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_bat_power,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E006F, // 0001 LDINT R3 112
@@ -172,7 +172,7 @@ be_local_closure(get_bat_power, /* name */
/********************************************************************
** Solidified function: json_append
********************************************************************/
-be_local_closure(json_append, /* name */
+be_local_closure(AXP192_json_append, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -183,10 +183,10 @@ be_local_closure(json_append, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
+ /* K0 */ be_nested_str(wire),
}),
- (be_nested_const_str("json_append", -1292948012, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_json_append,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x74060001, // 0001 JMPT R1 #0004
@@ -202,7 +202,7 @@ be_local_closure(json_append, /* name */
/********************************************************************
** Solidified function: get_vbus_voltage
********************************************************************/
-be_local_closure(get_vbus_voltage, /* name */
+be_local_closure(AXP192_get_vbus_voltage, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -213,11 +213,11 @@ be_local_closure(get_vbus_voltage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read12", -3890326, 6),
+ /* K0 */ be_nested_str(read12),
/* K1 */ be_const_real_hex(0x3ADED28A),
}),
- (be_nested_const_str("get_vbus_voltage", -1896756895, 16)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_vbus_voltage,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0059, // 0001 LDINT R3 90
@@ -233,7 +233,7 @@ be_local_closure(get_vbus_voltage, /* name */
/********************************************************************
** Solidified function: get_temp
********************************************************************/
-be_local_closure(get_temp, /* name */
+be_local_closure(AXP192_get_temp, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -244,12 +244,12 @@ be_local_closure(get_temp, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("read12", -3890326, 6),
+ /* K0 */ be_nested_str(read12),
/* K1 */ be_const_real_hex(0x3DCCCCCD),
/* K2 */ be_const_real_hex(0x4310B333),
}),
- (be_nested_const_str("get_temp", -924047810, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_temp,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E005D, // 0001 LDINT R3 94
@@ -266,7 +266,7 @@ be_local_closure(get_temp, /* name */
/********************************************************************
** Solidified function: battery_present
********************************************************************/
-be_local_closure(battery_present, /* name */
+be_local_closure(AXP192_battery_present, /* name */
be_nested_proto(
6, /* nstack */
1, /* argc */
@@ -277,13 +277,13 @@ be_local_closure(battery_present, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read", -824204347, 4),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(1),
}),
- (be_nested_const_str("battery_present", -706570238, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_battery_present,
+ &be_const_str_solidified,
( &(const binstruction[15]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -309,7 +309,7 @@ be_local_closure(battery_present, /* name */
/********************************************************************
** Solidified function: get_aps_voltage
********************************************************************/
-be_local_closure(get_aps_voltage, /* name */
+be_local_closure(AXP192_get_aps_voltage, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -320,11 +320,11 @@ be_local_closure(get_aps_voltage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read12", -3890326, 6),
+ /* K0 */ be_nested_str(read12),
/* K1 */ be_const_real_hex(0x3AB78035),
}),
- (be_nested_const_str("get_aps_voltage", -2001930861, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_aps_voltage,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E007D, // 0001 LDINT R3 126
@@ -340,7 +340,7 @@ be_local_closure(get_aps_voltage, /* name */
/********************************************************************
** Solidified function: set_dcdc_enable
********************************************************************/
-be_local_closure(set_dcdc_enable, /* name */
+be_local_closure(AXP192_set_dcdc_enable, /* name */
be_nested_proto(
8, /* nstack */
3, /* argc */
@@ -352,13 +352,13 @@ be_local_closure(set_dcdc_enable, /* name */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
/* K0 */ be_const_int(1),
- /* K1 */ be_nested_string("write_bit", -1633976860, 9),
+ /* K1 */ be_nested_str(write_bit),
/* K2 */ be_const_int(0),
/* K3 */ be_const_int(2),
/* K4 */ be_const_int(3),
}),
- (be_nested_const_str("set_dcdc_enable", 1594690786, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_dcdc_enable,
+ &be_const_str_solidified,
( &(const binstruction[22]) { /* code */
0x1C0C0300, // 0000 EQ R3 R1 K0
0x780E0004, // 0001 JMPF R3 #0007
@@ -391,7 +391,7 @@ be_local_closure(set_dcdc_enable, /* name */
/********************************************************************
** Solidified function: set_ldo_voltage
********************************************************************/
-be_local_closure(set_ldo_voltage, /* name */
+be_local_closure(AXP192_set_ldo_voltage, /* name */
be_nested_proto(
9, /* nstack */
3, /* argc */
@@ -403,12 +403,12 @@ be_local_closure(set_ldo_voltage, /* name */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
/* K0 */ be_const_int(2),
- /* K1 */ be_nested_string("write8", -1160975764, 6),
- /* K2 */ be_nested_string("read8", -1492179129, 5),
+ /* K1 */ be_nested_str(write8),
+ /* K2 */ be_nested_str(read8),
/* K3 */ be_const_int(3),
}),
- (be_nested_const_str("set_ldo_voltage", -204466136, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_ldo_voltage,
+ &be_const_str_solidified,
( &(const binstruction[39]) { /* code */
0x540E0CE3, // 0000 LDINT R3 3300
0x240C0403, // 0001 GT R3 R2 R3
@@ -458,7 +458,7 @@ be_local_closure(set_ldo_voltage, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(AXP192_init, /* name */
be_nested_proto(
5, /* nstack */
1, /* argc */
@@ -469,12 +469,12 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("I2C_Driver", 1714501658, 10),
- /* K1 */ be_nested_string("init", 380752755, 4),
- /* K2 */ be_nested_string("AXP192", 757230128, 6),
+ /* K0 */ be_nested_str(I2C_Driver),
+ /* K1 */ be_nested_str(init),
+ /* K2 */ be_nested_str(AXP192),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 9]) { /* code */
0x60040003, // 0000 GETGBL R1 G3
0x5C080000, // 0001 MOVE R2 R0
@@ -494,7 +494,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: get_bat_voltage
********************************************************************/
-be_local_closure(get_bat_voltage, /* name */
+be_local_closure(AXP192_get_bat_voltage, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -505,11 +505,11 @@ be_local_closure(get_bat_voltage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read12", -3890326, 6),
+ /* K0 */ be_nested_str(read12),
/* K1 */ be_const_real_hex(0x3A902DE0),
}),
- (be_nested_const_str("get_bat_voltage", 706676538, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_bat_voltage,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0077, // 0001 LDINT R3 120
@@ -525,7 +525,7 @@ be_local_closure(get_bat_voltage, /* name */
/********************************************************************
** Solidified function: set_ldo_enable
********************************************************************/
-be_local_closure(set_ldo_enable, /* name */
+be_local_closure(AXP192_set_ldo_enable, /* name */
be_nested_proto(
8, /* nstack */
3, /* argc */
@@ -537,11 +537,11 @@ be_local_closure(set_ldo_enable, /* name */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
/* K0 */ be_const_int(2),
- /* K1 */ be_nested_string("write_bit", -1633976860, 9),
+ /* K1 */ be_nested_str(write_bit),
/* K2 */ be_const_int(3),
}),
- (be_nested_const_str("set_ldo_enable", -1378465255, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_ldo_enable,
+ &be_const_str_solidified,
( &(const binstruction[15]) { /* code */
0x1C0C0300, // 0000 EQ R3 R1 K0
0x780E0004, // 0001 JMPF R3 #0007
@@ -567,7 +567,7 @@ be_local_closure(set_ldo_enable, /* name */
/********************************************************************
** Solidified function: set_dc_voltage
********************************************************************/
-be_local_closure(set_dc_voltage, /* name */
+be_local_closure(AXP192_set_dc_voltage, /* name */
be_nested_proto(
11, /* nstack */
3, /* argc */
@@ -582,11 +582,11 @@ be_local_closure(set_dc_voltage, /* name */
/* K1 */ be_const_int(3),
/* K2 */ be_const_int(0),
/* K3 */ be_const_int(2),
- /* K4 */ be_nested_string("write8", -1160975764, 6),
- /* K5 */ be_nested_string("read8", -1492179129, 5),
+ /* K4 */ be_nested_str(write8),
+ /* K5 */ be_nested_str(read8),
}),
- (be_nested_const_str("set_dc_voltage", -2112985360, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_dc_voltage,
+ &be_const_str_solidified,
( &(const binstruction[48]) { /* code */
0x140C0300, // 0000 LT R3 R1 K0
0x740E0001, // 0001 JMPT R3 #0004
@@ -645,7 +645,7 @@ be_local_closure(set_dc_voltage, /* name */
/********************************************************************
** Solidified function: write_gpio
********************************************************************/
-be_local_closure(write_gpio, /* name */
+be_local_closure(AXP192_write_gpio, /* name */
be_nested_proto(
8, /* nstack */
3, /* argc */
@@ -658,11 +658,11 @@ be_local_closure(write_gpio, /* name */
( &(const bvalue[ 4]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_const_int(2),
- /* K2 */ be_nested_string("write_bit", -1633976860, 9),
+ /* K2 */ be_nested_str(write_bit),
/* K3 */ be_const_int(3),
}),
- (be_nested_const_str("write_gpio", -2027026962, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_write_gpio,
+ &be_const_str_solidified,
( &(const binstruction[21]) { /* code */
0x280C0300, // 0000 GE R3 R1 K0
0x780E0007, // 0001 JMPF R3 #000A
@@ -694,7 +694,7 @@ be_local_closure(write_gpio, /* name */
/********************************************************************
** Solidified function: web_sensor
********************************************************************/
-be_local_closure(web_sensor, /* name */
+be_local_closure(AXP192_web_sensor, /* name */
be_nested_proto(
11, /* nstack */
1, /* argc */
@@ -705,23 +705,23 @@ be_local_closure(web_sensor, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[14]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("string", 398550328, 6),
- /* K2 */ be_nested_string("format", -1180859054, 6),
- /* K3 */ be_nested_string("{s}VBus Voltage{m}%.3f V{e}", 165651270, 27),
- /* K4 */ be_nested_string("{s}VBus Current{m}%.1f mA{e}", 1032721155, 28),
- /* K5 */ be_nested_string("{s}Batt Voltage{m}%.3f V{e}", -1110659097, 27),
- /* K6 */ be_nested_string("{s}Batt Current{m}%.1f mA{e}", 866537156, 28),
- /* K7 */ be_nested_string("{s}Temp AXP{m}%.1f °C{e}", -1990510004, 25),
- /* K8 */ be_nested_string("get_vbus_voltage", -1896756895, 16),
- /* K9 */ be_nested_string("get_bat_voltage", 706676538, 15),
- /* K10 */ be_nested_string("get_bat_current", 1912106073, 15),
- /* K11 */ be_nested_string("get_temp", -924047810, 8),
- /* K12 */ be_nested_string("tasmota", 424643812, 7),
- /* K13 */ be_nested_string("web_send_decimal", 1407210204, 16),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(string),
+ /* K2 */ be_nested_str(format),
+ /* K3 */ be_nested_str(_X7Bs_X7DVBus_X20Voltage_X7Bm_X7D_X25_X2E3f_X20V_X7Be_X7D),
+ /* K4 */ be_nested_str(_X7Bs_X7DVBus_X20Current_X7Bm_X7D_X25_X2E1f_X20mA_X7Be_X7D),
+ /* K5 */ be_nested_str(_X7Bs_X7DBatt_X20Voltage_X7Bm_X7D_X25_X2E3f_X20V_X7Be_X7D),
+ /* K6 */ be_nested_str(_X7Bs_X7DBatt_X20Current_X7Bm_X7D_X25_X2E1f_X20mA_X7Be_X7D),
+ /* K7 */ be_nested_str(_X7Bs_X7DTemp_X20AXP_X7Bm_X7D_X25_X2E1f_X20_XB0C_X7Be_X7D),
+ /* K8 */ be_nested_str(get_vbus_voltage),
+ /* K9 */ be_nested_str(get_bat_voltage),
+ /* K10 */ be_nested_str(get_bat_current),
+ /* K11 */ be_nested_str(get_temp),
+ /* K12 */ be_nested_str(tasmota),
+ /* K13 */ be_nested_str(web_send_decimal),
}),
- (be_nested_const_str("web_sensor", -1394870324, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_web_sensor,
+ &be_const_str_solidified,
( &(const binstruction[26]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x74060001, // 0001 JMPT R1 #0004
@@ -758,7 +758,7 @@ be_local_closure(web_sensor, /* name */
/********************************************************************
** Solidified function: get_bat_charge_current
********************************************************************/
-be_local_closure(get_bat_charge_current, /* name */
+be_local_closure(AXP192_get_bat_charge_current, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -769,11 +769,11 @@ be_local_closure(get_bat_charge_current, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("read13", 12887293, 6),
+ /* K0 */ be_nested_str(read13),
/* K1 */ be_const_real_hex(0x3F000000),
}),
- (be_nested_const_str("get_bat_charge_current", 1385293050, 22)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_bat_charge_current,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0079, // 0001 LDINT R3 122
@@ -789,7 +789,7 @@ be_local_closure(get_bat_charge_current, /* name */
/********************************************************************
** Solidified function: get_battery_chargin_status
********************************************************************/
-be_local_closure(get_battery_chargin_status, /* name */
+be_local_closure(AXP192_get_battery_chargin_status, /* name */
be_nested_proto(
6, /* nstack */
1, /* argc */
@@ -800,13 +800,13 @@ be_local_closure(get_battery_chargin_status, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read", -824204347, 4),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(1),
}),
- (be_nested_const_str("get_battery_chargin_status", -2061725725, 26)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_battery_chargin_status,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -824,7 +824,7 @@ be_local_closure(get_battery_chargin_status, /* name */
/********************************************************************
** Solidified function: get_input_power_status
********************************************************************/
-be_local_closure(get_input_power_status, /* name */
+be_local_closure(AXP192_get_input_power_status, /* name */
be_nested_proto(
6, /* nstack */
1, /* argc */
@@ -835,14 +835,14 @@ be_local_closure(get_input_power_status, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read", -824204347, 4),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(0),
/* K4 */ be_const_int(1),
}),
- (be_nested_const_str("get_input_power_status", -192138119, 22)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_input_power_status,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -866,29 +866,29 @@ be_local_class(AXP192,
&be_class_I2C_Driver,
be_nested_map(21,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("get_warning_level", 1737834441, 17, -1), be_const_closure(get_warning_level_closure) },
- { be_nested_key("get_vbus_current", 1205347942, 16, -1), be_const_closure(get_vbus_current_closure) },
- { be_nested_key("set_chg_current", 336304386, 15, 14), be_const_closure(set_chg_current_closure) },
- { be_nested_key("get_bat_current", 1912106073, 15, -1), be_const_closure(get_bat_current_closure) },
- { be_nested_key("get_bat_power", -1227592443, 13, 9), be_const_closure(get_bat_power_closure) },
- { be_nested_key("json_append", -1292948012, 11, -1), be_const_closure(json_append_closure) },
- { be_nested_key("get_vbus_voltage", -1896756895, 16, -1), be_const_closure(get_vbus_voltage_closure) },
- { be_nested_key("get_temp", -924047810, 8, -1), be_const_closure(get_temp_closure) },
- { be_nested_key("battery_present", -706570238, 15, -1), be_const_closure(battery_present_closure) },
- { be_nested_key("get_aps_voltage", -2001930861, 15, -1), be_const_closure(get_aps_voltage_closure) },
- { be_nested_key("set_dcdc_enable", 1594690786, 15, -1), be_const_closure(set_dcdc_enable_closure) },
- { be_nested_key("set_ldo_voltage", -204466136, 15, 7), be_const_closure(set_ldo_voltage_closure) },
- { be_nested_key("init", 380752755, 4, 2), be_const_closure(init_closure) },
- { be_nested_key("get_bat_voltage", 706676538, 15, 18), be_const_closure(get_bat_voltage_closure) },
- { be_nested_key("set_ldo_enable", -1378465255, 14, -1), be_const_closure(set_ldo_enable_closure) },
- { be_nested_key("set_dc_voltage", -2112985360, 14, 13), be_const_closure(set_dc_voltage_closure) },
- { be_nested_key("write_gpio", -2027026962, 10, -1), be_const_closure(write_gpio_closure) },
- { be_nested_key("web_sensor", -1394870324, 10, -1), be_const_closure(web_sensor_closure) },
- { be_nested_key("get_bat_charge_current", 1385293050, 22, 19), be_const_closure(get_bat_charge_current_closure) },
- { be_nested_key("get_battery_chargin_status", -2061725725, 26, -1), be_const_closure(get_battery_chargin_status_closure) },
- { be_nested_key("get_input_power_status", -192138119, 22, -1), be_const_closure(get_input_power_status_closure) },
+ { be_const_key(get_warning_level, -1), be_const_closure(AXP192_get_warning_level_closure) },
+ { be_const_key(get_vbus_current, -1), be_const_closure(AXP192_get_vbus_current_closure) },
+ { be_const_key(get_aps_voltage, -1), be_const_closure(AXP192_get_aps_voltage_closure) },
+ { be_const_key(get_bat_current, -1), be_const_closure(AXP192_get_bat_current_closure) },
+ { be_const_key(get_bat_power, 2), be_const_closure(AXP192_get_bat_power_closure) },
+ { be_const_key(json_append, -1), be_const_closure(AXP192_json_append_closure) },
+ { be_const_key(get_vbus_voltage, -1), be_const_closure(AXP192_get_vbus_voltage_closure) },
+ { be_const_key(get_battery_chargin_status, 9), be_const_closure(AXP192_get_battery_chargin_status_closure) },
+ { be_const_key(battery_present, -1), be_const_closure(AXP192_battery_present_closure) },
+ { be_const_key(get_bat_charge_current, 14), be_const_closure(AXP192_get_bat_charge_current_closure) },
+ { be_const_key(set_dcdc_enable, -1), be_const_closure(AXP192_set_dcdc_enable_closure) },
+ { be_const_key(get_temp, 19), be_const_closure(AXP192_get_temp_closure) },
+ { be_const_key(set_chg_current, 13), be_const_closure(AXP192_set_chg_current_closure) },
+ { be_const_key(set_ldo_enable, 18), be_const_closure(AXP192_set_ldo_enable_closure) },
+ { be_const_key(set_dc_voltage, -1), be_const_closure(AXP192_set_dc_voltage_closure) },
+ { be_const_key(get_bat_voltage, 7), be_const_closure(AXP192_get_bat_voltage_closure) },
+ { be_const_key(write_gpio, -1), be_const_closure(AXP192_write_gpio_closure) },
+ { be_const_key(web_sensor, -1), be_const_closure(AXP192_web_sensor_closure) },
+ { be_const_key(init, -1), be_const_closure(AXP192_init_closure) },
+ { be_const_key(set_ldo_voltage, -1), be_const_closure(AXP192_set_ldo_voltage_closure) },
+ { be_const_key(get_input_power_status, -1), be_const_closure(AXP192_get_input_power_status_closure) },
})),
- (be_nested_const_str("AXP192", 757230128, 6))
+ be_str_literal("AXP192")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_i2c_driverlib.c b/lib/libesp32/Berry/default/be_i2c_driverlib.c
index f1cedfe8b..45f829e19 100644
--- a/lib/libesp32/Berry/default/be_i2c_driverlib.c
+++ b/lib/libesp32/Berry/default/be_i2c_driverlib.c
@@ -9,12 +9,10 @@
*******************************************************************/
#include "be_constobj.h"
-extern bclass* be_class_Driver; // Parent class
-
/********************************************************************
** Solidified function: read32
********************************************************************/
-be_local_closure(read32, /* name */
+be_local_closure(I2C_Driver_read32, /* name */
be_nested_proto(
7, /* nstack */
2, /* argc */
@@ -25,16 +23,16 @@ be_local_closure(read32, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read_bytes", -718234123, 10),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read_bytes),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(0),
/* K4 */ be_const_int(1),
/* K5 */ be_const_int(2),
/* K6 */ be_const_int(3),
}),
- (be_nested_const_str("read32", 1741276240, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_read32,
+ &be_const_str_solidified,
( &(const binstruction[20]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -65,7 +63,7 @@ be_local_closure(read32, /* name */
/********************************************************************
** Solidified function: write8
********************************************************************/
-be_local_closure(write8, /* name */
+be_local_closure(I2C_Driver_write8, /* name */
be_nested_proto(
9, /* nstack */
3, /* argc */
@@ -76,13 +74,13 @@ be_local_closure(write8, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("write", -1104765092, 5),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(write),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(1),
}),
- (be_nested_const_str("write8", -1160975764, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_write8,
+ &be_const_str_solidified,
( &(const binstruction[ 8]) { /* code */
0x880C0100, // 0000 GETMBR R3 R0 K0
0x8C0C0701, // 0001 GETMET R3 R3 K1
@@ -101,7 +99,7 @@ be_local_closure(write8, /* name */
/********************************************************************
** Solidified function: read12
********************************************************************/
-be_local_closure(read12, /* name */
+be_local_closure(I2C_Driver_read12, /* name */
be_nested_proto(
7, /* nstack */
2, /* argc */
@@ -112,15 +110,15 @@ be_local_closure(read12, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read_bytes", -718234123, 10),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read_bytes),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(2),
/* K4 */ be_const_int(0),
/* K5 */ be_const_int(1),
}),
- (be_nested_const_str("read12", -3890326, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_read12,
+ &be_const_str_solidified,
( &(const binstruction[12]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -143,7 +141,7 @@ be_local_closure(read12, /* name */
/********************************************************************
** Solidified function: write_bit
********************************************************************/
-be_local_closure(write_bit, /* name */
+be_local_closure(I2C_Driver_write_bit, /* name */
be_nested_proto(
11, /* nstack */
4, /* argc */
@@ -156,11 +154,11 @@ be_local_closure(write_bit, /* name */
( &(const bvalue[ 4]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_const_int(1),
- /* K2 */ be_nested_string("write8", -1160975764, 6),
- /* K3 */ be_nested_string("read8", -1492179129, 5),
+ /* K2 */ be_nested_str(write8),
+ /* K3 */ be_nested_str(read8),
}),
- (be_nested_const_str("write_bit", -1633976860, 9)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_write_bit,
+ &be_const_str_solidified,
( &(const binstruction[26]) { /* code */
0x14100500, // 0000 LT R4 R2 K0
0x74120002, // 0001 JMPT R4 #0005
@@ -197,7 +195,7 @@ be_local_closure(write_bit, /* name */
/********************************************************************
** Solidified function: read24
********************************************************************/
-be_local_closure(read24, /* name */
+be_local_closure(I2C_Driver_read24, /* name */
be_nested_proto(
7, /* nstack */
2, /* argc */
@@ -208,16 +206,16 @@ be_local_closure(read24, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read_bytes", -718234123, 10),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read_bytes),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(3),
/* K4 */ be_const_int(0),
/* K5 */ be_const_int(1),
/* K6 */ be_const_int(2),
}),
- (be_nested_const_str("read24", 1808533811, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_read24,
+ &be_const_str_solidified,
( &(const binstruction[16]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -244,7 +242,7 @@ be_local_closure(read24, /* name */
/********************************************************************
** Solidified function: read8
********************************************************************/
-be_local_closure(read8, /* name */
+be_local_closure(I2C_Driver_read8, /* name */
be_nested_proto(
7, /* nstack */
2, /* argc */
@@ -255,13 +253,13 @@ be_local_closure(read8, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read", -824204347, 4),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(1),
}),
- (be_nested_const_str("read8", -1492179129, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_read8,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -279,7 +277,7 @@ be_local_closure(read8, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(I2C_Driver_init, /* name */
be_nested_proto(
10, /* nstack */
4, /* argc */
@@ -290,19 +288,19 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("get_tasmota", 334356779, 11),
- /* K1 */ be_nested_string("i2c_enabled", 218388101, 11),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
- /* K3 */ be_nested_string("wire", -212213352, 4),
- /* K4 */ be_nested_string("wire_scan", -1623691416, 9),
- /* K5 */ be_nested_string("function", -1630125495, 8),
- /* K6 */ be_nested_string("name", -1925595674, 4),
- /* K7 */ be_nested_string("I2C:", 813483371, 4),
- /* K8 */ be_nested_string("detected on bus", 1432002650, 15),
- /* K9 */ be_nested_string("bus", 1607822841, 3),
+ /* K0 */ be_nested_str(get_tasmota),
+ /* K1 */ be_nested_str(i2c_enabled),
+ /* K2 */ be_nested_str(addr),
+ /* K3 */ be_nested_str(wire),
+ /* K4 */ be_nested_str(wire_scan),
+ /* K5 */ be_nested_str(function),
+ /* K6 */ be_nested_str(name),
+ /* K7 */ be_nested_str(I2C_X3A),
+ /* K8 */ be_nested_str(detected_X20on_X20bus),
+ /* K9 */ be_nested_str(bus),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[44]) { /* code */
0x8C100100, // 0000 GETMET R4 R0 K0
0x7C100200, // 0001 CALL R4 1
@@ -357,7 +355,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: read13
********************************************************************/
-be_local_closure(read13, /* name */
+be_local_closure(I2C_Driver_read13, /* name */
be_nested_proto(
7, /* nstack */
2, /* argc */
@@ -368,15 +366,15 @@ be_local_closure(read13, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("wire", -212213352, 4),
- /* K1 */ be_nested_string("read_bytes", -718234123, 10),
- /* K2 */ be_nested_string("addr", 1087856498, 4),
+ /* K0 */ be_nested_str(wire),
+ /* K1 */ be_nested_str(read_bytes),
+ /* K2 */ be_nested_str(addr),
/* K3 */ be_const_int(2),
/* K4 */ be_const_int(0),
/* K5 */ be_const_int(1),
}),
- (be_nested_const_str("read13", 12887293, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_read13,
+ &be_const_str_solidified,
( &(const binstruction[12]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -395,27 +393,33 @@ be_local_closure(read13, /* name */
);
/*******************************************************************/
-#include "../generate/be_fixed_be_class_I2C_Driver.h"
-void be_load_driver_i2c_lib(bvm *vm) {
+/********************************************************************
+** Solidified class: I2C_Driver
+********************************************************************/
+be_local_class(I2C_Driver,
+ 3,
+ NULL,
+ be_nested_map(11,
+ ( (struct bmapnode*) &(const bmapnode[]) {
+ { be_const_key(read32, -1), be_const_closure(I2C_Driver_read32_closure) },
+ { be_const_key(write8, 6), be_const_closure(I2C_Driver_write8_closure) },
+ { be_const_key(name, -1), be_const_var(2) },
+ { be_const_key(addr, 8), be_const_var(1) },
+ { be_const_key(read12, -1), be_const_closure(I2C_Driver_read12_closure) },
+ { be_const_key(wire, 10), be_const_var(0) },
+ { be_const_key(read13, -1), be_const_closure(I2C_Driver_read13_closure) },
+ { be_const_key(read24, -1), be_const_closure(I2C_Driver_read24_closure) },
+ { be_const_key(read8, -1), be_const_closure(I2C_Driver_read8_closure) },
+ { be_const_key(init, -1), be_const_closure(I2C_Driver_init_closure) },
+ { be_const_key(write_bit, -1), be_const_closure(I2C_Driver_write_bit_closure) },
+ })),
+ be_str_literal("I2C_Driver")
+);
+/*******************************************************************/
+
+void be_load_I2C_Driver_class(bvm *vm) {
be_pushntvclass(vm, &be_class_I2C_Driver);
be_setglobal(vm, "I2C_Driver");
be_pop(vm, 1);
}
-/* @const_object_info_begin
-
-class be_class_I2C_Driver (scope: global, name: I2C_Driver, super: be_class_Driver) {
- wire, var
- addr, var
- name, var
-
- init, closure(init_closure)
- write8, closure(write8_closure)
- write_bit, closure(write_bit_closure)
- read8, closure(read8_closure)
- read12, closure(read12_closure)
- read13, closure(read13_closure)
- read24, closure(read24_closure)
- read32, closure(read32_closure)
-}
-@const_object_info_end */
diff --git a/lib/libesp32/Berry/default/be_leds_animator_lib.c b/lib/libesp32/Berry/default/be_leds_animator_lib.c
index c5783edb9..bd82193b9 100644
--- a/lib/libesp32/Berry/default/be_leds_animator_lib.c
+++ b/lib/libesp32/Berry/default/be_leds_animator_lib.c
@@ -20,17 +20,17 @@ be_local_closure(Leds_animator_init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 8]) { /* constants */
- /* K0 */ be_nested_string("strip", -48555823, 5),
- /* K1 */ be_nested_string("bri", 2112284244, 3),
- /* K2 */ be_nested_string("running", 343848780, 7),
- /* K3 */ be_nested_string("pixel_count", -1855836553, 11),
- /* K4 */ be_nested_string("animators", 279858213, 9),
- /* K5 */ be_nested_string("clear", 1550717474, 5),
- /* K6 */ be_nested_string("tasmota", 424643812, 7),
- /* K7 */ be_nested_string("add_driver", 1654458371, 10),
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(bri),
+ /* K2 */ be_nested_str(running),
+ /* K3 */ be_nested_str(pixel_count),
+ /* K4 */ be_nested_str(animators),
+ /* K5 */ be_nested_str(clear),
+ /* K6 */ be_nested_str(tasmota),
+ /* K7 */ be_nested_str(add_driver),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[18]) { /* code */
0x90020001, // 0000 SETMBR R0 K0 R1
0x540A0031, // 0001 LDINT R2 50
@@ -70,10 +70,10 @@ be_local_closure(Leds_animator_set_bri, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("bri", 2112284244, 3),
+ /* K0 */ be_nested_str(bri),
}),
- (be_nested_const_str("set_bri", -1505848517, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_bri,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x90020001, // 0000 SETMBR R0 K0 R1
0x80000000, // 0001 RET 0
@@ -97,10 +97,10 @@ be_local_closure(Leds_animator_stop, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("running", 343848780, 7),
+ /* K0 */ be_nested_str(running),
}),
- (be_nested_const_str("stop", -883741979, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_stop,
+ &be_const_str_solidified,
( &(const binstruction[ 3]) { /* code */
0x50040000, // 0000 LDBOOL R1 0 0
0x90020001, // 0001 SETMBR R0 K0 R1
@@ -125,8 +125,8 @@ be_local_closure(Leds_animator_animate, /* name */
NULL, /* no sub protos */
0, /* has constants */
NULL, /* no const */
- (be_nested_const_str("animate", -409180496, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_animate,
+ &be_const_str_solidified,
( &(const binstruction[ 1]) { /* code */
0x80000000, // 0000 RET 0
})
@@ -149,11 +149,11 @@ be_local_closure(Leds_animator_remove, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("remove_driver", 1030243768, 13),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(remove_driver),
}),
- (be_nested_const_str("remove", -611183107, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_remove,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -180,16 +180,16 @@ be_local_closure(Leds_animator_every_50ms, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("running", 343848780, 7),
+ /* K0 */ be_nested_str(running),
/* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("animators", 279858213, 9),
- /* K3 */ be_nested_string("is_running", -2068120035, 10),
- /* K4 */ be_nested_string("animate", -409180496, 7),
+ /* K2 */ be_nested_str(animators),
+ /* K3 */ be_nested_str(is_running),
+ /* K4 */ be_nested_str(animate),
/* K5 */ be_const_int(1),
- /* K6 */ be_nested_string("remove", -611183107, 6),
+ /* K6 */ be_nested_str(remove),
}),
- (be_nested_const_str("every_50ms", -1911083288, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_every_50ms,
+ &be_const_str_solidified,
( &(const binstruction[25]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x78060015, // 0001 JMPF R1 #0018
@@ -236,10 +236,10 @@ be_local_closure(Leds_animator_get_bri, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("bri", 2112284244, 3),
+ /* K0 */ be_nested_str(bri),
}),
- (be_nested_const_str("get_bri", 2041809895, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_bri,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x80040400, // 0001 RET 1 R2
@@ -263,10 +263,10 @@ be_local_closure(Leds_animator_start, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("running", 343848780, 7),
+ /* K0 */ be_nested_str(running),
}),
- (be_nested_const_str("start", 1697318111, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_start,
+ &be_const_str_solidified,
( &(const binstruction[ 3]) { /* code */
0x50040200, // 0000 LDBOOL R1 1 0
0x90020001, // 0001 SETMBR R0 K0 R1
@@ -291,12 +291,12 @@ be_local_closure(Leds_animator_add_anim, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("animators", 279858213, 9),
- /* K1 */ be_nested_string("push", -2022703139, 4),
- /* K2 */ be_nested_string("run", 718098122, 3),
+ /* K0 */ be_nested_str(animators),
+ /* K1 */ be_nested_str(push),
+ /* K2 */ be_nested_str(run),
}),
- (be_nested_const_str("add_anim", -314304628, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_add_anim,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -325,12 +325,12 @@ be_local_closure(Leds_animator_clear, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("stop", -883741979, 4),
- /* K1 */ be_nested_string("strip", -48555823, 5),
- /* K2 */ be_nested_string("clear", 1550717474, 5),
+ /* K0 */ be_nested_str(stop),
+ /* K1 */ be_nested_str(strip),
+ /* K2 */ be_nested_str(clear),
}),
- (be_nested_const_str("clear", 1550717474, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_clear,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x7C040200, // 0001 CALL R1 1
@@ -352,23 +352,23 @@ be_local_class(Leds_animator,
NULL,
be_nested_map(15,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, 7), be_const_closure(Leds_animator_init_closure) },
- { be_nested_key("set_bri", -1505848517, 7, -1), be_const_closure(Leds_animator_set_bri_closure) },
- { be_nested_key("stop", -883741979, 4, -1), be_const_closure(Leds_animator_stop_closure) },
- { be_nested_key("strip", -48555823, 5, 4), be_const_var(0) },
- { be_nested_key("animators", 279858213, 9, 12), be_const_var(4) },
- { be_nested_key("animate", -409180496, 7, -1), be_const_closure(Leds_animator_animate_closure) },
- { be_nested_key("remove", -611183107, 6, -1), be_const_closure(Leds_animator_remove_closure) },
- { be_nested_key("running", 343848780, 7, -1), be_const_var(3) },
- { be_nested_key("every_50ms", -1911083288, 10, -1), be_const_closure(Leds_animator_every_50ms_closure) },
- { be_nested_key("bri", 2112284244, 3, 6), be_const_var(2) },
- { be_nested_key("get_bri", 2041809895, 7, -1), be_const_closure(Leds_animator_get_bri_closure) },
- { be_nested_key("start", 1697318111, 5, -1), be_const_closure(Leds_animator_start_closure) },
- { be_nested_key("add_anim", -314304628, 8, 13), be_const_closure(Leds_animator_add_anim_closure) },
- { be_nested_key("pixel_count", -1855836553, 11, -1), be_const_var(1) },
- { be_nested_key("clear", 1550717474, 5, 1), be_const_closure(Leds_animator_clear_closure) },
+ { be_const_key(init, 12), be_const_closure(Leds_animator_init_closure) },
+ { be_const_key(clear, -1), be_const_closure(Leds_animator_clear_closure) },
+ { be_const_key(stop, -1), be_const_closure(Leds_animator_stop_closure) },
+ { be_const_key(strip, 4), be_const_var(0) },
+ { be_const_key(pixel_count, 6), be_const_var(1) },
+ { be_const_key(animate, -1), be_const_closure(Leds_animator_animate_closure) },
+ { be_const_key(add_anim, 13), be_const_closure(Leds_animator_add_anim_closure) },
+ { be_const_key(bri, -1), be_const_var(2) },
+ { be_const_key(every_50ms, -1), be_const_closure(Leds_animator_every_50ms_closure) },
+ { be_const_key(remove, 7), be_const_closure(Leds_animator_remove_closure) },
+ { be_const_key(get_bri, -1), be_const_closure(Leds_animator_get_bri_closure) },
+ { be_const_key(start, -1), be_const_closure(Leds_animator_start_closure) },
+ { be_const_key(running, -1), be_const_var(3) },
+ { be_const_key(animators, -1), be_const_var(4) },
+ { be_const_key(set_bri, 1), be_const_closure(Leds_animator_set_bri_closure) },
})),
- (be_nested_const_str("Leds_animator", 142168673, 13))
+ be_str_literal("Leds_animator")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_leds_lib.c b/lib/libesp32/Berry/default/be_leds_lib.c
index a4442df37..58b0a991e 100644
--- a/lib/libesp32/Berry/default/be_leds_lib.c
+++ b/lib/libesp32/Berry/default/be_leds_lib.c
@@ -7,11 +7,41 @@
#ifdef USE_WS2812
/********************************************************************
-** Solidified function: get_pixel_color
+** Solidified function: pixel_count
********************************************************************/
-be_local_closure(Leds_get_pixel_color, /* name */
+be_local_closure(Leds_matrix_pixel_count, /* name */
be_nested_proto(
- 6, /* nstack */
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(w),
+ /* K1 */ be_nested_str(h),
+ }),
+ &be_const_str_pixel_count,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x88080101, // 0001 GETMBR R2 R0 K1
+ 0x08040202, // 0002 MUL R1 R1 R2
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: set_alternate
+********************************************************************/
+be_local_closure(Leds_matrix_set_alternate, /* name */
+ be_nested_proto(
+ 2, /* nstack */
2, /* argc */
0, /* varg */
0, /* has upvals */
@@ -20,16 +50,13 @@ be_local_closure(Leds_get_pixel_color, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(alternate),
}),
- (be_nested_const_str("get_pixel_color", 337490048, 15)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 5]) { /* code */
- 0x8C080100, // 0000 GETMET R2 R0 K0
- 0x5412000A, // 0001 LDINT R4 11
- 0x5C140200, // 0002 MOVE R5 R1
- 0x7C080600, // 0003 CALL R2 3
- 0x80040400, // 0004 RET 1 R2
+ &be_const_str_set_alternate,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x90020001, // 0000 SETMBR R0 K0 R1
+ 0x80000000, // 0001 RET 0
})
)
);
@@ -37,11 +64,11 @@ be_local_closure(Leds_get_pixel_color, /* name */
/********************************************************************
-** Solidified function: pixels_buffer
+** Solidified function: pixel_size
********************************************************************/
-be_local_closure(Leds_pixels_buffer, /* name */
+be_local_closure(Leds_matrix_pixel_size, /* name */
be_nested_proto(
- 4, /* nstack */
+ 3, /* nstack */
1, /* argc */
0, /* varg */
0, /* has upvals */
@@ -49,15 +76,16 @@ be_local_closure(Leds_pixels_buffer, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(pixel_size),
}),
- (be_nested_const_str("pixels_buffer", 1229555807, 13)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_pixel_size,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x540E0005, // 0001 LDINT R3 6
- 0x7C040400, // 0002 CALL R1 2
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
0x80040200, // 0003 RET 1 R1
})
)
@@ -65,10 +93,232 @@ be_local_closure(Leds_pixels_buffer, /* name */
/*******************************************************************/
+/********************************************************************
+** Solidified function: set_pixel_color
+********************************************************************/
+be_local_closure(Leds_matrix_set_pixel_color, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(set_pixel_color),
+ /* K2 */ be_nested_str(offset),
+ }),
+ &be_const_str_set_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 8]) { /* code */
+ 0x88100100, // 0000 GETMBR R4 R0 K0
+ 0x8C100901, // 0001 GETMET R4 R4 K1
+ 0x88180102, // 0002 GETMBR R6 R0 K2
+ 0x00180206, // 0003 ADD R6 R1 R6
+ 0x5C1C0400, // 0004 MOVE R7 R2
+ 0x5C200600, // 0005 MOVE R8 R3
+ 0x7C100800, // 0006 CALL R4 4
+ 0x80000000, // 0007 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: set_matrix_pixel_color
+********************************************************************/
+be_local_closure(Leds_matrix_set_matrix_pixel_color, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 5, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 8]) { /* constants */
+ /* K0 */ be_nested_str(alternate),
+ /* K1 */ be_const_int(2),
+ /* K2 */ be_nested_str(strip),
+ /* K3 */ be_nested_str(set_pixel_color),
+ /* K4 */ be_nested_str(w),
+ /* K5 */ be_nested_str(h),
+ /* K6 */ be_const_int(1),
+ /* K7 */ be_nested_str(offset),
+ }),
+ &be_const_str_set_matrix_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[29]) { /* code */
+ 0x88140100, // 0000 GETMBR R5 R0 K0
+ 0x7816000F, // 0001 JMPF R5 #0012
+ 0x10140301, // 0002 MOD R5 R1 K1
+ 0x7816000D, // 0003 JMPF R5 #0012
+ 0x88140102, // 0004 GETMBR R5 R0 K2
+ 0x8C140B03, // 0005 GETMET R5 R5 K3
+ 0x881C0104, // 0006 GETMBR R7 R0 K4
+ 0x081C0207, // 0007 MUL R7 R1 R7
+ 0x88200105, // 0008 GETMBR R8 R0 K5
+ 0x001C0E08, // 0009 ADD R7 R7 R8
+ 0x041C0E02, // 000A SUB R7 R7 R2
+ 0x041C0F06, // 000B SUB R7 R7 K6
+ 0x88200107, // 000C GETMBR R8 R0 K7
+ 0x001C0E08, // 000D ADD R7 R7 R8
+ 0x5C200600, // 000E MOVE R8 R3
+ 0x5C240800, // 000F MOVE R9 R4
+ 0x7C140800, // 0010 CALL R5 4
+ 0x70020009, // 0011 JMP #001C
+ 0x88140102, // 0012 GETMBR R5 R0 K2
+ 0x8C140B03, // 0013 GETMET R5 R5 K3
+ 0x881C0104, // 0014 GETMBR R7 R0 K4
+ 0x081C0207, // 0015 MUL R7 R1 R7
+ 0x001C0E02, // 0016 ADD R7 R7 R2
+ 0x88200107, // 0017 GETMBR R8 R0 K7
+ 0x001C0E08, // 0018 ADD R7 R7 R8
+ 0x5C200600, // 0019 MOVE R8 R3
+ 0x5C240800, // 001A MOVE R9 R4
+ 0x7C140800, // 001B CALL R5 4
+ 0x80000000, // 001C RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: show
+********************************************************************/
+be_local_closure(Leds_matrix_show, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 7]) { /* constants */
+ /* K0 */ be_nested_str(offset),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(w),
+ /* K3 */ be_nested_str(h),
+ /* K4 */ be_nested_str(strip),
+ /* K5 */ be_nested_str(leds),
+ /* K6 */ be_nested_str(show),
+ }),
+ &be_const_str_show,
+ &be_const_str_solidified,
+ ( &(const binstruction[18]) { /* code */
+ 0x60080017, // 0000 GETGBL R2 G23
+ 0x5C0C0200, // 0001 MOVE R3 R1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x740A0009, // 0003 JMPT R2 #000E
+ 0x88080100, // 0004 GETMBR R2 R0 K0
+ 0x1C080501, // 0005 EQ R2 R2 K1
+ 0x780A0009, // 0006 JMPF R2 #0011
+ 0x88080102, // 0007 GETMBR R2 R0 K2
+ 0x880C0103, // 0008 GETMBR R3 R0 K3
+ 0x08080403, // 0009 MUL R2 R2 R3
+ 0x880C0104, // 000A GETMBR R3 R0 K4
+ 0x880C0705, // 000B GETMBR R3 R3 K5
+ 0x1C080403, // 000C EQ R2 R2 R3
+ 0x780A0002, // 000D JMPF R2 #0011
+ 0x88080104, // 000E GETMBR R2 R0 K4
+ 0x8C080506, // 000F GETMET R2 R2 K6
+ 0x7C080200, // 0010 CALL R2 1
+ 0x80000000, // 0011 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: is_dirty
+********************************************************************/
+be_local_closure(Leds_matrix_is_dirty, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(is_dirty),
+ }),
+ &be_const_str_is_dirty,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: clear_to
+********************************************************************/
+be_local_closure(Leds_matrix_clear_to, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 7]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str(w),
+ /* K2 */ be_nested_str(h),
+ /* K3 */ be_nested_str(strip),
+ /* K4 */ be_nested_str(set_pixel_color),
+ /* K5 */ be_nested_str(offset),
+ /* K6 */ be_const_int(1),
+ }),
+ &be_const_str_clear_to,
+ &be_const_str_solidified,
+ ( &(const binstruction[16]) { /* code */
+ 0x580C0000, // 0000 LDCONST R3 K0
+ 0x88100101, // 0001 GETMBR R4 R0 K1
+ 0x88140102, // 0002 GETMBR R5 R0 K2
+ 0x08100805, // 0003 MUL R4 R4 R5
+ 0x14100604, // 0004 LT R4 R3 R4
+ 0x78120008, // 0005 JMPF R4 #000F
+ 0x88100103, // 0006 GETMBR R4 R0 K3
+ 0x8C100904, // 0007 GETMET R4 R4 K4
+ 0x88180105, // 0008 GETMBR R6 R0 K5
+ 0x00180606, // 0009 ADD R6 R3 R6
+ 0x5C1C0200, // 000A MOVE R7 R1
+ 0x5C200400, // 000B MOVE R8 R2
+ 0x7C100800, // 000C CALL R4 4
+ 0x000C0706, // 000D ADD R3 R3 K6
+ 0x7001FFF1, // 000E JMP #0001
+ 0x80000000, // 000F RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
/********************************************************************
** Solidified function: clear
********************************************************************/
-be_local_closure(Leds_clear, /* name */
+be_local_closure(Leds_matrix_clear, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -79,12 +329,12 @@ be_local_closure(Leds_clear, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_str_literal("clear_to"),
+ /* K0 */ be_nested_str(clear_to),
/* K1 */ be_const_int(0),
- /* K2 */ be_nested_str_literal("show"),
+ /* K2 */ be_nested_str(show),
}),
- (be_nested_const_str("clear", 1550717474, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_clear,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x580C0001, // 0001 LDCONST R3 K1
@@ -99,66 +349,24 @@ be_local_closure(Leds_clear, /* name */
/********************************************************************
-** Solidified function: init
+** Solidified function: pixels_buffer
********************************************************************/
-be_local_closure(Leds_init, /* name */
+be_local_closure(Leds_matrix_pixels_buffer, /* name */
be_nested_proto(
- 11, /* nstack */
- 5, /* argc */
+ 2, /* nstack */
+ 1, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
0, /* has sup protos */
NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[11]) { /* constants */
- /* K0 */ be_nested_str_literal("gamma"),
- /* K1 */ be_nested_str_literal("pin"),
- /* K2 */ be_nested_str_literal("WS2812"),
- /* K3 */ be_const_int(0),
- /* K4 */ be_nested_str_literal("valuer_error"),
- /* K5 */ be_nested_str_literal("no GPIO specified for neopixelbus"),
- /* K6 */ be_nested_str_literal("ctor"),
- /* K7 */ be_nested_str_literal("_p"),
- /* K8 */ be_nested_str_literal("internal_error"),
- /* K9 */ be_nested_str_literal("couldn't not initialize noepixelbus"),
- /* K10 */ be_nested_str_literal("begin"),
- }),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[32]) { /* code */
- 0x50140200, // 0000 LDBOOL R5 1 0
- 0x90020005, // 0001 SETMBR R0 K0 R5
- 0x4C140000, // 0002 LDNIL R5
- 0x1C140405, // 0003 EQ R5 R2 R5
- 0x78160008, // 0004 JMPF R5 #000E
- 0x8C140501, // 0005 GETMET R5 R2 K1
- 0x881C0502, // 0006 GETMBR R7 R2 K2
- 0x7C140400, // 0007 CALL R5 2
- 0x28140B03, // 0008 GE R5 R5 K3
- 0x78160003, // 0009 JMPF R5 #000E
- 0x8C140501, // 000A GETMET R5 R2 K1
- 0x881C0502, // 000B GETMBR R7 R2 K2
- 0x7C140400, // 000C CALL R5 2
- 0x5C080A00, // 000D MOVE R2 R5
- 0x4C140000, // 000E LDNIL R5
- 0x1C140405, // 000F EQ R5 R2 R5
- 0x78160000, // 0010 JMPF R5 #0012
- 0xB0060905, // 0011 RAISE 1 K4 K5
- 0x8C140106, // 0012 GETMET R5 R0 K6
- 0x5C1C0200, // 0013 MOVE R7 R1
- 0x5C200400, // 0014 MOVE R8 R2
- 0x5C240600, // 0015 MOVE R9 R3
- 0x5C280800, // 0016 MOVE R10 R4
- 0x7C140A00, // 0017 CALL R5 5
- 0x88140107, // 0018 GETMBR R5 R0 K7
- 0x4C180000, // 0019 LDNIL R6
- 0x1C140A06, // 001A EQ R5 R5 R6
- 0x78160000, // 001B JMPF R5 #001D
- 0xB0061109, // 001C RAISE 1 K8 K9
- 0x8C14010A, // 001D GETMET R5 R0 K10
- 0x7C140200, // 001E CALL R5 1
- 0x80000000, // 001F RET 0
+ 0, /* has constants */
+ NULL, /* no const */
+ &be_const_str_pixels_buffer,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x4C040000, // 0000 LDNIL R1
+ 0x80040200, // 0001 RET 1 R1
})
)
);
@@ -166,12 +374,48 @@ be_local_closure(Leds_init, /* name */
/********************************************************************
-** Solidified function: set_pixel_color
+** Solidified function: init
********************************************************************/
-be_local_closure(Leds_set_pixel_color, /* name */
+be_local_closure(Leds_matrix_init, /* name */
be_nested_proto(
- 12, /* nstack */
- 4, /* argc */
+ 6, /* nstack */
+ 5, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(offset),
+ /* K2 */ be_nested_str(h),
+ /* K3 */ be_nested_str(w),
+ /* K4 */ be_nested_str(alternate),
+ }),
+ &be_const_str_init,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 7]) { /* code */
+ 0x90020001, // 0000 SETMBR R0 K0 R1
+ 0x90020204, // 0001 SETMBR R0 K1 R4
+ 0x90020403, // 0002 SETMBR R0 K2 R3
+ 0x90020602, // 0003 SETMBR R0 K3 R2
+ 0x50140000, // 0004 LDBOOL R5 0 0
+ 0x90020805, // 0005 SETMBR R0 K4 R5
+ 0x80000000, // 0006 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: dirty
+********************************************************************/
+be_local_closure(Leds_matrix_dirty, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
@@ -179,21 +423,229 @@ be_local_closure(Leds_set_pixel_color, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
- /* K1 */ be_nested_str_literal("to_gamma"),
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(dirty),
}),
- (be_nested_const_str("set_pixel_color", 1275248356, 15)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 9]) { /* code */
- 0x8C100100, // 0000 GETMET R4 R0 K0
- 0x541A0009, // 0001 LDINT R6 10
- 0x5C1C0200, // 0002 MOVE R7 R1
- 0x8C200101, // 0003 GETMET R8 R0 K1
- 0x5C280400, // 0004 MOVE R10 R2
- 0x5C2C0600, // 0005 MOVE R11 R3
- 0x7C200600, // 0006 CALL R8 3
- 0x7C100800, // 0007 CALL R4 4
- 0x80000000, // 0008 RET 0
+ &be_const_str_dirty,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80000000, // 0003 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_pixel_color
+********************************************************************/
+be_local_closure(Leds_matrix_get_pixel_color, /* name */
+ be_nested_proto(
+ 5, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(get_pixel_color),
+ /* K2 */ be_nested_str(offseta),
+ }),
+ &be_const_str_get_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x8C080501, // 0001 GETMET R2 R2 K1
+ 0x88100102, // 0002 GETMBR R4 R0 K2
+ 0x00100204, // 0003 ADD R4 R1 R4
+ 0x7C080400, // 0004 CALL R2 2
+ 0x80040400, // 0005 RET 1 R2
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_alternate
+********************************************************************/
+be_local_closure(Leds_matrix_get_alternate, /* name */
+ be_nested_proto(
+ 2, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str(alternate),
+ }),
+ &be_const_str_get_alternate,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x80040200, // 0001 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: begin
+********************************************************************/
+be_local_closure(Leds_matrix_begin, /* name */
+ be_nested_proto(
+ 1, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 0, /* has constants */
+ NULL, /* no const */
+ &be_const_str_begin,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 1]) { /* code */
+ 0x80000000, // 0000 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: can_show
+********************************************************************/
+be_local_closure(Leds_matrix_can_show, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(can_show),
+ }),
+ &be_const_str_can_show,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified class: Leds_matrix
+********************************************************************/
+be_local_class(Leds_matrix,
+ 5,
+ NULL,
+ be_nested_map(21,
+ ( (struct bmapnode*) &(const bmapnode[]) {
+ { be_const_key(pixel_count, -1), be_const_closure(Leds_matrix_pixel_count_closure) },
+ { be_const_key(h, 6), be_const_var(2) },
+ { be_const_key(set_alternate, 7), be_const_closure(Leds_matrix_set_alternate_closure) },
+ { be_const_key(pixel_size, 16), be_const_closure(Leds_matrix_pixel_size_closure) },
+ { be_const_key(set_pixel_color, 19), be_const_closure(Leds_matrix_set_pixel_color_closure) },
+ { be_const_key(set_matrix_pixel_color, 10), be_const_closure(Leds_matrix_set_matrix_pixel_color_closure) },
+ { be_const_key(show, -1), be_const_closure(Leds_matrix_show_closure) },
+ { be_const_key(alternate, -1), be_const_var(4) },
+ { be_const_key(strip, -1), be_const_var(0) },
+ { be_const_key(clear_to, -1), be_const_closure(Leds_matrix_clear_to_closure) },
+ { be_const_key(w, 15), be_const_var(3) },
+ { be_const_key(pixels_buffer, -1), be_const_closure(Leds_matrix_pixels_buffer_closure) },
+ { be_const_key(init, -1), be_const_closure(Leds_matrix_init_closure) },
+ { be_const_key(dirty, -1), be_const_closure(Leds_matrix_dirty_closure) },
+ { be_const_key(get_pixel_color, -1), be_const_closure(Leds_matrix_get_pixel_color_closure) },
+ { be_const_key(get_alternate, 17), be_const_closure(Leds_matrix_get_alternate_closure) },
+ { be_const_key(offset, 8), be_const_var(1) },
+ { be_const_key(clear, -1), be_const_closure(Leds_matrix_clear_closure) },
+ { be_const_key(begin, -1), be_const_closure(Leds_matrix_begin_closure) },
+ { be_const_key(is_dirty, -1), be_const_closure(Leds_matrix_is_dirty_closure) },
+ { be_const_key(can_show, -1), be_const_closure(Leds_matrix_can_show_closure) },
+ })),
+ be_str_literal("Leds_matrix")
+);
+
+/********************************************************************
+** Solidified function: create_matrix
+********************************************************************/
+be_local_closure(Leds_create_matrix, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str(leds),
+ /* K2 */ be_nested_str(value_error),
+ /* K3 */ be_nested_str(out_X20of_X20range),
+ /* K4 */ be_const_class(be_class_Leds_matrix),
+ }),
+ &be_const_str_create_matrix,
+ &be_const_str_solidified,
+ ( &(const binstruction[37]) { /* code */
+ 0x60100009, // 0000 GETGBL R4 G9
+ 0x5C140600, // 0001 MOVE R5 R3
+ 0x7C100200, // 0002 CALL R4 1
+ 0x5C0C0800, // 0003 MOVE R3 R4
+ 0x60100009, // 0004 GETGBL R4 G9
+ 0x5C140200, // 0005 MOVE R5 R1
+ 0x7C100200, // 0006 CALL R4 1
+ 0x5C040800, // 0007 MOVE R1 R4
+ 0x60100009, // 0008 GETGBL R4 G9
+ 0x5C140400, // 0009 MOVE R5 R2
+ 0x7C100200, // 000A CALL R4 1
+ 0x5C080800, // 000B MOVE R2 R4
+ 0x4C100000, // 000C LDNIL R4
+ 0x1C100604, // 000D EQ R4 R3 R4
+ 0x78120000, // 000E JMPF R4 #0010
+ 0x580C0000, // 000F LDCONST R3 K0
+ 0x08100202, // 0010 MUL R4 R1 R2
+ 0x00100803, // 0011 ADD R4 R4 R3
+ 0x88140101, // 0012 GETMBR R5 R0 K1
+ 0x24100805, // 0013 GT R4 R4 R5
+ 0x74120005, // 0014 JMPT R4 #001B
+ 0x14100500, // 0015 LT R4 R2 K0
+ 0x74120003, // 0016 JMPT R4 #001B
+ 0x14100300, // 0017 LT R4 R1 K0
+ 0x74120001, // 0018 JMPT R4 #001B
+ 0x14100700, // 0019 LT R4 R3 K0
+ 0x78120000, // 001A JMPF R4 #001C
+ 0xB0060503, // 001B RAISE 1 K2 K3
+ 0x58100004, // 001C LDCONST R4 K4
+ 0xB4000004, // 001D CLASS K4
+ 0x5C140800, // 001E MOVE R5 R4
+ 0x5C180000, // 001F MOVE R6 R0
+ 0x5C1C0200, // 0020 MOVE R7 R1
+ 0x5C200400, // 0021 MOVE R8 R2
+ 0x5C240600, // 0022 MOVE R9 R3
+ 0x7C140800, // 0023 CALL R5 4
+ 0x80040A00, // 0024 RET 1 R5
})
)
);
@@ -214,11 +666,11 @@ be_local_closure(Leds_begin, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(call_native),
/* K1 */ be_const_int(1),
}),
- (be_nested_const_str("begin", 1748273790, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_begin,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x580C0001, // 0001 LDCONST R3 K1
@@ -244,16 +696,16 @@ be_local_closure(Leds_to_gamma, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_str_literal("tasmota"),
- /* K1 */ be_nested_str_literal("scale_uint"),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(scale_uint),
/* K2 */ be_const_int(0),
/* K3 */ be_const_int(16711680),
- /* K4 */ be_nested_str_literal("gamma"),
- /* K5 */ be_nested_str_literal("light"),
- /* K6 */ be_nested_str_literal("gamma8"),
+ /* K4 */ be_nested_str(gamma),
+ /* K5 */ be_nested_str(light),
+ /* K6 */ be_nested_str(gamma8),
}),
- (be_nested_const_str("to_gamma", 1597139862, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_to_gamma,
+ &be_const_str_solidified,
( &(const binstruction[67]) { /* code */
0x4C0C0000, // 0000 LDNIL R3
0x200C0403, // 0001 NE R3 R2 R3
@@ -342,10 +794,10 @@ be_local_closure(Leds_pixel_count, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(call_native),
}),
- (be_nested_const_str("pixel_count", -1855836553, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_pixel_count,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0007, // 0001 LDINT R3 8
@@ -358,29 +810,37 @@ be_local_closure(Leds_pixel_count, /* name */
/********************************************************************
-** Solidified function: can_show
+** Solidified function: matrix
********************************************************************/
-be_local_closure(Leds_can_show, /* name */
+be_local_closure(Leds_matrix, /* name */
be_nested_proto(
- 4, /* nstack */
- 1, /* argc */
+ 10, /* nstack */
+ 4, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
- /* K1 */ be_const_int(3),
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(Leds),
+ /* K1 */ be_nested_str(create_matrix),
+ /* K2 */ be_const_int(0),
}),
- (be_nested_const_str("can_show", 960091187, 8)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 4]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x580C0001, // 0001 LDCONST R3 K1
- 0x7C040400, // 0002 CALL R1 2
- 0x80040200, // 0003 RET 1 R1
+ &be_const_str_matrix,
+ &be_const_str_solidified,
+ ( &(const binstruction[11]) { /* code */
+ 0xB8120000, // 0000 GETNGBL R4 K0
+ 0x08140001, // 0001 MUL R5 R0 R1
+ 0x5C180400, // 0002 MOVE R6 R2
+ 0x5C1C0600, // 0003 MOVE R7 R3
+ 0x7C100600, // 0004 CALL R4 3
+ 0x8C140901, // 0005 GETMET R5 R4 K1
+ 0x5C1C0000, // 0006 MOVE R7 R0
+ 0x5C200200, // 0007 MOVE R8 R1
+ 0x58240002, // 0008 LDCONST R9 K2
+ 0x7C140800, // 0009 CALL R5 4
+ 0x80040A00, // 000A RET 1 R5
})
)
);
@@ -401,10 +861,10 @@ be_local_closure(Leds_pixel_size, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(call_native),
}),
- (be_nested_const_str("pixel_size", -2085831511, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_pixel_size,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0006, // 0001 LDINT R3 7
@@ -417,9 +877,9 @@ be_local_closure(Leds_pixel_size, /* name */
/********************************************************************
-** Solidified function: dirty
+** Solidified function: pixels_buffer
********************************************************************/
-be_local_closure(Leds_dirty, /* name */
+be_local_closure(Leds_pixels_buffer, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -430,15 +890,15 @@ be_local_closure(Leds_dirty, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(call_native),
}),
- (be_nested_const_str("dirty", -1627386213, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_pixels_buffer,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
- 0x540E0004, // 0001 LDINT R3 5
+ 0x540E0005, // 0001 LDINT R3 6
0x7C040400, // 0002 CALL R1 2
- 0x80000000, // 0003 RET 0
+ 0x80040200, // 0003 RET 1 R1
})
)
);
@@ -446,29 +906,29 @@ be_local_closure(Leds_dirty, /* name */
/********************************************************************
-** Solidified function: show
+** Solidified function: get_pixel_color
********************************************************************/
-be_local_closure(Leds_show, /* name */
+be_local_closure(Leds_get_pixel_color, /* name */
be_nested_proto(
- 4, /* nstack */
- 1, /* argc */
+ 6, /* nstack */
+ 2, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
- /* K1 */ be_const_int(2),
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str(call_native),
}),
- (be_nested_const_str("show", -1454906820, 4)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 4]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x580C0001, // 0001 LDCONST R3 K1
- 0x7C040400, // 0002 CALL R1 2
- 0x80000000, // 0003 RET 0
+ &be_const_str_get_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 5]) { /* code */
+ 0x8C080100, // 0000 GETMET R2 R0 K0
+ 0x5412000A, // 0001 LDINT R4 11
+ 0x5C140200, // 0002 MOVE R5 R1
+ 0x7C080600, // 0003 CALL R2 3
+ 0x80040400, // 0004 RET 1 R2
})
)
);
@@ -476,12 +936,12 @@ be_local_closure(Leds_show, /* name */
/********************************************************************
-** Solidified function: clear_to
+** Solidified function: set_pixel_color
********************************************************************/
-be_local_closure(Leds_clear_to, /* name */
+be_local_closure(Leds_set_pixel_color, /* name */
be_nested_proto(
- 10, /* nstack */
- 3, /* argc */
+ 12, /* nstack */
+ 4, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
@@ -489,20 +949,21 @@ be_local_closure(Leds_clear_to, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
- /* K1 */ be_nested_str_literal("to_gamma"),
+ /* K0 */ be_nested_str(call_native),
+ /* K1 */ be_nested_str(to_gamma),
}),
- (be_nested_const_str("clear_to", -766965166, 8)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 8]) { /* code */
- 0x8C0C0100, // 0000 GETMET R3 R0 K0
- 0x54160008, // 0001 LDINT R5 9
- 0x8C180101, // 0002 GETMET R6 R0 K1
- 0x5C200200, // 0003 MOVE R8 R1
- 0x5C240400, // 0004 MOVE R9 R2
- 0x7C180600, // 0005 CALL R6 3
- 0x7C0C0600, // 0006 CALL R3 3
- 0x80000000, // 0007 RET 0
+ &be_const_str_set_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 9]) { /* code */
+ 0x8C100100, // 0000 GETMET R4 R0 K0
+ 0x541A0009, // 0001 LDINT R6 10
+ 0x5C1C0200, // 0002 MOVE R7 R1
+ 0x8C200101, // 0003 GETMET R8 R0 K1
+ 0x5C280400, // 0004 MOVE R10 R2
+ 0x5C2C0600, // 0005 MOVE R11 R3
+ 0x7C200600, // 0006 CALL R8 3
+ 0x7C100800, // 0007 CALL R4 4
+ 0x80000000, // 0008 RET 0
})
)
);
@@ -523,10 +984,10 @@ be_local_closure(Leds_is_dirty, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(call_native),
}),
- (be_nested_const_str("is_dirty", 418034110, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_is_dirty,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x540E0003, // 0001 LDINT R3 4
@@ -538,6 +999,205 @@ be_local_closure(Leds_is_dirty, /* name */
/*******************************************************************/
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(Leds_init, /* name */
+ be_nested_proto(
+ 11, /* nstack */
+ 5, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[12]) { /* constants */
+ /* K0 */ be_nested_str(gamma),
+ /* K1 */ be_nested_str(leds),
+ /* K2 */ be_nested_str(pin),
+ /* K3 */ be_nested_str(WS2812),
+ /* K4 */ be_const_int(0),
+ /* K5 */ be_nested_str(valuer_error),
+ /* K6 */ be_nested_str(no_X20GPIO_X20specified_X20for_X20neopixelbus),
+ /* K7 */ be_nested_str(ctor),
+ /* K8 */ be_nested_str(_p),
+ /* K9 */ be_nested_str(internal_error),
+ /* K10 */ be_nested_str(couldn_X27t_X20not_X20initialize_X20noepixelbus),
+ /* K11 */ be_nested_str(begin),
+ }),
+ &be_const_str_init,
+ &be_const_str_solidified,
+ ( &(const binstruction[36]) { /* code */
+ 0x50140200, // 0000 LDBOOL R5 1 0
+ 0x90020005, // 0001 SETMBR R0 K0 R5
+ 0x60140009, // 0002 GETGBL R5 G9
+ 0x5C180200, // 0003 MOVE R6 R1
+ 0x7C140200, // 0004 CALL R5 1
+ 0x90020205, // 0005 SETMBR R0 K1 R5
+ 0x4C140000, // 0006 LDNIL R5
+ 0x1C140405, // 0007 EQ R5 R2 R5
+ 0x78160008, // 0008 JMPF R5 #0012
+ 0x8C140502, // 0009 GETMET R5 R2 K2
+ 0x881C0503, // 000A GETMBR R7 R2 K3
+ 0x7C140400, // 000B CALL R5 2
+ 0x28140B04, // 000C GE R5 R5 K4
+ 0x78160003, // 000D JMPF R5 #0012
+ 0x8C140502, // 000E GETMET R5 R2 K2
+ 0x881C0503, // 000F GETMBR R7 R2 K3
+ 0x7C140400, // 0010 CALL R5 2
+ 0x5C080A00, // 0011 MOVE R2 R5
+ 0x4C140000, // 0012 LDNIL R5
+ 0x1C140405, // 0013 EQ R5 R2 R5
+ 0x78160000, // 0014 JMPF R5 #0016
+ 0xB0060B06, // 0015 RAISE 1 K5 K6
+ 0x8C140107, // 0016 GETMET R5 R0 K7
+ 0x881C0101, // 0017 GETMBR R7 R0 K1
+ 0x5C200400, // 0018 MOVE R8 R2
+ 0x5C240600, // 0019 MOVE R9 R3
+ 0x5C280800, // 001A MOVE R10 R4
+ 0x7C140A00, // 001B CALL R5 5
+ 0x88140108, // 001C GETMBR R5 R0 K8
+ 0x4C180000, // 001D LDNIL R6
+ 0x1C140A06, // 001E EQ R5 R5 R6
+ 0x78160000, // 001F JMPF R5 #0021
+ 0xB006130A, // 0020 RAISE 1 K9 K10
+ 0x8C14010B, // 0021 GETMET R5 R0 K11
+ 0x7C140200, // 0022 CALL R5 1
+ 0x80000000, // 0023 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: clear_to
+********************************************************************/
+be_local_closure(Leds_clear_to, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(call_native),
+ /* K1 */ be_nested_str(to_gamma),
+ }),
+ &be_const_str_clear_to,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 8]) { /* code */
+ 0x8C0C0100, // 0000 GETMET R3 R0 K0
+ 0x54160008, // 0001 LDINT R5 9
+ 0x8C180101, // 0002 GETMET R6 R0 K1
+ 0x5C200200, // 0003 MOVE R8 R1
+ 0x5C240400, // 0004 MOVE R9 R2
+ 0x7C180600, // 0005 CALL R6 3
+ 0x7C0C0600, // 0006 CALL R3 3
+ 0x80000000, // 0007 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: can_show
+********************************************************************/
+be_local_closure(Leds_can_show, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(call_native),
+ /* K1 */ be_const_int(3),
+ }),
+ &be_const_str_can_show,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x580C0001, // 0001 LDCONST R3 K1
+ 0x7C040400, // 0002 CALL R1 2
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: clear
+********************************************************************/
+be_local_closure(Leds_clear, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(clear_to),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(show),
+ }),
+ &be_const_str_clear,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x580C0001, // 0001 LDCONST R3 K1
+ 0x7C040400, // 0002 CALL R1 2
+ 0x8C040102, // 0003 GETMET R1 R0 K2
+ 0x7C040200, // 0004 CALL R1 1
+ 0x80000000, // 0005 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: show
+********************************************************************/
+be_local_closure(Leds_show, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(call_native),
+ /* K1 */ be_const_int(2),
+ }),
+ &be_const_str_show,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x580C0001, // 0001 LDCONST R3 K1
+ 0x7C040400, // 0002 CALL R1 2
+ 0x80000000, // 0003 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
/********************************************************************
** Solidified function: ctor
********************************************************************/
@@ -552,11 +1212,11 @@ be_local_closure(Leds_ctor, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_literal("call_native"),
+ /* K0 */ be_nested_str(call_native),
/* K1 */ be_const_int(0),
}),
- (be_nested_const_str("ctor", 375399343, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_ctor,
+ &be_const_str_solidified,
( &(const binstruction[16]) { /* code */
0x4C100000, // 0000 LDNIL R4
0x1C100604, // 0001 EQ R4 R3 R4
@@ -580,31 +1240,567 @@ be_local_closure(Leds_ctor, /* name */
/*******************************************************************/
+/********************************************************************
+** Solidified function: dirty
+********************************************************************/
+be_local_closure(Leds_dirty, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str(call_native),
+ }),
+ &be_const_str_dirty,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x540E0004, // 0001 LDINT R3 5
+ 0x7C040400, // 0002 CALL R1 2
+ 0x80000000, // 0003 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_pixel_color
+********************************************************************/
+be_local_closure(Leds_segment_get_pixel_color, /* name */
+ be_nested_proto(
+ 5, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(get_pixel_color),
+ /* K2 */ be_nested_str(offseta),
+ }),
+ &be_const_str_get_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x8C080501, // 0001 GETMET R2 R2 K1
+ 0x88100102, // 0002 GETMBR R4 R0 K2
+ 0x00100204, // 0003 ADD R4 R1 R4
+ 0x7C080400, // 0004 CALL R2 2
+ 0x80040400, // 0005 RET 1 R2
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: clear_to
+********************************************************************/
+be_local_closure(Leds_segment_clear_to, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str(leds),
+ /* K2 */ be_nested_str(strip),
+ /* K3 */ be_nested_str(set_pixel_color),
+ /* K4 */ be_nested_str(offset),
+ /* K5 */ be_const_int(1),
+ }),
+ &be_const_str_clear_to,
+ &be_const_str_solidified,
+ ( &(const binstruction[14]) { /* code */
+ 0x580C0000, // 0000 LDCONST R3 K0
+ 0x88100101, // 0001 GETMBR R4 R0 K1
+ 0x14100604, // 0002 LT R4 R3 R4
+ 0x78120008, // 0003 JMPF R4 #000D
+ 0x88100102, // 0004 GETMBR R4 R0 K2
+ 0x8C100903, // 0005 GETMET R4 R4 K3
+ 0x88180104, // 0006 GETMBR R6 R0 K4
+ 0x00180606, // 0007 ADD R6 R3 R6
+ 0x5C1C0200, // 0008 MOVE R7 R1
+ 0x5C200400, // 0009 MOVE R8 R2
+ 0x7C100800, // 000A CALL R4 4
+ 0x000C0705, // 000B ADD R3 R3 K5
+ 0x7001FFF3, // 000C JMP #0001
+ 0x80000000, // 000D RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: can_show
+********************************************************************/
+be_local_closure(Leds_segment_can_show, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(can_show),
+ }),
+ &be_const_str_can_show,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: set_pixel_color
+********************************************************************/
+be_local_closure(Leds_segment_set_pixel_color, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(set_pixel_color),
+ /* K2 */ be_nested_str(offset),
+ }),
+ &be_const_str_set_pixel_color,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 8]) { /* code */
+ 0x88100100, // 0000 GETMBR R4 R0 K0
+ 0x8C100901, // 0001 GETMET R4 R4 K1
+ 0x88180102, // 0002 GETMBR R6 R0 K2
+ 0x00180206, // 0003 ADD R6 R1 R6
+ 0x5C1C0400, // 0004 MOVE R7 R2
+ 0x5C200600, // 0005 MOVE R8 R3
+ 0x7C100800, // 0006 CALL R4 4
+ 0x80000000, // 0007 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: clear
+********************************************************************/
+be_local_closure(Leds_segment_clear, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(clear_to),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(show),
+ }),
+ &be_const_str_clear,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x580C0001, // 0001 LDCONST R3 K1
+ 0x7C040400, // 0002 CALL R1 2
+ 0x8C040102, // 0003 GETMET R1 R0 K2
+ 0x7C040200, // 0004 CALL R1 1
+ 0x80000000, // 0005 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: begin
+********************************************************************/
+be_local_closure(Leds_segment_begin, /* name */
+ be_nested_proto(
+ 1, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 0, /* has constants */
+ NULL, /* no const */
+ &be_const_str_begin,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 1]) { /* code */
+ 0x80000000, // 0000 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: pixel_count
+********************************************************************/
+be_local_closure(Leds_segment_pixel_count, /* name */
+ be_nested_proto(
+ 2, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str(leds),
+ }),
+ &be_const_str_pixel_count,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x80040200, // 0001 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(Leds_segment_init, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(offset),
+ /* K2 */ be_nested_str(leds),
+ }),
+ &be_const_str_init,
+ &be_const_str_solidified,
+ ( &(const binstruction[10]) { /* code */
+ 0x90020001, // 0000 SETMBR R0 K0 R1
+ 0x60100009, // 0001 GETGBL R4 G9
+ 0x5C140400, // 0002 MOVE R5 R2
+ 0x7C100200, // 0003 CALL R4 1
+ 0x90020204, // 0004 SETMBR R0 K1 R4
+ 0x60100009, // 0005 GETGBL R4 G9
+ 0x5C140600, // 0006 MOVE R5 R3
+ 0x7C100200, // 0007 CALL R4 1
+ 0x90020404, // 0008 SETMBR R0 K2 R4
+ 0x80000000, // 0009 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: pixel_size
+********************************************************************/
+be_local_closure(Leds_segment_pixel_size, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(pixel_size),
+ }),
+ &be_const_str_pixel_size,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: dirty
+********************************************************************/
+be_local_closure(Leds_segment_dirty, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(dirty),
+ }),
+ &be_const_str_dirty,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80000000, // 0003 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: show
+********************************************************************/
+be_local_closure(Leds_segment_show, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(offset),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(leds),
+ /* K3 */ be_nested_str(strip),
+ /* K4 */ be_nested_str(show),
+ }),
+ &be_const_str_show,
+ &be_const_str_solidified,
+ ( &(const binstruction[16]) { /* code */
+ 0x60080017, // 0000 GETGBL R2 G23
+ 0x5C0C0200, // 0001 MOVE R3 R1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x740A0007, // 0003 JMPT R2 #000C
+ 0x88080100, // 0004 GETMBR R2 R0 K0
+ 0x1C080501, // 0005 EQ R2 R2 K1
+ 0x780A0007, // 0006 JMPF R2 #000F
+ 0x88080102, // 0007 GETMBR R2 R0 K2
+ 0x880C0103, // 0008 GETMBR R3 R0 K3
+ 0x880C0702, // 0009 GETMBR R3 R3 K2
+ 0x1C080403, // 000A EQ R2 R2 R3
+ 0x780A0002, // 000B JMPF R2 #000F
+ 0x88080103, // 000C GETMBR R2 R0 K3
+ 0x8C080504, // 000D GETMET R2 R2 K4
+ 0x7C080200, // 000E CALL R2 1
+ 0x80000000, // 000F RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: is_dirty
+********************************************************************/
+be_local_closure(Leds_segment_is_dirty, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(strip),
+ /* K1 */ be_nested_str(is_dirty),
+ }),
+ &be_const_str_is_dirty,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80040200, // 0003 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: pixels_buffer
+********************************************************************/
+be_local_closure(Leds_segment_pixels_buffer, /* name */
+ be_nested_proto(
+ 2, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 0, /* has constants */
+ NULL, /* no const */
+ &be_const_str_pixels_buffer,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x4C040000, // 0000 LDNIL R1
+ 0x80040200, // 0001 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified class: Leds_segment
+********************************************************************/
+be_local_class(Leds_segment,
+ 3,
+ NULL,
+ be_nested_map(16,
+ ( (struct bmapnode*) &(const bmapnode[]) {
+ { be_const_key(get_pixel_color, -1), be_const_closure(Leds_segment_get_pixel_color_closure) },
+ { be_const_key(strip, -1), be_const_var(0) },
+ { be_const_key(clear_to, 5), be_const_closure(Leds_segment_clear_to_closure) },
+ { be_const_key(can_show, 13), be_const_closure(Leds_segment_can_show_closure) },
+ { be_const_key(set_pixel_color, -1), be_const_closure(Leds_segment_set_pixel_color_closure) },
+ { be_const_key(clear, -1), be_const_closure(Leds_segment_clear_closure) },
+ { be_const_key(is_dirty, -1), be_const_closure(Leds_segment_is_dirty_closure) },
+ { be_const_key(pixel_count, -1), be_const_closure(Leds_segment_pixel_count_closure) },
+ { be_const_key(leds, -1), be_const_var(2) },
+ { be_const_key(pixel_size, -1), be_const_closure(Leds_segment_pixel_size_closure) },
+ { be_const_key(offset, -1), be_const_var(1) },
+ { be_const_key(dirty, 8), be_const_closure(Leds_segment_dirty_closure) },
+ { be_const_key(show, -1), be_const_closure(Leds_segment_show_closure) },
+ { be_const_key(init, -1), be_const_closure(Leds_segment_init_closure) },
+ { be_const_key(begin, 6), be_const_closure(Leds_segment_begin_closure) },
+ { be_const_key(pixels_buffer, -1), be_const_closure(Leds_segment_pixels_buffer_closure) },
+ })),
+ be_str_literal("Leds_segment")
+);
+
+/********************************************************************
+** Solidified function: create_segment
+********************************************************************/
+be_local_closure(Leds_create_segment, /* name */
+ be_nested_proto(
+ 8, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(leds),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(value_error),
+ /* K3 */ be_nested_str(out_X20of_X20range),
+ /* K4 */ be_const_class(be_class_Leds_segment),
+ }),
+ &be_const_str_create_segment,
+ &be_const_str_solidified,
+ ( &(const binstruction[23]) { /* code */
+ 0x600C0009, // 0000 GETGBL R3 G9
+ 0x5C100200, // 0001 MOVE R4 R1
+ 0x7C0C0200, // 0002 CALL R3 1
+ 0x60100009, // 0003 GETGBL R4 G9
+ 0x5C140400, // 0004 MOVE R5 R2
+ 0x7C100200, // 0005 CALL R4 1
+ 0x000C0604, // 0006 ADD R3 R3 R4
+ 0x88100100, // 0007 GETMBR R4 R0 K0
+ 0x240C0604, // 0008 GT R3 R3 R4
+ 0x740E0003, // 0009 JMPT R3 #000E
+ 0x140C0301, // 000A LT R3 R1 K1
+ 0x740E0001, // 000B JMPT R3 #000E
+ 0x140C0501, // 000C LT R3 R2 K1
+ 0x780E0000, // 000D JMPF R3 #000F
+ 0xB0060503, // 000E RAISE 1 K2 K3
+ 0x580C0004, // 000F LDCONST R3 K4
+ 0xB4000004, // 0010 CLASS K4
+ 0x5C100600, // 0011 MOVE R4 R3
+ 0x5C140000, // 0012 MOVE R5 R0
+ 0x5C180200, // 0013 MOVE R6 R1
+ 0x5C1C0400, // 0014 MOVE R7 R2
+ 0x7C100600, // 0015 CALL R4 3
+ 0x80040800, // 0016 RET 1 R4
+ })
+ )
+);
+/*******************************************************************/
+
+
/********************************************************************
** Solidified class: Leds
********************************************************************/
extern const bclass be_class_Leds_ntv;
be_local_class(Leds,
- 1,
+ 2,
&be_class_Leds_ntv,
- be_nested_map(16,
+ be_nested_map(20,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("get_pixel_color", 337490048, 15, -1), be_const_closure(Leds_get_pixel_color_closure) },
- { be_nested_key("ctor", 375399343, 4, -1), be_const_closure(Leds_ctor_closure) },
- { be_nested_key("clear", 1550717474, 5, 8), be_const_closure(Leds_clear_closure) },
- { be_nested_key("init", 380752755, 4, 13), be_const_closure(Leds_init_closure) },
- { be_nested_key("set_pixel_color", 1275248356, 15, -1), be_const_closure(Leds_set_pixel_color_closure) },
- { be_nested_key("is_dirty", 418034110, 8, -1), be_const_closure(Leds_is_dirty_closure) },
- { be_nested_key("to_gamma", 1597139862, 8, -1), be_const_closure(Leds_to_gamma_closure) },
- { be_nested_key("pixel_count", -1855836553, 11, -1), be_const_closure(Leds_pixel_count_closure) },
- { be_nested_key("clear_to", -766965166, 8, -1), be_const_closure(Leds_clear_to_closure) },
- { be_nested_key("pixel_size", -2085831511, 10, -1), be_const_closure(Leds_pixel_size_closure) },
- { be_nested_key("gamma", -802614262, 5, -1), be_const_var(0) },
- { be_nested_key("dirty", -1627386213, 5, -1), be_const_closure(Leds_dirty_closure) },
- { be_nested_key("show", -1454906820, 4, -1), be_const_closure(Leds_show_closure) },
- { be_nested_key("can_show", 960091187, 8, -1), be_const_closure(Leds_can_show_closure) },
- { be_nested_key("begin", 1748273790, 5, 5), be_const_closure(Leds_begin_closure) },
- { be_nested_key("pixels_buffer", 1229555807, 13, 1), be_const_closure(Leds_pixels_buffer_closure) },
+ { be_const_key(pixel_count, -1), be_const_closure(Leds_pixel_count_closure) },
+ { be_const_key(dirty, 6), be_const_closure(Leds_dirty_closure) },
+ { be_const_key(to_gamma, -1), be_const_closure(Leds_to_gamma_closure) },
+ { be_const_key(create_matrix, 1), be_const_closure(Leds_create_matrix_closure) },
+ { be_const_key(matrix, -1), be_const_static_closure(Leds_matrix_closure) },
+ { be_const_key(pixel_size, -1), be_const_closure(Leds_pixel_size_closure) },
+ { be_const_key(ctor, 0), be_const_closure(Leds_ctor_closure) },
+ { be_const_key(pixels_buffer, 13), be_const_closure(Leds_pixels_buffer_closure) },
+ { be_const_key(get_pixel_color, -1), be_const_closure(Leds_get_pixel_color_closure) },
+ { be_const_key(show, -1), be_const_closure(Leds_show_closure) },
+ { be_const_key(begin, 17), be_const_closure(Leds_begin_closure) },
+ { be_const_key(leds, -1), be_const_var(1) },
+ { be_const_key(clear, -1), be_const_closure(Leds_clear_closure) },
+ { be_const_key(can_show, -1), be_const_closure(Leds_can_show_closure) },
+ { be_const_key(gamma, 12), be_const_var(0) },
+ { be_const_key(init, 11), be_const_closure(Leds_init_closure) },
+ { be_const_key(set_pixel_color, 9), be_const_closure(Leds_set_pixel_color_closure) },
+ { be_const_key(clear_to, 18), be_const_closure(Leds_clear_to_closure) },
+ { be_const_key(is_dirty, -1), be_const_closure(Leds_is_dirty_closure) },
+ { be_const_key(create_segment, -1), be_const_closure(Leds_create_segment_closure) },
})),
be_str_literal("Leds")
);
diff --git a/lib/libesp32/Berry/default/be_leds_matrix_lib.c b/lib/libesp32/Berry/default/be_leds_matrix_lib.c
deleted file mode 100644
index 1aafb3db4..000000000
--- a/lib/libesp32/Berry/default/be_leds_matrix_lib.c
+++ /dev/null
@@ -1,185 +0,0 @@
-/********************************************************************
- * Berry class `Leds_matrix`
- *
- *******************************************************************/
-#include "be_constobj.h"
-
-#ifdef USE_WS2812
-
-/********************************************************************
-** Solidified function: get_alternate
-********************************************************************/
-be_local_closure(Leds_matrix_get_alternate, /* name */
- be_nested_proto(
- 2, /* nstack */
- 1, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("alternate"),
- }),
- (be_nested_const_str("get_alternate", 1450148894, 13)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 2]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x80040200, // 0001 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: set_alternate
-********************************************************************/
-be_local_closure(Leds_matrix_set_alternate, /* name */
- be_nested_proto(
- 2, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_literal("alternate"),
- }),
- (be_nested_const_str("set_alternate", 1709680562, 13)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 2]) { /* code */
- 0x90020001, // 0000 SETMBR R0 K0 R1
- 0x80000000, // 0001 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: set_matrix_pixel_color
-********************************************************************/
-be_local_closure(Leds_matrix_set_matrix_pixel_color, /* name */
- be_nested_proto(
- 10, /* nstack */
- 5, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_str_literal("alternate"),
- /* K1 */ be_const_int(2),
- /* K2 */ be_nested_str_literal("set_pixel_color"),
- /* K3 */ be_nested_str_literal("w"),
- /* K4 */ be_nested_str_literal("h"),
- /* K5 */ be_const_int(1),
- }),
- (be_nested_const_str("set_matrix_pixel_color", 1197149462, 22)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[23]) { /* code */
- 0x88140100, // 0000 GETMBR R5 R0 K0
- 0x7816000C, // 0001 JMPF R5 #000F
- 0x10140301, // 0002 MOD R5 R1 K1
- 0x7816000A, // 0003 JMPF R5 #000F
- 0x8C140102, // 0004 GETMET R5 R0 K2
- 0x881C0103, // 0005 GETMBR R7 R0 K3
- 0x081C0207, // 0006 MUL R7 R1 R7
- 0x88200104, // 0007 GETMBR R8 R0 K4
- 0x001C0E08, // 0008 ADD R7 R7 R8
- 0x041C0E02, // 0009 SUB R7 R7 R2
- 0x041C0F05, // 000A SUB R7 R7 K5
- 0x5C200600, // 000B MOVE R8 R3
- 0x5C240800, // 000C MOVE R9 R4
- 0x7C140800, // 000D CALL R5 4
- 0x70020006, // 000E JMP #0016
- 0x8C140102, // 000F GETMET R5 R0 K2
- 0x881C0103, // 0010 GETMBR R7 R0 K3
- 0x081C0207, // 0011 MUL R7 R1 R7
- 0x001C0E02, // 0012 ADD R7 R7 R2
- 0x5C200600, // 0013 MOVE R8 R3
- 0x5C240800, // 0014 MOVE R9 R4
- 0x7C140800, // 0015 CALL R5 4
- 0x80000000, // 0016 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: init
-********************************************************************/
-be_local_closure(Leds_matrix_init, /* name */
- be_nested_proto(
- 10, /* nstack */
- 5, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_str_literal("w"),
- /* K1 */ be_nested_str_literal("h"),
- /* K2 */ be_nested_str_literal("alternate"),
- /* K3 */ be_nested_str_literal("init"),
- }),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[13]) { /* code */
- 0x90020001, // 0000 SETMBR R0 K0 R1
- 0x90020202, // 0001 SETMBR R0 K1 R2
- 0x50140000, // 0002 LDBOOL R5 0 0
- 0x90020405, // 0003 SETMBR R0 K2 R5
- 0x60140003, // 0004 GETGBL R5 G3
- 0x5C180000, // 0005 MOVE R6 R0
- 0x7C140200, // 0006 CALL R5 1
- 0x8C140B03, // 0007 GETMET R5 R5 K3
- 0x081C0202, // 0008 MUL R7 R1 R2
- 0x5C200600, // 0009 MOVE R8 R3
- 0x5C240800, // 000A MOVE R9 R4
- 0x7C140800, // 000B CALL R5 4
- 0x80000000, // 000C RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified class: Leds_matrix
-********************************************************************/
-extern const bclass be_class_Leds;
-be_local_class(Leds_matrix,
- 3,
- &be_class_Leds,
- be_nested_map(7,
- ( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, 3), be_const_closure(Leds_matrix_init_closure) },
- { be_nested_key("h", -317966505, 1, -1), be_const_var(0) },
- { be_nested_key("set_alternate", 1709680562, 13, 6), be_const_closure(Leds_matrix_set_alternate_closure) },
- { be_nested_key("set_matrix_pixel_color", 1197149462, 22, 4), be_const_closure(Leds_matrix_set_matrix_pixel_color_closure) },
- { be_nested_key("w", -234078410, 1, -1), be_const_var(1) },
- { be_nested_key("get_alternate", 1450148894, 13, 0), be_const_closure(Leds_matrix_get_alternate_closure) },
- { be_nested_key("alternate", 1140253277, 9, -1), be_const_var(2) },
- })),
- be_str_literal("Leds_matrix")
-);
-/*******************************************************************/
-
-void be_load_Leds_matrix_class(bvm *vm) {
- be_pushntvclass(vm, &be_class_Leds_matrix);
- be_setglobal(vm, "Leds_matrix");
- be_pop(vm, 1);
-}
-
-
-#endif // USE_WS2812
diff --git a/lib/libesp32/Berry/default/be_leds_ntv_lib.c b/lib/libesp32/Berry/default/be_leds_ntv_lib.c
index 5affc1c71..4d5b07bb6 100644
--- a/lib/libesp32/Berry/default/be_leds_ntv_lib.c
+++ b/lib/libesp32/Berry/default/be_leds_ntv_lib.c
@@ -8,9 +8,7 @@ class Leds_ntv
var _p # pointer to internal object of type `NeoPixelBus(uint16_t countPixels, uint8_t pin)`
var _t # type of led strip
static WS2812_GRB = 1
- static WS2812_GRBW = 2
- static SK6812_GRB = 3
- static SK6812_GRBW = 4
+ static SK6812_GRBW = 2
# skeleton for native call
def call_native() end
@@ -30,15 +28,13 @@ extern int be_neopixelbus_call_native(bvm *vm);
be_local_class(Leds_ntv,
2,
NULL,
- be_nested_map(7,
+ be_nested_map(5,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("WS2812_GRB", 1736405692, 10, 5), be_const_int(1) },
- { be_nested_key("_p", 1594591802, 2, -1), be_const_var(0) },
- { be_nested_key("WS2812_GRBW", -660477967, 11, 3), be_const_int(2) },
- { be_nested_key("call_native", 1389147405, 11, -1), be_const_func(be_neopixelbus_call_native) },
- { be_nested_key("SK6812_GRBW", 81157857, 11, -1), be_const_int(4) },
- { be_nested_key("_t", 1527481326, 2, -1), be_const_var(1) },
- { be_nested_key("SK6812_GRB", 1159411308, 10, 1), be_const_int(3) },
+ { be_const_key(call_native, -1), be_const_func(be_neopixelbus_call_native) },
+ { be_const_key(_t, -1), be_const_var(1) },
+ { be_const_key(_p, 3), be_const_var(0) },
+ { be_const_key(SK6812_GRBW, 4), be_const_int(2) },
+ { be_const_key(WS2812_GRB, -1), be_const_int(1) },
})),
be_str_literal("Leds_ntv")
);
diff --git a/lib/libesp32/Berry/default/be_lvgl_clock_icon_lib.c b/lib/libesp32/Berry/default/be_lvgl_clock_icon_lib.c
index 4cef73ac9..c9cf7f207 100644
--- a/lib/libesp32/Berry/default/be_lvgl_clock_icon_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_clock_icon_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: set_time
********************************************************************/
-be_local_closure(set_time, /* name */
+be_local_closure(lv_clock_icon_set_time, /* name */
be_nested_proto(
11, /* nstack */
4, /* argc */
@@ -21,19 +21,19 @@ be_local_closure(set_time, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("hour", -1241306097, 4),
- /* K2 */ be_nested_string("minute", 954666857, 6),
- /* K3 */ be_nested_string("sec", -1155074638, 3),
- /* K4 */ be_nested_string("format", -1180859054, 6),
- /* K5 */ be_nested_string("%02d%s%02d", 1587999717, 10),
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(hour),
+ /* K2 */ be_nested_str(minute),
+ /* K3 */ be_nested_str(sec),
+ /* K4 */ be_nested_str(format),
+ /* K5 */ be_nested_str(_X2502d_X25s_X2502d),
/* K6 */ be_const_int(2),
- /* K7 */ be_nested_string(":", 1057798253, 1),
- /* K8 */ be_nested_string(" ", 621580159, 1),
- /* K9 */ be_nested_string("set_text", 1849641155, 8),
+ /* K7 */ be_nested_str(_X3A),
+ /* K8 */ be_nested_str(_X20),
+ /* K9 */ be_nested_str(set_text),
}),
- (be_nested_const_str("set_time", 900236405, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_time,
+ &be_const_str_solidified,
( &(const binstruction[27]) { /* code */
0xA4120000, // 0000 IMPORT R4 K0
0x88140101, // 0001 GETMBR R5 R0 K1
@@ -71,7 +71,7 @@ be_local_closure(set_time, /* name */
/********************************************************************
** Solidified function: every_second
********************************************************************/
-be_local_closure(every_second, /* name */
+be_local_closure(lv_clock_icon_every_second, /* name */
be_nested_proto(
7, /* nstack */
1, /* argc */
@@ -82,18 +82,18 @@ be_local_closure(every_second, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("time_dump", -964556549, 9),
- /* K2 */ be_nested_string("rtc", 1070575216, 3),
- /* K3 */ be_nested_string("local", -1673304312, 5),
- /* K4 */ be_nested_string("year", -1367388900, 4),
- /* K5 */ be_nested_string("set_time", 900236405, 8),
- /* K6 */ be_nested_string("hour", -1241306097, 4),
- /* K7 */ be_nested_string("min", -913357481, 3),
- /* K8 */ be_nested_string("sec", -1155074638, 3),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(time_dump),
+ /* K2 */ be_nested_str(rtc),
+ /* K3 */ be_nested_str(local),
+ /* K4 */ be_nested_str(year),
+ /* K5 */ be_nested_str(set_time),
+ /* K6 */ be_nested_str(hour),
+ /* K7 */ be_nested_str(min),
+ /* K8 */ be_nested_str(sec),
}),
- (be_nested_const_str("every_second", 2075451465, 12)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_every_second,
+ &be_const_str_solidified,
( &(const binstruction[17]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -121,7 +121,7 @@ be_local_closure(every_second, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_clock_icon_init, /* name */
be_nested_proto(
11, /* nstack */
2, /* argc */
@@ -132,31 +132,31 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[22]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("lv", 1529997255, 2),
- /* K2 */ be_nested_string("seg7_font", -195276607, 9),
- /* K3 */ be_nested_string("set_style_text_font", 1028590019, 19),
- /* K4 */ be_nested_string("PART_MAIN", -1821475788, 9),
- /* K5 */ be_nested_string("STATE_DEFAULT", 712406428, 13),
- /* K6 */ be_nested_string("get_height", -723211773, 10),
- /* K7 */ be_nested_string("set_text", 1849641155, 8),
- /* K8 */ be_nested_string("--:--", 1370615441, 5),
- /* K9 */ be_nested_string("refr_size", 1958144468, 9),
- /* K10 */ be_nested_string("get_width", -1001549996, 9),
- /* K11 */ be_nested_string("set_y", 1866178391, 5),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(lv),
+ /* K2 */ be_nested_str(seg7_font),
+ /* K3 */ be_nested_str(set_style_text_font),
+ /* K4 */ be_nested_str(PART_MAIN),
+ /* K5 */ be_nested_str(STATE_DEFAULT),
+ /* K6 */ be_nested_str(get_height),
+ /* K7 */ be_nested_str(set_text),
+ /* K8 */ be_nested_str(_X2D_X2D_X3A_X2D_X2D),
+ /* K9 */ be_nested_str(refr_size),
+ /* K10 */ be_nested_str(get_width),
+ /* K11 */ be_nested_str(set_y),
/* K12 */ be_const_int(2),
- /* K13 */ be_nested_string("get_style_pad_right", -1144679830, 19),
- /* K14 */ be_nested_string("set_x", 1849400772, 5),
+ /* K13 */ be_nested_str(get_style_pad_right),
+ /* K14 */ be_nested_str(set_x),
/* K15 */ be_const_int(3),
- /* K16 */ be_nested_string("set_style_pad_right", -980898242, 19),
- /* K17 */ be_nested_string("set_style_bg_color", 1689513089, 18),
- /* K18 */ be_nested_string("color", 1031692888, 5),
- /* K19 */ be_nested_string("COLOR_BLACK", 264427940, 11),
- /* K20 */ be_nested_string("tasmota", 424643812, 7),
- /* K21 */ be_nested_string("add_driver", 1654458371, 10),
+ /* K16 */ be_nested_str(set_style_pad_right),
+ /* K17 */ be_nested_str(set_style_bg_color),
+ /* K18 */ be_nested_str(color),
+ /* K19 */ be_nested_str(COLOR_BLACK),
+ /* K20 */ be_nested_str(tasmota),
+ /* K21 */ be_nested_str(add_driver),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[82]) { /* code */
0x60080003, // 0000 GETGBL R2 G3
0x5C0C0000, // 0001 MOVE R3 R0
@@ -249,7 +249,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: del
********************************************************************/
-be_local_closure(del, /* name */
+be_local_closure(lv_clock_icon_del, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -260,12 +260,12 @@ be_local_closure(del, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("del", -816214454, 3),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("remove_driver", 1030243768, 13),
+ /* K0 */ be_nested_str(del),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(remove_driver),
}),
- (be_nested_const_str("del", -816214454, 3)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_del,
+ &be_const_str_solidified,
( &(const binstruction[10]) { /* code */
0x60040003, // 0000 GETGBL R1 G3
0x5C080000, // 0001 MOVE R2 R0
@@ -292,15 +292,15 @@ be_local_class(lv_clock_icon,
&be_class_lv_label,
be_nested_map(7,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("sec", -1155074638, 3, -1), be_const_var(2) },
- { be_nested_key("hour", -1241306097, 4, -1), be_const_var(0) },
- { be_nested_key("set_time", 900236405, 8, 6), be_const_closure(set_time_closure) },
- { be_nested_key("every_second", 2075451465, 12, -1), be_const_closure(every_second_closure) },
- { be_nested_key("minute", 954666857, 6, -1), be_const_var(1) },
- { be_nested_key("init", 380752755, 4, 2), be_const_closure(init_closure) },
- { be_nested_key("del", -816214454, 3, -1), be_const_closure(del_closure) },
+ { be_const_key(sec, -1), be_const_var(2) },
+ { be_const_key(hour, -1), be_const_var(0) },
+ { be_const_key(set_time, 6), be_const_closure(lv_clock_icon_set_time_closure) },
+ { be_const_key(every_second, -1), be_const_closure(lv_clock_icon_every_second_closure) },
+ { be_const_key(minute, -1), be_const_var(1) },
+ { be_const_key(init, 2), be_const_closure(lv_clock_icon_init_closure) },
+ { be_const_key(del, -1), be_const_closure(lv_clock_icon_del_closure) },
})),
- (be_nested_const_str("lv_clock_icon", -1037751086, 13))
+ be_str_literal("lv_clock_icon")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_glob_lib.c b/lib/libesp32/Berry/default/be_lvgl_glob_lib.c
index 31619f1c4..01bd4ed1d 100644
--- a/lib/libesp32/Berry/default/be_lvgl_glob_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_glob_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: get_object_from_ptr
********************************************************************/
-be_local_closure(get_object_from_ptr, /* name */
+be_local_closure(LVGL_glob_get_object_from_ptr, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -21,11 +21,11 @@ be_local_closure(get_object_from_ptr, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("cb_obj", 1195696482, 6),
- /* K1 */ be_nested_string("find", -1108310694, 4),
+ /* K0 */ be_nested_str(cb_obj),
+ /* K1 */ be_nested_str(find),
}),
- (be_nested_const_str("get_object_from_ptr", -1949948095, 19)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_object_from_ptr,
+ &be_const_str_solidified,
( &(const binstruction[10]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x4C0C0000, // 0001 LDNIL R3
@@ -46,7 +46,7 @@ be_local_closure(get_object_from_ptr, /* name */
/********************************************************************
** Solidified function: widget_event_impl
********************************************************************/
-be_local_closure(widget_event_impl, /* name */
+be_local_closure(LVGL_glob_widget_event_impl, /* name */
be_nested_proto(
12, /* nstack */
3, /* argc */
@@ -57,18 +57,18 @@ be_local_closure(widget_event_impl, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
- /* K0 */ be_nested_string("introspect", 164638290, 10),
- /* K1 */ be_nested_string("lv", 1529997255, 2),
- /* K2 */ be_nested_string("lv_obj_class", -255311002, 12),
- /* K3 */ be_nested_string("lv_event", -1860877328, 8),
- /* K4 */ be_nested_string("target", 845187144, 6),
- /* K5 */ be_nested_string("get_object_from_ptr", -1949948095, 19),
- /* K6 */ be_nested_string("instance", 193386898, 8),
- /* K7 */ be_nested_string("get", 1410115415, 3),
- /* K8 */ be_nested_string("widget_event", 1951408186, 12),
+ /* K0 */ be_nested_str(introspect),
+ /* K1 */ be_nested_str(lv),
+ /* K2 */ be_nested_str(lv_obj_class),
+ /* K3 */ be_nested_str(lv_event),
+ /* K4 */ be_nested_str(target),
+ /* K5 */ be_nested_str(get_object_from_ptr),
+ /* K6 */ be_nested_str(instance),
+ /* K7 */ be_nested_str(get),
+ /* K8 */ be_nested_str(widget_event),
}),
- (be_nested_const_str("widget_event_impl", -2116536735, 17)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_widget_event_impl,
+ &be_const_str_solidified,
( &(const binstruction[30]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0xB8120200, // 0001 GETNGBL R4 K1
@@ -109,7 +109,7 @@ be_local_closure(widget_event_impl, /* name */
/********************************************************************
** Solidified function: lvgl_event_dispatch
********************************************************************/
-be_local_closure(lvgl_event_dispatch, /* name */
+be_local_closure(LVGL_glob_lvgl_event_dispatch, /* name */
be_nested_proto(
10, /* nstack */
2, /* argc */
@@ -120,16 +120,16 @@ be_local_closure(lvgl_event_dispatch, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("introspect", 164638290, 10),
- /* K1 */ be_nested_string("lv", 1529997255, 2),
- /* K2 */ be_nested_string("lv_event", -1860877328, 8),
- /* K3 */ be_nested_string("toptr", -915119842, 5),
- /* K4 */ be_nested_string("target", 845187144, 6),
- /* K5 */ be_nested_string("cb_event_closure", -466699971, 16),
- /* K6 */ be_nested_string("get_object_from_ptr", -1949948095, 19),
+ /* K0 */ be_nested_str(introspect),
+ /* K1 */ be_nested_str(lv),
+ /* K2 */ be_nested_str(lv_event),
+ /* K3 */ be_nested_str(toptr),
+ /* K4 */ be_nested_str(target),
+ /* K5 */ be_nested_str(cb_event_closure),
+ /* K6 */ be_nested_str(get_object_from_ptr),
}),
- (be_nested_const_str("lvgl_event_dispatch", 2104396622, 19)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_lvgl_event_dispatch,
+ &be_const_str_solidified,
( &(const binstruction[20]) { /* code */
0xA40A0000, // 0000 IMPORT R2 K0
0xB80E0200, // 0001 GETNGBL R3 K1
@@ -160,7 +160,7 @@ be_local_closure(lvgl_event_dispatch, /* name */
/********************************************************************
** Solidified function: widget_dtor_impl
********************************************************************/
-be_local_closure(widget_dtor_impl, /* name */
+be_local_closure(LVGL_glob_widget_dtor_impl, /* name */
be_nested_proto(
10, /* nstack */
3, /* argc */
@@ -171,16 +171,16 @@ be_local_closure(widget_dtor_impl, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("introspect", 164638290, 10),
- /* K1 */ be_nested_string("lv", 1529997255, 2),
- /* K2 */ be_nested_string("lv_obj_class", -255311002, 12),
- /* K3 */ be_nested_string("get_object_from_ptr", -1949948095, 19),
- /* K4 */ be_nested_string("instance", 193386898, 8),
- /* K5 */ be_nested_string("get", 1410115415, 3),
- /* K6 */ be_nested_string("widget_destructor", -87578951, 17),
+ /* K0 */ be_nested_str(introspect),
+ /* K1 */ be_nested_str(lv),
+ /* K2 */ be_nested_str(lv_obj_class),
+ /* K3 */ be_nested_str(get_object_from_ptr),
+ /* K4 */ be_nested_str(instance),
+ /* K5 */ be_nested_str(get),
+ /* K6 */ be_nested_str(widget_destructor),
}),
- (be_nested_const_str("widget_dtor_impl", 520430610, 16)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_widget_dtor_impl,
+ &be_const_str_solidified,
( &(const binstruction[22]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0xB8120200, // 0001 GETNGBL R4 K1
@@ -213,7 +213,7 @@ be_local_closure(widget_dtor_impl, /* name */
/********************************************************************
** Solidified function: register_obj
********************************************************************/
-be_local_closure(register_obj, /* name */
+be_local_closure(LVGL_glob_register_obj, /* name */
be_nested_proto(
4, /* nstack */
2, /* argc */
@@ -224,11 +224,11 @@ be_local_closure(register_obj, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("cb_obj", 1195696482, 6),
- /* K1 */ be_nested_string("_p", 1594591802, 2),
+ /* K0 */ be_nested_str(cb_obj),
+ /* K1 */ be_nested_str(_p),
}),
- (be_nested_const_str("register_obj", -312352526, 12)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_register_obj,
+ &be_const_str_solidified,
( &(const binstruction[13]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x4C0C0000, // 0001 LDNIL R3
@@ -252,7 +252,7 @@ be_local_closure(register_obj, /* name */
/********************************************************************
** Solidified function: gen_cb
********************************************************************/
-be_local_closure(gen_cb, /* name */
+be_local_closure(LVGL_glob_gen_cb, /* name */
be_nested_proto(
8, /* nstack */
5, /* argc */
@@ -273,10 +273,10 @@ be_local_closure(gen_cb, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("lvgl_event_dispatch", 2104396622, 19),
+ /* K0 */ be_nested_str(lvgl_event_dispatch),
}),
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x68040000, // 0000 GETUPV R1 U0
0x8C040300, // 0001 GETMET R1 R1 K0
@@ -288,17 +288,17 @@ be_local_closure(gen_cb, /* name */
}),
1, /* has constants */
( &(const bvalue[ 8]) { /* constants */
- /* K0 */ be_nested_string("lv_event_cb", -1814236280, 11),
- /* K1 */ be_nested_string("cb_event_closure", -466699971, 16),
- /* K2 */ be_nested_string("event_cb", -1166269279, 8),
- /* K3 */ be_nested_string("tasmota", 424643812, 7),
- /* K4 */ be_nested_string("gen_cb", -1049739745, 6),
- /* K5 */ be_nested_string("register_obj", -312352526, 12),
- /* K6 */ be_nested_string("null_cb", -1961430836, 7),
- /* K7 */ be_nested_string("cb_do_nothing", 1488730702, 13),
+ /* K0 */ be_nested_str(lv_event_cb),
+ /* K1 */ be_nested_str(cb_event_closure),
+ /* K2 */ be_nested_str(event_cb),
+ /* K3 */ be_nested_str(tasmota),
+ /* K4 */ be_nested_str(gen_cb),
+ /* K5 */ be_nested_str(register_obj),
+ /* K6 */ be_nested_str(null_cb),
+ /* K7 */ be_nested_str(cb_do_nothing),
}),
- (be_nested_const_str("gen_cb", -1049739745, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_gen_cb,
+ &be_const_str_solidified,
( &(const binstruction[41]) { /* code */
0x1C140300, // 0000 EQ R5 R1 K0
0x78160018, // 0001 JMPF R5 #001B
@@ -350,7 +350,7 @@ be_local_closure(gen_cb, /* name */
/********************************************************************
** Solidified function: deregister_obj
********************************************************************/
-be_local_closure(deregister_obj, /* name */
+be_local_closure(LVGL_glob_deregister_obj, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -361,12 +361,12 @@ be_local_closure(deregister_obj, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("cb_obj", 1195696482, 6),
- /* K1 */ be_nested_string("remove", -611183107, 6),
- /* K2 */ be_nested_string("cb_event_closure", -466699971, 16),
+ /* K0 */ be_nested_str(cb_obj),
+ /* K1 */ be_nested_str(remove),
+ /* K2 */ be_nested_str(cb_event_closure),
}),
- (be_nested_const_str("deregister_obj", -385000303, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_deregister_obj,
+ &be_const_str_solidified,
( &(const binstruction[17]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x4C0C0000, // 0001 LDNIL R3
@@ -394,7 +394,7 @@ be_local_closure(deregister_obj, /* name */
/********************************************************************
** Solidified function: widget_cb
********************************************************************/
-be_local_closure(widget_cb, /* name */
+be_local_closure(LVGL_glob_widget_cb, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -415,10 +415,10 @@ be_local_closure(widget_cb, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("widget_ctor_impl", 194252479, 16),
+ /* K0 */ be_nested_str(widget_ctor_impl),
}),
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x68080000, // 0000 GETUPV R2 U0
0x8C080500, // 0001 GETMET R2 R2 K0
@@ -440,10 +440,10 @@ be_local_closure(widget_cb, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("widget_dtor_impl", 520430610, 16),
+ /* K0 */ be_nested_str(widget_dtor_impl),
}),
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x68080000, // 0000 GETUPV R2 U0
0x8C080500, // 0001 GETMET R2 R2 K0
@@ -465,10 +465,10 @@ be_local_closure(widget_cb, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("widget_event_impl", -2116536735, 17),
+ /* K0 */ be_nested_str(widget_event_impl),
}),
- (be_nested_const_str("", 607256038, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__X3Clambda_X3E,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x68080000, // 0000 GETUPV R2 U0
0x8C080500, // 0001 GETMET R2 R2 K0
@@ -481,24 +481,24 @@ be_local_closure(widget_cb, /* name */
}),
1, /* has constants */
( &(const bvalue[15]) { /* constants */
- /* K0 */ be_nested_string("widget_ctor_cb", 876007560, 14),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("gen_cb", -1049739745, 6),
- /* K3 */ be_nested_string("widget_dtor_cb", -1143421451, 14),
- /* K4 */ be_nested_string("widget_event_cb", 1508466754, 15),
- /* K5 */ be_nested_string("widget_struct_default", 781673633, 21),
- /* K6 */ be_nested_string("lv", 1529997255, 2),
- /* K7 */ be_nested_string("lv_obj_class", -255311002, 12),
- /* K8 */ be_nested_string("lv_obj", -37134147, 6),
- /* K9 */ be_nested_string("_class", -1562820946, 6),
- /* K10 */ be_nested_string("copy", -446502332, 4),
- /* K11 */ be_nested_string("base_class", 1107737279, 10),
- /* K12 */ be_nested_string("constructor_cb", -1805861999, 14),
- /* K13 */ be_nested_string("destructor_cb", 1930283190, 13),
- /* K14 */ be_nested_string("event_cb", -1166269279, 8),
+ /* K0 */ be_nested_str(widget_ctor_cb),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(gen_cb),
+ /* K3 */ be_nested_str(widget_dtor_cb),
+ /* K4 */ be_nested_str(widget_event_cb),
+ /* K5 */ be_nested_str(widget_struct_default),
+ /* K6 */ be_nested_str(lv),
+ /* K7 */ be_nested_str(lv_obj_class),
+ /* K8 */ be_nested_str(lv_obj),
+ /* K9 */ be_nested_str(_class),
+ /* K10 */ be_nested_str(copy),
+ /* K11 */ be_nested_str(base_class),
+ /* K12 */ be_nested_str(constructor_cb),
+ /* K13 */ be_nested_str(destructor_cb),
+ /* K14 */ be_nested_str(event_cb),
}),
- (be_nested_const_str("widget_cb", -1531384241, 9)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_widget_cb,
+ &be_const_str_solidified,
( &(const binstruction[56]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x4C080000, // 0001 LDNIL R2
@@ -565,7 +565,7 @@ be_local_closure(widget_cb, /* name */
/********************************************************************
** Solidified function: _anonymous_
********************************************************************/
-be_local_closure(_anonymous_, /* name */
+be_local_closure(LVGL_glob__anonymous_, /* name */
be_nested_proto(
2, /* nstack */
0, /* argc */
@@ -576,10 +576,10 @@ be_local_closure(_anonymous_, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("LVG: call to unsupported callback", 504176819, 33),
+ /* K0 */ be_nested_str(LVG_X3A_X20call_X20to_X20unsupported_X20callback),
}),
- (be_nested_const_str("_anonymous_", 1957281476, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__anonymous_,
+ &be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x60000001, // 0000 GETGBL R0 G1
0x58040000, // 0001 LDCONST R1 K0
@@ -594,7 +594,7 @@ be_local_closure(_anonymous_, /* name */
/********************************************************************
** Solidified function: create_custom_widget
********************************************************************/
-be_local_closure(create_custom_widget, /* name */
+be_local_closure(LVGL_glob_create_custom_widget, /* name */
be_nested_proto(
10, /* nstack */
3, /* argc */
@@ -605,36 +605,36 @@ be_local_closure(create_custom_widget, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[27]) { /* constants */
- /* K0 */ be_nested_string("introspect", 164638290, 10),
- /* K1 */ be_nested_string("lv", 1529997255, 2),
- /* K2 */ be_nested_string("lv_obj", -37134147, 6),
- /* K3 */ be_nested_string("value_error", 773297791, 11),
- /* K4 */ be_nested_string("arg must be a subclass of lv_obj", 1641882079, 32),
- /* K5 */ be_nested_string("widget_struct_by_class", -488593454, 22),
- /* K6 */ be_nested_string("find", -1108310694, 4),
- /* K7 */ be_nested_string("widget_cb", -1531384241, 9),
- /* K8 */ be_nested_string("widget_struct_default", 781673633, 21),
- /* K9 */ be_nested_string("copy", -446502332, 4),
- /* K10 */ be_nested_string("base_class", 1107737279, 10),
- /* K11 */ be_nested_string("_class", -1562820946, 6),
- /* K12 */ be_nested_string("get", 1410115415, 3),
- /* K13 */ be_nested_string("widget_width_def", -308888434, 16),
- /* K14 */ be_nested_string("width_def", 1143717879, 9),
- /* K15 */ be_nested_string("widget_height_def", -1163299483, 17),
- /* K16 */ be_nested_string("height_def", -1946728458, 10),
- /* K17 */ be_nested_string("widget_editable", -473174010, 15),
- /* K18 */ be_nested_string("editable", 60532369, 8),
- /* K19 */ be_nested_string("widget_group_def", 1246968785, 16),
- /* K20 */ be_nested_string("group_def", 1524213328, 9),
- /* K21 */ be_nested_string("widget_instance_size", 2055354779, 20),
- /* K22 */ be_nested_string("instance_size", -14697778, 13),
- /* K23 */ be_nested_string("obj_class_create_obj", -990576664, 20),
- /* K24 */ be_nested_string("_p", 1594591802, 2),
- /* K25 */ be_nested_string("register_obj", -312352526, 12),
- /* K26 */ be_nested_string("class_init_obj", 178410604, 14),
+ /* K0 */ be_nested_str(introspect),
+ /* K1 */ be_nested_str(lv),
+ /* K2 */ be_nested_str(lv_obj),
+ /* K3 */ be_nested_str(value_error),
+ /* K4 */ be_nested_str(arg_X20must_X20be_X20a_X20subclass_X20of_X20lv_obj),
+ /* K5 */ be_nested_str(widget_struct_by_class),
+ /* K6 */ be_nested_str(find),
+ /* K7 */ be_nested_str(widget_cb),
+ /* K8 */ be_nested_str(widget_struct_default),
+ /* K9 */ be_nested_str(copy),
+ /* K10 */ be_nested_str(base_class),
+ /* K11 */ be_nested_str(_class),
+ /* K12 */ be_nested_str(get),
+ /* K13 */ be_nested_str(widget_width_def),
+ /* K14 */ be_nested_str(width_def),
+ /* K15 */ be_nested_str(widget_height_def),
+ /* K16 */ be_nested_str(height_def),
+ /* K17 */ be_nested_str(widget_editable),
+ /* K18 */ be_nested_str(editable),
+ /* K19 */ be_nested_str(widget_group_def),
+ /* K20 */ be_nested_str(group_def),
+ /* K21 */ be_nested_str(widget_instance_size),
+ /* K22 */ be_nested_str(instance_size),
+ /* K23 */ be_nested_str(obj_class_create_obj),
+ /* K24 */ be_nested_str(_p),
+ /* K25 */ be_nested_str(register_obj),
+ /* K26 */ be_nested_str(class_init_obj),
}),
- (be_nested_const_str("create_custom_widget", 1140594778, 20)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_create_custom_widget,
+ &be_const_str_solidified,
( &(const binstruction[86]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0x6010000F, // 0001 GETGBL R4 G15
@@ -731,7 +731,7 @@ be_local_closure(create_custom_widget, /* name */
/********************************************************************
** Solidified function: widget_ctor_impl
********************************************************************/
-be_local_closure(widget_ctor_impl, /* name */
+be_local_closure(LVGL_glob_widget_ctor_impl, /* name */
be_nested_proto(
10, /* nstack */
3, /* argc */
@@ -742,18 +742,18 @@ be_local_closure(widget_ctor_impl, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
- /* K0 */ be_nested_string("introspect", 164638290, 10),
- /* K1 */ be_nested_string("lv", 1529997255, 2),
- /* K2 */ be_nested_string("lv_obj_class", -255311002, 12),
- /* K3 */ be_nested_string("get_object_from_ptr", -1949948095, 19),
- /* K4 */ be_nested_string("cb_obj", 1195696482, 6),
- /* K5 */ be_nested_string("find", -1108310694, 4),
- /* K6 */ be_nested_string("instance", 193386898, 8),
- /* K7 */ be_nested_string("get", 1410115415, 3),
- /* K8 */ be_nested_string("widget_constructor", -1751181362, 18),
+ /* K0 */ be_nested_str(introspect),
+ /* K1 */ be_nested_str(lv),
+ /* K2 */ be_nested_str(lv_obj_class),
+ /* K3 */ be_nested_str(get_object_from_ptr),
+ /* K4 */ be_nested_str(cb_obj),
+ /* K5 */ be_nested_str(find),
+ /* K6 */ be_nested_str(instance),
+ /* K7 */ be_nested_str(get),
+ /* K8 */ be_nested_str(widget_constructor),
}),
- (be_nested_const_str("widget_ctor_impl", 194252479, 16)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_widget_ctor_impl,
+ &be_const_str_solidified,
( &(const binstruction[29]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0xB8120200, // 0001 GETNGBL R4 K1
@@ -798,28 +798,28 @@ be_local_class(LVGL_glob,
NULL,
be_nested_map(20,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("widget_ctor_cb", 876007560, 14, 9), be_const_var(4) },
- { be_nested_key("get_object_from_ptr", -1949948095, 19, 4), be_const_closure(get_object_from_ptr_closure) },
- { be_nested_key("cb_obj", 1195696482, 6, 7), be_const_var(0) },
- { be_nested_key("widget_struct_by_class", -488593454, 22, -1), be_const_var(8) },
- { be_nested_key("widget_event_impl", -2116536735, 17, -1), be_const_closure(widget_event_impl_closure) },
- { be_nested_key("widget_dtor_cb", -1143421451, 14, 6), be_const_var(5) },
- { be_nested_key("cb_event_closure", -466699971, 16, -1), be_const_var(1) },
- { be_nested_key("lvgl_event_dispatch", 2104396622, 19, 16), be_const_closure(lvgl_event_dispatch_closure) },
- { be_nested_key("widget_dtor_impl", 520430610, 16, -1), be_const_closure(widget_dtor_impl_closure) },
- { be_nested_key("null_cb", -1961430836, 7, -1), be_const_var(3) },
- { be_nested_key("register_obj", -312352526, 12, 8), be_const_closure(register_obj_closure) },
- { be_nested_key("gen_cb", -1049739745, 6, -1), be_const_closure(gen_cb_closure) },
- { be_nested_key("widget_struct_default", 781673633, 21, -1), be_const_var(7) },
- { be_nested_key("deregister_obj", -385000303, 14, 12), be_const_closure(deregister_obj_closure) },
- { be_nested_key("widget_event_cb", 1508466754, 15, -1), be_const_var(6) },
- { be_nested_key("widget_cb", -1531384241, 9, -1), be_const_closure(widget_cb_closure) },
- { be_nested_key("cb_do_nothing", 1488730702, 13, 3), be_const_closure(_anonymous__closure) },
- { be_nested_key("event_cb", -1166269279, 8, -1), be_const_var(2) },
- { be_nested_key("create_custom_widget", 1140594778, 20, -1), be_const_closure(create_custom_widget_closure) },
- { be_nested_key("widget_ctor_impl", 194252479, 16, -1), be_const_closure(widget_ctor_impl_closure) },
+ { be_const_key(widget_ctor_cb, 9), be_const_var(4) },
+ { be_const_key(get_object_from_ptr, 4), be_const_closure(LVGL_glob_get_object_from_ptr_closure) },
+ { be_const_key(cb_obj, 7), be_const_var(0) },
+ { be_const_key(widget_struct_by_class, -1), be_const_var(8) },
+ { be_const_key(widget_event_impl, -1), be_const_closure(LVGL_glob_widget_event_impl_closure) },
+ { be_const_key(widget_dtor_cb, 6), be_const_var(5) },
+ { be_const_key(cb_event_closure, -1), be_const_var(1) },
+ { be_const_key(lvgl_event_dispatch, 16), be_const_closure(LVGL_glob_lvgl_event_dispatch_closure) },
+ { be_const_key(widget_dtor_impl, -1), be_const_closure(LVGL_glob_widget_dtor_impl_closure) },
+ { be_const_key(null_cb, -1), be_const_var(3) },
+ { be_const_key(register_obj, 8), be_const_closure(LVGL_glob_register_obj_closure) },
+ { be_const_key(gen_cb, -1), be_const_closure(LVGL_glob_gen_cb_closure) },
+ { be_const_key(widget_struct_default, -1), be_const_var(7) },
+ { be_const_key(deregister_obj, 12), be_const_closure(LVGL_glob_deregister_obj_closure) },
+ { be_const_key(widget_event_cb, -1), be_const_var(6) },
+ { be_const_key(widget_cb, -1), be_const_closure(LVGL_glob_widget_cb_closure) },
+ { be_const_key(cb_do_nothing, 3), be_const_closure(LVGL_glob__anonymous__closure) },
+ { be_const_key(event_cb, -1), be_const_var(2) },
+ { be_const_key(create_custom_widget, -1), be_const_closure(LVGL_glob_create_custom_widget_closure) },
+ { be_const_key(widget_ctor_impl, -1), be_const_closure(LVGL_glob_widget_ctor_impl_closure) },
})),
- (be_nested_const_str("LVGL_glob", 315437079, 9))
+ be_str_literal("LVGL_glob")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_signal_arcs_lib.c b/lib/libesp32/Berry/default/be_lvgl_signal_arcs_lib.c
index f3452ba57..a127cddd9 100644
--- a/lib/libesp32/Berry/default/be_lvgl_signal_arcs_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_signal_arcs_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: set_percentage
********************************************************************/
-be_local_closure(set_percentage, /* name */
+be_local_closure(lv_signal_arcs_set_percentage, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -21,12 +21,12 @@ be_local_closure(set_percentage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("percentage", -1756136011, 10),
+ /* K0 */ be_nested_str(percentage),
/* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("invalidate", -1645232368, 10),
+ /* K2 */ be_nested_str(invalidate),
}),
- (be_nested_const_str("set_percentage", -1342944572, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_percentage,
+ &be_const_str_solidified,
( &(const binstruction[18]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x540E0018, // 0001 LDINT R3 25
@@ -55,7 +55,7 @@ be_local_closure(set_percentage, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_signal_arcs_init, /* name */
be_nested_proto(
6, /* nstack */
2, /* argc */
@@ -66,19 +66,19 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("_lvgl", -1605747813, 5),
- /* K1 */ be_nested_string("create_custom_widget", 1140594778, 20),
- /* K2 */ be_nested_string("percentage", -1756136011, 10),
- /* K3 */ be_nested_string("p1", -1605446022, 2),
- /* K4 */ be_nested_string("lv", 1529997255, 2),
- /* K5 */ be_nested_string("point", 414084241, 5),
- /* K6 */ be_nested_string("p2", -1622223641, 2),
- /* K7 */ be_nested_string("area", -1693507260, 4),
- /* K8 */ be_nested_string("line_dsc", -200476318, 8),
- /* K9 */ be_nested_string("draw_line_dsc", -74291093, 13),
+ /* K0 */ be_nested_str(_lvgl),
+ /* K1 */ be_nested_str(create_custom_widget),
+ /* K2 */ be_nested_str(percentage),
+ /* K3 */ be_nested_str(p1),
+ /* K4 */ be_nested_str(lv),
+ /* K5 */ be_nested_str(point),
+ /* K6 */ be_nested_str(p2),
+ /* K7 */ be_nested_str(area),
+ /* K8 */ be_nested_str(line_dsc),
+ /* K9 */ be_nested_str(draw_line_dsc),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[24]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -113,7 +113,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: widget_event
********************************************************************/
-be_local_closure(widget_event, /* name */
+be_local_closure(lv_signal_arcs_widget_event, /* name */
be_nested_proto(
28, /* nstack */
3, /* argc */
@@ -134,8 +134,8 @@ be_local_closure(widget_event, /* name */
( &(const bvalue[ 1]) { /* constants */
/* K0 */ be_const_int(1),
}),
- (be_nested_const_str("atleast1", 1956331672, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_atleast1,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x28040100, // 0000 GE R1 R0 K0
0x78060001, // 0001 JMPF R1 #0004
@@ -148,44 +148,44 @@ be_local_closure(widget_event, /* name */
}),
1, /* has constants */
( &(const bvalue[35]) { /* constants */
- /* K0 */ be_nested_string("lv", 1529997255, 2),
- /* K1 */ be_nested_string("obj_event_base", 1624064363, 14),
- /* K2 */ be_nested_string("RES_OK", 1233817284, 6),
- /* K3 */ be_nested_string("code", -114201356, 4),
- /* K4 */ be_nested_string("math", -293037681, 4),
- /* K5 */ be_nested_string("get_height", -723211773, 10),
- /* K6 */ be_nested_string("get_width", -1001549996, 9),
+ /* K0 */ be_nested_str(lv),
+ /* K1 */ be_nested_str(obj_event_base),
+ /* K2 */ be_nested_str(RES_OK),
+ /* K3 */ be_nested_str(code),
+ /* K4 */ be_nested_str(math),
+ /* K5 */ be_nested_str(get_height),
+ /* K6 */ be_nested_str(get_width),
/* K7 */ be_const_int(2),
/* K8 */ be_const_int(3),
- /* K9 */ be_nested_string("EVENT_DRAW_MAIN", 1955620614, 15),
- /* K10 */ be_nested_string("area", -1693507260, 4),
- /* K11 */ be_nested_string("param", 1309554226, 5),
- /* K12 */ be_nested_string("get_coords", 1044089006, 10),
- /* K13 */ be_nested_string("x1", 274927234, 2),
- /* K14 */ be_nested_string("y1", -1939865569, 2),
- /* K15 */ be_nested_string("draw_line_dsc_init", -428273650, 18),
- /* K16 */ be_nested_string("line_dsc", -200476318, 8),
- /* K17 */ be_nested_string("init_draw_line_dsc", -1787031256, 18),
- /* K18 */ be_nested_string("PART_MAIN", -1821475788, 9),
- /* K19 */ be_nested_string("round_start", -1345482912, 11),
+ /* K9 */ be_nested_str(EVENT_DRAW_MAIN),
+ /* K10 */ be_nested_str(area),
+ /* K11 */ be_nested_str(param),
+ /* K12 */ be_nested_str(get_coords),
+ /* K13 */ be_nested_str(x1),
+ /* K14 */ be_nested_str(y1),
+ /* K15 */ be_nested_str(draw_line_dsc_init),
+ /* K16 */ be_nested_str(line_dsc),
+ /* K17 */ be_nested_str(init_draw_line_dsc),
+ /* K18 */ be_nested_str(PART_MAIN),
+ /* K19 */ be_nested_str(round_start),
/* K20 */ be_const_int(1),
- /* K21 */ be_nested_string("round_end", 985288225, 9),
- /* K22 */ be_nested_string("width", -1786286561, 5),
- /* K23 */ be_nested_string("get_style_line_color", 805371932, 20),
- /* K24 */ be_nested_string("STATE_DEFAULT", 712406428, 13),
- /* K25 */ be_nested_string("get_style_bg_color", 964794381, 18),
- /* K26 */ be_nested_string("deg", -967213025, 3),
- /* K27 */ be_nested_string("acos", 1006755615, 4),
- /* K28 */ be_nested_string("p1", -1605446022, 2),
- /* K29 */ be_nested_string("x", -49524601, 1),
- /* K30 */ be_nested_string("y", -66302220, 1),
- /* K31 */ be_nested_string("color", 1031692888, 5),
- /* K32 */ be_nested_string("percentage", -1756136011, 10),
- /* K33 */ be_nested_string("draw_arc", 1828251676, 8),
+ /* K21 */ be_nested_str(round_end),
+ /* K22 */ be_nested_str(width),
+ /* K23 */ be_nested_str(get_style_line_color),
+ /* K24 */ be_nested_str(STATE_DEFAULT),
+ /* K25 */ be_nested_str(get_style_bg_color),
+ /* K26 */ be_nested_str(deg),
+ /* K27 */ be_nested_str(acos),
+ /* K28 */ be_nested_str(p1),
+ /* K29 */ be_nested_str(x),
+ /* K30 */ be_nested_str(y),
+ /* K31 */ be_nested_str(color),
+ /* K32 */ be_nested_str(percentage),
+ /* K33 */ be_nested_str(draw_arc),
/* K34 */ be_const_int(0),
}),
- (be_nested_const_str("widget_event", 1951408186, 12)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_widget_event,
+ &be_const_str_solidified,
( &(const binstruction[182]) { /* code */
0xB80E0000, // 0000 GETNGBL R3 K0
0x8C0C0701, // 0001 GETMET R3 R3 K1
@@ -378,7 +378,7 @@ be_local_closure(widget_event, /* name */
/********************************************************************
** Solidified function: get_percentage
********************************************************************/
-be_local_closure(get_percentage, /* name */
+be_local_closure(lv_signal_arcs_get_percentage, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -389,10 +389,10 @@ be_local_closure(get_percentage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("percentage", -1756136011, 10),
+ /* K0 */ be_nested_str(percentage),
}),
- (be_nested_const_str("get_percentage", -1414483304, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_percentage,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x80040200, // 0001 RET 1 R1
@@ -411,17 +411,17 @@ be_local_class(lv_signal_arcs,
&be_class_lv_obj,
be_nested_map(9,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("percentage", -1756136011, 10, 4), be_const_var(0) },
- { be_nested_key("p1", -1605446022, 2, 3), be_const_var(1) },
- { be_nested_key("p2", -1622223641, 2, -1), be_const_var(2) },
- { be_nested_key("area", -1693507260, 4, -1), be_const_var(3) },
- { be_nested_key("line_dsc", -200476318, 8, -1), be_const_var(4) },
- { be_nested_key("set_percentage", -1342944572, 14, -1), be_const_closure(set_percentage_closure) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("widget_event", 1951408186, 12, -1), be_const_closure(widget_event_closure) },
- { be_nested_key("get_percentage", -1414483304, 14, 5), be_const_closure(get_percentage_closure) },
+ { be_const_key(percentage, 4), be_const_var(0) },
+ { be_const_key(p1, 3), be_const_var(1) },
+ { be_const_key(p2, -1), be_const_var(2) },
+ { be_const_key(area, -1), be_const_var(3) },
+ { be_const_key(line_dsc, -1), be_const_var(4) },
+ { be_const_key(set_percentage, -1), be_const_closure(lv_signal_arcs_set_percentage_closure) },
+ { be_const_key(init, -1), be_const_closure(lv_signal_arcs_init_closure) },
+ { be_const_key(widget_event, -1), be_const_closure(lv_signal_arcs_widget_event_closure) },
+ { be_const_key(get_percentage, 5), be_const_closure(lv_signal_arcs_get_percentage_closure) },
})),
- (be_nested_const_str("lv_signal_arcs", -1455810308, 14))
+ be_str_literal("lv_signal_arcs")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_signal_bars_lib.c b/lib/libesp32/Berry/default/be_lvgl_signal_bars_lib.c
index 161afc65d..18452ae34 100644
--- a/lib/libesp32/Berry/default/be_lvgl_signal_bars_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_signal_bars_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: set_percentage
********************************************************************/
-be_local_closure(set_percentage, /* name */
+be_local_closure(lv_signal_bars_set_percentage, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -21,12 +21,12 @@ be_local_closure(set_percentage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("percentage", -1756136011, 10),
+ /* K0 */ be_nested_str(percentage),
/* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("invalidate", -1645232368, 10),
+ /* K2 */ be_nested_str(invalidate),
}),
- (be_nested_const_str("set_percentage", -1342944572, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_set_percentage,
+ &be_const_str_solidified,
( &(const binstruction[18]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x540E0013, // 0001 LDINT R3 20
@@ -55,7 +55,7 @@ be_local_closure(set_percentage, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_signal_bars_init, /* name */
be_nested_proto(
6, /* nstack */
2, /* argc */
@@ -66,19 +66,19 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("_lvgl", -1605747813, 5),
- /* K1 */ be_nested_string("create_custom_widget", 1140594778, 20),
- /* K2 */ be_nested_string("percentage", -1756136011, 10),
- /* K3 */ be_nested_string("p1", -1605446022, 2),
- /* K4 */ be_nested_string("lv", 1529997255, 2),
- /* K5 */ be_nested_string("point", 414084241, 5),
- /* K6 */ be_nested_string("p2", -1622223641, 2),
- /* K7 */ be_nested_string("area", -1693507260, 4),
- /* K8 */ be_nested_string("line_dsc", -200476318, 8),
- /* K9 */ be_nested_string("draw_line_dsc", -74291093, 13),
+ /* K0 */ be_nested_str(_lvgl),
+ /* K1 */ be_nested_str(create_custom_widget),
+ /* K2 */ be_nested_str(percentage),
+ /* K3 */ be_nested_str(p1),
+ /* K4 */ be_nested_str(lv),
+ /* K5 */ be_nested_str(point),
+ /* K6 */ be_nested_str(p2),
+ /* K7 */ be_nested_str(area),
+ /* K8 */ be_nested_str(line_dsc),
+ /* K9 */ be_nested_str(draw_line_dsc),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[24]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -113,7 +113,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: widget_event
********************************************************************/
-be_local_closure(widget_event, /* name */
+be_local_closure(lv_signal_bars_widget_event, /* name */
be_nested_proto(
23, /* nstack */
3, /* argc */
@@ -134,8 +134,8 @@ be_local_closure(widget_event, /* name */
( &(const bvalue[ 1]) { /* constants */
/* K0 */ be_const_int(1),
}),
- (be_nested_const_str("atleast1", 1956331672, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_atleast1,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x28040100, // 0000 GE R1 R0 K0
0x78060001, // 0001 JMPF R1 #0004
@@ -148,46 +148,46 @@ be_local_closure(widget_event, /* name */
}),
1, /* has constants */
( &(const bvalue[37]) { /* constants */
- /* K0 */ be_nested_string("lv", 1529997255, 2),
- /* K1 */ be_nested_string("obj_event_base", 1624064363, 14),
- /* K2 */ be_nested_string("RES_OK", 1233817284, 6),
- /* K3 */ be_nested_string("code", -114201356, 4),
- /* K4 */ be_nested_string("get_height", -723211773, 10),
- /* K5 */ be_nested_string("get_width", -1001549996, 9),
+ /* K0 */ be_nested_str(lv),
+ /* K1 */ be_nested_str(obj_event_base),
+ /* K2 */ be_nested_str(RES_OK),
+ /* K3 */ be_nested_str(code),
+ /* K4 */ be_nested_str(get_height),
+ /* K5 */ be_nested_str(get_width),
/* K6 */ be_const_int(3),
/* K7 */ be_const_int(2),
- /* K8 */ be_nested_string("EVENT_DRAW_MAIN", 1955620614, 15),
- /* K9 */ be_nested_string("area", -1693507260, 4),
- /* K10 */ be_nested_string("param", 1309554226, 5),
- /* K11 */ be_nested_string("get_coords", 1044089006, 10),
- /* K12 */ be_nested_string("x1", 274927234, 2),
- /* K13 */ be_nested_string("y1", -1939865569, 2),
- /* K14 */ be_nested_string("draw_line_dsc_init", -428273650, 18),
- /* K15 */ be_nested_string("line_dsc", -200476318, 8),
- /* K16 */ be_nested_string("init_draw_line_dsc", -1787031256, 18),
- /* K17 */ be_nested_string("PART_MAIN", -1821475788, 9),
- /* K18 */ be_nested_string("round_start", -1345482912, 11),
+ /* K8 */ be_nested_str(EVENT_DRAW_MAIN),
+ /* K9 */ be_nested_str(area),
+ /* K10 */ be_nested_str(param),
+ /* K11 */ be_nested_str(get_coords),
+ /* K12 */ be_nested_str(x1),
+ /* K13 */ be_nested_str(y1),
+ /* K14 */ be_nested_str(draw_line_dsc_init),
+ /* K15 */ be_nested_str(line_dsc),
+ /* K16 */ be_nested_str(init_draw_line_dsc),
+ /* K17 */ be_nested_str(PART_MAIN),
+ /* K18 */ be_nested_str(round_start),
/* K19 */ be_const_int(1),
- /* K20 */ be_nested_string("round_end", 985288225, 9),
- /* K21 */ be_nested_string("width", -1786286561, 5),
- /* K22 */ be_nested_string("get_style_line_color", 805371932, 20),
- /* K23 */ be_nested_string("STATE_DEFAULT", 712406428, 13),
- /* K24 */ be_nested_string("get_style_bg_color", 964794381, 18),
- /* K25 */ be_nested_string("event_send", 598925582, 10),
- /* K26 */ be_nested_string("EVENT_DRAW_PART_BEGIN", -903102272, 21),
+ /* K20 */ be_nested_str(round_end),
+ /* K21 */ be_nested_str(width),
+ /* K22 */ be_nested_str(get_style_line_color),
+ /* K23 */ be_nested_str(STATE_DEFAULT),
+ /* K24 */ be_nested_str(get_style_bg_color),
+ /* K25 */ be_nested_str(event_send),
+ /* K26 */ be_nested_str(EVENT_DRAW_PART_BEGIN),
/* K27 */ be_const_int(0),
- /* K28 */ be_nested_string("color", 1031692888, 5),
- /* K29 */ be_nested_string("percentage", -1756136011, 10),
- /* K30 */ be_nested_string("p1", -1605446022, 2),
- /* K31 */ be_nested_string("y", -66302220, 1),
- /* K32 */ be_nested_string("x", -49524601, 1),
- /* K33 */ be_nested_string("p2", -1622223641, 2),
- /* K34 */ be_nested_string("draw_line", 1634465686, 9),
- /* K35 */ be_nested_string("stop_iteration", -121173395, 14),
- /* K36 */ be_nested_string("EVENT_DRAW_PART_END", -993342004, 19),
+ /* K28 */ be_nested_str(color),
+ /* K29 */ be_nested_str(percentage),
+ /* K30 */ be_nested_str(p1),
+ /* K31 */ be_nested_str(y),
+ /* K32 */ be_nested_str(x),
+ /* K33 */ be_nested_str(p2),
+ /* K34 */ be_nested_str(draw_line),
+ /* K35 */ be_nested_str(stop_iteration),
+ /* K36 */ be_nested_str(EVENT_DRAW_PART_END),
}),
- (be_nested_const_str("widget_event", 1951408186, 12)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_widget_event,
+ &be_const_str_solidified,
( &(const binstruction[138]) { /* code */
0xB80E0000, // 0000 GETNGBL R3 K0
0x8C0C0701, // 0001 GETMET R3 R3 K1
@@ -336,7 +336,7 @@ be_local_closure(widget_event, /* name */
/********************************************************************
** Solidified function: get_percentage
********************************************************************/
-be_local_closure(get_percentage, /* name */
+be_local_closure(lv_signal_bars_get_percentage, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -347,10 +347,10 @@ be_local_closure(get_percentage, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_string("percentage", -1756136011, 10),
+ /* K0 */ be_nested_str(percentage),
}),
- (be_nested_const_str("get_percentage", -1414483304, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_get_percentage,
+ &be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x80040200, // 0001 RET 1 R1
@@ -369,17 +369,17 @@ be_local_class(lv_signal_bars,
&be_class_lv_obj,
be_nested_map(9,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("percentage", -1756136011, 10, 4), be_const_var(0) },
- { be_nested_key("p1", -1605446022, 2, 3), be_const_var(1) },
- { be_nested_key("p2", -1622223641, 2, -1), be_const_var(2) },
- { be_nested_key("area", -1693507260, 4, -1), be_const_var(3) },
- { be_nested_key("line_dsc", -200476318, 8, -1), be_const_var(4) },
- { be_nested_key("set_percentage", -1342944572, 14, -1), be_const_closure(set_percentage_closure) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("widget_event", 1951408186, 12, -1), be_const_closure(widget_event_closure) },
- { be_nested_key("get_percentage", -1414483304, 14, 5), be_const_closure(get_percentage_closure) },
+ { be_const_key(percentage, 4), be_const_var(0) },
+ { be_const_key(p1, 3), be_const_var(1) },
+ { be_const_key(p2, -1), be_const_var(2) },
+ { be_const_key(area, -1), be_const_var(3) },
+ { be_const_key(line_dsc, -1), be_const_var(4) },
+ { be_const_key(set_percentage, -1), be_const_closure(lv_signal_bars_set_percentage_closure) },
+ { be_const_key(init, -1), be_const_closure(lv_signal_bars_init_closure) },
+ { be_const_key(widget_event, -1), be_const_closure(lv_signal_bars_widget_event_closure) },
+ { be_const_key(get_percentage, 5), be_const_closure(lv_signal_bars_get_percentage_closure) },
})),
- (be_nested_const_str("lv_signal_bars", -780994737, 14))
+ be_str_literal("lv_signal_bars")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_icon_lib.c b/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_icon_lib.c
index 9a2c742ff..d8fe9ce08 100644
--- a/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_icon_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_icon_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_wifi_arcs_icon_init, /* name */
be_nested_proto(
10, /* nstack */
2, /* argc */
@@ -21,27 +21,27 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[18]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("set_style_line_color", -629728320, 20),
- /* K2 */ be_nested_string("lv", 1529997255, 2),
- /* K3 */ be_nested_string("color", 1031692888, 5),
- /* K4 */ be_nested_string("COLOR_WHITE", -1758096026, 11),
- /* K5 */ be_nested_string("PART_MAIN", -1821475788, 9),
- /* K6 */ be_nested_string("STATE_DEFAULT", 712406428, 13),
- /* K7 */ be_nested_string("set_style_bg_color", 1689513089, 18),
- /* K8 */ be_nested_string("COLOR_BLACK", 264427940, 11),
- /* K9 */ be_nested_string("get_height", -723211773, 10),
- /* K10 */ be_nested_string("get_style_pad_right", -1144679830, 19),
- /* K11 */ be_nested_string("set_height", 1080207399, 10),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(set_style_line_color),
+ /* K2 */ be_nested_str(lv),
+ /* K3 */ be_nested_str(color),
+ /* K4 */ be_nested_str(COLOR_WHITE),
+ /* K5 */ be_nested_str(PART_MAIN),
+ /* K6 */ be_nested_str(STATE_DEFAULT),
+ /* K7 */ be_nested_str(set_style_bg_color),
+ /* K8 */ be_nested_str(COLOR_BLACK),
+ /* K9 */ be_nested_str(get_height),
+ /* K10 */ be_nested_str(get_style_pad_right),
+ /* K11 */ be_nested_str(set_height),
/* K12 */ be_const_int(3),
- /* K13 */ be_nested_string("set_width", 484671920, 9),
- /* K14 */ be_nested_string("set_x", 1849400772, 5),
- /* K15 */ be_nested_string("get_width", -1001549996, 9),
- /* K16 */ be_nested_string("set_style_pad_right", -980898242, 19),
+ /* K13 */ be_nested_str(set_width),
+ /* K14 */ be_nested_str(set_x),
+ /* K15 */ be_nested_str(get_width),
+ /* K16 */ be_nested_str(set_style_pad_right),
/* K17 */ be_const_int(1),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[67]) { /* code */
0x60080003, // 0000 GETGBL R2 G3
0x5C0C0000, // 0001 MOVE R3 R0
@@ -125,9 +125,9 @@ be_local_class(lv_wifi_arcs_icon,
&be_class_lv_wifi_arcs,
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
+ { be_const_key(init, -1), be_const_closure(lv_wifi_arcs_icon_init_closure) },
})),
- (be_nested_const_str("lv_wifi_arcs_icon", 1507982909, 17))
+ be_str_literal("lv_wifi_arcs_icon")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_lib.c b/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_lib.c
index 59132af9e..57cbf18a9 100644
--- a/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_wifi_arcs_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: every_second
********************************************************************/
-be_local_closure(every_second, /* name */
+be_local_closure(lv_wifi_arcs_every_second, /* name */
be_nested_proto(
7, /* nstack */
1, /* argc */
@@ -21,16 +21,16 @@ be_local_closure(every_second, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("wifi", 120087624, 4),
- /* K2 */ be_nested_string("find", -1108310694, 4),
- /* K3 */ be_nested_string("quality", -1697296346, 7),
- /* K4 */ be_nested_string("ip", 1261996636, 2),
- /* K5 */ be_nested_string("set_percentage", -1342944572, 14),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(wifi),
+ /* K2 */ be_nested_str(find),
+ /* K3 */ be_nested_str(quality),
+ /* K4 */ be_nested_str(ip),
+ /* K5 */ be_nested_str(set_percentage),
/* K6 */ be_const_int(0),
}),
- (be_nested_const_str("every_second", 2075451465, 12)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_every_second,
+ &be_const_str_solidified,
( &(const binstruction[23]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -64,7 +64,7 @@ be_local_closure(every_second, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_wifi_arcs_init, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -75,14 +75,14 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("add_driver", 1654458371, 10),
- /* K3 */ be_nested_string("set_percentage", -1342944572, 14),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(add_driver),
+ /* K3 */ be_nested_str(set_percentage),
/* K4 */ be_const_int(0),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[14]) { /* code */
0x60080003, // 0000 GETGBL R2 G3
0x5C0C0000, // 0001 MOVE R3 R0
@@ -107,7 +107,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: del
********************************************************************/
-be_local_closure(del, /* name */
+be_local_closure(lv_wifi_arcs_del, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -118,12 +118,12 @@ be_local_closure(del, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("del", -816214454, 3),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("remove_driver", 1030243768, 13),
+ /* K0 */ be_nested_str(del),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(remove_driver),
}),
- (be_nested_const_str("del", -816214454, 3)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_del,
+ &be_const_str_solidified,
( &(const binstruction[10]) { /* code */
0x60040003, // 0000 GETGBL R1 G3
0x5C080000, // 0001 MOVE R2 R0
@@ -150,11 +150,11 @@ be_local_class(lv_wifi_arcs,
&be_class_lv_signal_arcs,
be_nested_map(3,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("every_second", 2075451465, 12, 1), be_const_closure(every_second_closure) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("del", -816214454, 3, -1), be_const_closure(del_closure) },
+ { be_const_key(every_second, 1), be_const_closure(lv_wifi_arcs_every_second_closure) },
+ { be_const_key(init, -1), be_const_closure(lv_wifi_arcs_init_closure) },
+ { be_const_key(del, -1), be_const_closure(lv_wifi_arcs_del_closure) },
})),
- (be_nested_const_str("lv_wifi_arcs", 2082091963, 12))
+ be_str_literal("lv_wifi_arcs")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_wifi_bars_icon_lib.c b/lib/libesp32/Berry/default/be_lvgl_wifi_bars_icon_lib.c
index 9adcdeba5..a1cf693e5 100644
--- a/lib/libesp32/Berry/default/be_lvgl_wifi_bars_icon_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_wifi_bars_icon_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_wifi_bars_icon_init, /* name */
be_nested_proto(
9, /* nstack */
2, /* argc */
@@ -21,26 +21,26 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[17]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("set_style_line_color", -629728320, 20),
- /* K2 */ be_nested_string("lv", 1529997255, 2),
- /* K3 */ be_nested_string("color", 1031692888, 5),
- /* K4 */ be_nested_string("COLOR_WHITE", -1758096026, 11),
- /* K5 */ be_nested_string("PART_MAIN", -1821475788, 9),
- /* K6 */ be_nested_string("STATE_DEFAULT", 712406428, 13),
- /* K7 */ be_nested_string("set_style_bg_color", 1689513089, 18),
- /* K8 */ be_nested_string("COLOR_BLACK", 264427940, 11),
- /* K9 */ be_nested_string("get_height", -723211773, 10),
- /* K10 */ be_nested_string("get_style_pad_right", -1144679830, 19),
- /* K11 */ be_nested_string("set_height", 1080207399, 10),
- /* K12 */ be_nested_string("set_width", 484671920, 9),
- /* K13 */ be_nested_string("set_x", 1849400772, 5),
- /* K14 */ be_nested_string("get_width", -1001549996, 9),
- /* K15 */ be_nested_string("set_style_pad_right", -980898242, 19),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(set_style_line_color),
+ /* K2 */ be_nested_str(lv),
+ /* K3 */ be_nested_str(color),
+ /* K4 */ be_nested_str(COLOR_WHITE),
+ /* K5 */ be_nested_str(PART_MAIN),
+ /* K6 */ be_nested_str(STATE_DEFAULT),
+ /* K7 */ be_nested_str(set_style_bg_color),
+ /* K8 */ be_nested_str(COLOR_BLACK),
+ /* K9 */ be_nested_str(get_height),
+ /* K10 */ be_nested_str(get_style_pad_right),
+ /* K11 */ be_nested_str(set_height),
+ /* K12 */ be_nested_str(set_width),
+ /* K13 */ be_nested_str(set_x),
+ /* K14 */ be_nested_str(get_width),
+ /* K15 */ be_nested_str(set_style_pad_right),
/* K16 */ be_const_int(1),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[64]) { /* code */
0x60080003, // 0000 GETGBL R2 G3
0x5C0C0000, // 0001 MOVE R3 R0
@@ -121,9 +121,9 @@ be_local_class(lv_wifi_bars_icon,
&be_class_lv_wifi_bars,
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
+ { be_const_key(init, -1), be_const_closure(lv_wifi_bars_icon_init_closure) },
})),
- (be_nested_const_str("lv_wifi_bars_icon", -1489151756, 17))
+ be_str_literal("lv_wifi_bars_icon")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_lvgl_wifi_bars_lib.c b/lib/libesp32/Berry/default/be_lvgl_wifi_bars_lib.c
index 9bbb51bf0..c61cb2bb3 100644
--- a/lib/libesp32/Berry/default/be_lvgl_wifi_bars_lib.c
+++ b/lib/libesp32/Berry/default/be_lvgl_wifi_bars_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: every_second
********************************************************************/
-be_local_closure(every_second, /* name */
+be_local_closure(lv_wifi_bars_every_second, /* name */
be_nested_proto(
7, /* nstack */
1, /* argc */
@@ -21,16 +21,16 @@ be_local_closure(every_second, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("wifi", 120087624, 4),
- /* K2 */ be_nested_string("find", -1108310694, 4),
- /* K3 */ be_nested_string("quality", -1697296346, 7),
- /* K4 */ be_nested_string("ip", 1261996636, 2),
- /* K5 */ be_nested_string("set_percentage", -1342944572, 14),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(wifi),
+ /* K2 */ be_nested_str(find),
+ /* K3 */ be_nested_str(quality),
+ /* K4 */ be_nested_str(ip),
+ /* K5 */ be_nested_str(set_percentage),
/* K6 */ be_const_int(0),
}),
- (be_nested_const_str("every_second", 2075451465, 12)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_every_second,
+ &be_const_str_solidified,
( &(const binstruction[23]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -64,7 +64,7 @@ be_local_closure(every_second, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(lv_wifi_bars_init, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -75,14 +75,14 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("init", 380752755, 4),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("add_driver", 1654458371, 10),
- /* K3 */ be_nested_string("set_percentage", -1342944572, 14),
+ /* K0 */ be_nested_str(init),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(add_driver),
+ /* K3 */ be_nested_str(set_percentage),
/* K4 */ be_const_int(0),
}),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[14]) { /* code */
0x60080003, // 0000 GETGBL R2 G3
0x5C0C0000, // 0001 MOVE R3 R0
@@ -107,7 +107,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: del
********************************************************************/
-be_local_closure(del, /* name */
+be_local_closure(lv_wifi_bars_del, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -118,12 +118,12 @@ be_local_closure(del, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("del", -816214454, 3),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("remove_driver", 1030243768, 13),
+ /* K0 */ be_nested_str(del),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(remove_driver),
}),
- (be_nested_const_str("del", -816214454, 3)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_del,
+ &be_const_str_solidified,
( &(const binstruction[10]) { /* code */
0x60040003, // 0000 GETGBL R1 G3
0x5C080000, // 0001 MOVE R2 R0
@@ -150,11 +150,11 @@ be_local_class(lv_wifi_bars,
&be_class_lv_signal_bars,
be_nested_map(3,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("every_second", 2075451465, 12, 1), be_const_closure(every_second_closure) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("del", -816214454, 3, -1), be_const_closure(del_closure) },
+ { be_const_key(every_second, 1), be_const_closure(lv_wifi_bars_every_second_closure) },
+ { be_const_key(init, -1), be_const_closure(lv_wifi_bars_init_closure) },
+ { be_const_key(del, -1), be_const_closure(lv_wifi_bars_del_closure) },
})),
- (be_nested_const_str("lv_wifi_bars", 2109539196, 12))
+ be_str_literal("lv_wifi_bars")
);
/*******************************************************************/
diff --git a/lib/libesp32/Berry/default/be_modtab.c b/lib/libesp32/Berry/default/be_modtab.c
index 5f04457ac..47db8b24e 100644
--- a/lib/libesp32/Berry/default/be_modtab.c
+++ b/lib/libesp32/Berry/default/be_modtab.c
@@ -131,14 +131,14 @@ extern void be_load_onewirelib(bvm *vm);
extern void be_load_serial_lib(bvm *vm);
extern void be_load_Driver_class(bvm *vm);
extern void be_load_Timer_class(bvm *vm);
-extern void be_load_driver_i2c_lib(bvm *vm);
+extern void be_load_I2C_Driver_class(bvm *vm);
extern void be_load_AXP192_class(bvm *vm);
extern void be_load_md5_lib(bvm *vm);
extern void be_load_webclient_lib(bvm *vm);
+extern void be_load_tcpclient_lib(bvm *vm);
extern void be_load_crypto_lib(bvm *vm);
extern void be_load_Leds_ntv_class(bvm *vm);
extern void be_load_Leds_class(bvm *vm);
-extern void be_load_Leds_matrix_class(bvm *vm);
extern void be_load_Leds_animator_class(bvm *vm);
extern void be_load_ctypes_lib(bvm *vm);
@@ -182,7 +182,7 @@ BERRY_API void be_load_custom_libs(bvm *vm)
#endif
#ifdef USE_I2C
be_load_wirelib(vm);
- be_load_driver_i2c_lib(vm);
+ be_load_I2C_Driver_class(vm);
be_load_AXP192_class(vm);
#endif // USE_I2C
#ifdef USE_ENERGY_SENSOR
@@ -190,6 +190,7 @@ BERRY_API void be_load_custom_libs(bvm *vm)
#endif // USE_ENERGY_SENSOR
#ifdef USE_WEBCLIENT
be_load_webclient_lib(vm);
+ be_load_tcpclient_lib(vm);
#endif // USE_WEBCLIENT
#if defined(USE_ONEWIRE) || defined(USE_DS18x20)
be_load_onewirelib(vm);
@@ -197,7 +198,6 @@ BERRY_API void be_load_custom_libs(bvm *vm)
#ifdef USE_WS2812
be_load_Leds_ntv_class(vm);
be_load_Leds_class(vm);
- be_load_Leds_matrix_class(vm);
be_load_Leds_animator_class(vm);
#endif // USE_WS2812
#ifdef USE_I2S_AUDIO_BERRY
diff --git a/lib/libesp32/Berry/default/be_persist_lib.c b/lib/libesp32/Berry/default/be_persist_lib.c
index e0a92dcd9..0581081c7 100644
--- a/lib/libesp32/Berry/default/be_persist_lib.c
+++ b/lib/libesp32/Berry/default/be_persist_lib.c
@@ -10,7 +10,7 @@
/********************************************************************
** Solidified function: json_fdump_map
********************************************************************/
-be_local_closure(json_fdump_map, /* name */
+be_local_closure(Persist_json_fdump_map, /* name */
be_nested_proto(
13, /* nstack */
3, /* argc */
@@ -21,19 +21,19 @@ be_local_closure(json_fdump_map, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("json", 916562499, 4),
- /* K1 */ be_nested_string("write", -1104765092, 5),
- /* K2 */ be_nested_string("{", -32746982, 1),
- /* K3 */ be_nested_string("keys", -112588595, 4),
- /* K4 */ be_nested_string("dump", -631966073, 4),
- /* K5 */ be_nested_string(":", 1057798253, 1),
- /* K6 */ be_nested_string("json_fdump_any", -946337911, 14),
- /* K7 */ be_nested_string(",", 688690635, 1),
- /* K8 */ be_nested_string("stop_iteration", -121173395, 14),
- /* K9 */ be_nested_string("}", -133412696, 1),
+ /* K0 */ be_nested_str(json),
+ /* K1 */ be_nested_str(write),
+ /* K2 */ be_nested_str(_X7B),
+ /* K3 */ be_nested_str(keys),
+ /* K4 */ be_nested_str(dump),
+ /* K5 */ be_nested_str(_X3A),
+ /* K6 */ be_nested_str(json_fdump_any),
+ /* K7 */ be_nested_str(_X2C),
+ /* K8 */ be_nested_str(stop_iteration),
+ /* K9 */ be_nested_str(_X7D),
}),
- (be_nested_const_str("json_fdump_map", -203012643, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_json_fdump_map,
+ &be_const_str_solidified,
( &(const binstruction[41]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0x8C100301, // 0001 GETMET R4 R1 K1
@@ -85,7 +85,7 @@ be_local_closure(json_fdump_map, /* name */
/********************************************************************
** Solidified function: setmember
********************************************************************/
-be_local_closure(setmember, /* name */
+be_local_closure(Persist_setmember, /* name */
be_nested_proto(
4, /* nstack */
3, /* argc */
@@ -96,11 +96,11 @@ be_local_closure(setmember, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_p", 1594591802, 2),
- /* K1 */ be_nested_string("_dirty", 283846766, 6),
+ /* K0 */ be_nested_str(_p),
+ /* K1 */ be_nested_str(_dirty),
}),
- (be_nested_const_str("setmember", 1432909441, 9)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_setmember,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x880C0100, // 0000 GETMBR R3 R0 K0
0x980C0202, // 0001 SETIDX R3 R1 R2
@@ -116,7 +116,7 @@ be_local_closure(setmember, /* name */
/********************************************************************
** Solidified function: zero
********************************************************************/
-be_local_closure(zero, /* name */
+be_local_closure(Persist_zero, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -127,11 +127,11 @@ be_local_closure(zero, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_p", 1594591802, 2),
- /* K1 */ be_nested_string("_dirty", 283846766, 6),
+ /* K0 */ be_nested_str(_p),
+ /* K1 */ be_nested_str(_dirty),
}),
- (be_nested_const_str("zero", -1955600541, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_zero,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x60040013, // 0000 GETGBL R1 G19
0x7C040000, // 0001 CALL R1 0
@@ -148,7 +148,7 @@ be_local_closure(zero, /* name */
/********************************************************************
** Solidified function: member
********************************************************************/
-be_local_closure(member, /* name */
+be_local_closure(Persist_member, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -159,11 +159,11 @@ be_local_closure(member, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_p", 1594591802, 2),
- /* K1 */ be_nested_string("find", -1108310694, 4),
+ /* K0 */ be_nested_str(_p),
+ /* K1 */ be_nested_str(find),
}),
- (be_nested_const_str("member", 719708611, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_member,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -179,7 +179,7 @@ be_local_closure(member, /* name */
/********************************************************************
** Solidified function: json_fdump
********************************************************************/
-be_local_closure(json_fdump, /* name */
+be_local_closure(Persist_json_fdump, /* name */
be_nested_proto(
7, /* nstack */
2, /* argc */
@@ -190,14 +190,14 @@ be_local_closure(json_fdump, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("json", 916562499, 4),
- /* K1 */ be_nested_string("_p", 1594591802, 2),
- /* K2 */ be_nested_string("json_fdump_map", -203012643, 14),
- /* K3 */ be_nested_string("internal_error", -1775809127, 14),
- /* K4 */ be_nested_string("persist._p is not a map", 1176528732, 23),
+ /* K0 */ be_nested_str(json),
+ /* K1 */ be_nested_str(_p),
+ /* K2 */ be_nested_str(json_fdump_map),
+ /* K3 */ be_nested_str(internal_error),
+ /* K4 */ be_nested_str(persist_X2E_p_X20is_X20not_X20a_X20map),
}),
- (be_nested_const_str("json_fdump", 1694216580, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_json_fdump,
+ &be_const_str_solidified,
( &(const binstruction[13]) { /* code */
0xA40A0000, // 0000 IMPORT R2 K0
0x600C000F, // 0001 GETGBL R3 G15
@@ -221,7 +221,7 @@ be_local_closure(json_fdump, /* name */
/********************************************************************
** Solidified function: remove
********************************************************************/
-be_local_closure(remove, /* name */
+be_local_closure(Persist_remove, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -232,12 +232,12 @@ be_local_closure(remove, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("_p", 1594591802, 2),
- /* K1 */ be_nested_string("remove", -611183107, 6),
- /* K2 */ be_nested_string("_dirty", 283846766, 6),
+ /* K0 */ be_nested_str(_p),
+ /* K1 */ be_nested_str(remove),
+ /* K2 */ be_nested_str(_dirty),
}),
- (be_nested_const_str("remove", -611183107, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_remove,
+ &be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -255,7 +255,7 @@ be_local_closure(remove, /* name */
/********************************************************************
** Solidified function: json_fdump_any
********************************************************************/
-be_local_closure(json_fdump_any, /* name */
+be_local_closure(Persist_json_fdump_any, /* name */
be_nested_proto(
9, /* nstack */
3, /* argc */
@@ -266,14 +266,14 @@ be_local_closure(json_fdump_any, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("json", 916562499, 4),
- /* K1 */ be_nested_string("json_fdump_map", -203012643, 14),
- /* K2 */ be_nested_string("json_fdump_list", -391087443, 15),
- /* K3 */ be_nested_string("write", -1104765092, 5),
- /* K4 */ be_nested_string("dump", -631966073, 4),
+ /* K0 */ be_nested_str(json),
+ /* K1 */ be_nested_str(json_fdump_map),
+ /* K2 */ be_nested_str(json_fdump_list),
+ /* K3 */ be_nested_str(write),
+ /* K4 */ be_nested_str(dump),
}),
- (be_nested_const_str("json_fdump_any", -946337911, 14)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_json_fdump_any,
+ &be_const_str_solidified,
( &(const binstruction[27]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0x6010000F, // 0001 GETGBL R4 G15
@@ -311,7 +311,7 @@ be_local_closure(json_fdump_any, /* name */
/********************************************************************
** Solidified function: save
********************************************************************/
-be_local_closure(save, /* name */
+be_local_closure(Persist_save, /* name */
be_nested_proto(
7, /* nstack */
1, /* argc */
@@ -322,16 +322,16 @@ be_local_closure(save, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("_filename", 1430813195, 9),
- /* K1 */ be_nested_string("w", -234078410, 1),
- /* K2 */ be_nested_string("json_fdump", 1694216580, 10),
- /* K3 */ be_nested_string("close", 667630371, 5),
- /* K4 */ be_nested_string("write", -1104765092, 5),
- /* K5 */ be_nested_string("{}", 1415952421, 2),
- /* K6 */ be_nested_string("_dirty", 283846766, 6),
+ /* K0 */ be_nested_str(_filename),
+ /* K1 */ be_nested_str(w),
+ /* K2 */ be_nested_str(json_fdump),
+ /* K3 */ be_nested_str(close),
+ /* K4 */ be_nested_str(write),
+ /* K5 */ be_nested_str(_X7B_X7D),
+ /* K6 */ be_nested_str(_dirty),
}),
- (be_nested_const_str("save", -855671224, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_save,
+ &be_const_str_solidified,
( &(const binstruction[37]) { /* code */
0x4C040000, // 0000 LDNIL R1
0xA802000B, // 0001 EXBLK 0 #000E
@@ -379,7 +379,7 @@ be_local_closure(save, /* name */
/********************************************************************
** Solidified function: load
********************************************************************/
-be_local_closure(load, /* name */
+be_local_closure(Persist_load, /* name */
be_nested_proto(
9, /* nstack */
1, /* argc */
@@ -389,22 +389,23 @@ be_local_closure(load, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[11]) { /* constants */
- /* K0 */ be_nested_string("json", 916562499, 4),
- /* K1 */ be_nested_string("path", -2071507658, 4),
- /* K2 */ be_nested_string("exists", 1002329533, 6),
- /* K3 */ be_nested_string("_filename", 1430813195, 9),
- /* K4 */ be_nested_string("r", -150190315, 1),
- /* K5 */ be_nested_string("load", -435725847, 4),
- /* K6 */ be_nested_string("read", -824204347, 4),
- /* K7 */ be_nested_string("close", 667630371, 5),
- /* K8 */ be_nested_string("_p", 1594591802, 2),
- /* K9 */ be_nested_string("BRY: failed to load _persist.json", -1303053851, 33),
- /* K10 */ be_nested_string("_dirty", 283846766, 6),
+ ( &(const bvalue[12]) { /* constants */
+ /* K0 */ be_nested_str(json),
+ /* K1 */ be_nested_str(path),
+ /* K2 */ be_nested_str(exists),
+ /* K3 */ be_nested_str(_filename),
+ /* K4 */ be_nested_str(r),
+ /* K5 */ be_nested_str(load),
+ /* K6 */ be_nested_str(read),
+ /* K7 */ be_nested_str(close),
+ /* K8 */ be_nested_str(_p),
+ /* K9 */ be_nested_str(BRY_X3A_X20failed_X20to_X20load_X20_persist_X2Ejson),
+ /* K10 */ be_nested_str(_dirty),
+ /* K11 */ be_nested_str(save),
}),
- (be_nested_const_str("load", -435725847, 4)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[46]) { /* code */
+ &be_const_str_load,
+ &be_const_str_solidified,
+ ( &(const binstruction[49]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xA40A0200, // 0001 IMPORT R2 K1
0x4C0C0000, // 0002 LDNIL R3
@@ -412,7 +413,7 @@ be_local_closure(load, /* name */
0x8C140502, // 0004 GETMET R5 R2 K2
0x881C0103, // 0005 GETMBR R7 R0 K3
0x7C140400, // 0006 CALL R5 2
- 0x78160024, // 0007 JMPF R5 #002D
+ 0x78160025, // 0007 JMPF R5 #002E
0xA802000D, // 0008 EXBLK 0 #0017
0x60140011, // 0009 GETGBL R5 G17
0x88180103, // 000A GETMBR R6 R0 K3
@@ -450,7 +451,10 @@ be_local_closure(load, /* name */
0x7C140200, // 002A CALL R5 1
0x50140000, // 002B LDBOOL R5 0 0
0x90021405, // 002C SETMBR R0 K10 R5
- 0x80000000, // 002D RET 0
+ 0x70020001, // 002D JMP #0030
+ 0x8C14010B, // 002E GETMET R5 R0 K11
+ 0x7C140200, // 002F CALL R5 1
+ 0x80000000, // 0030 RET 0
})
)
);
@@ -460,7 +464,7 @@ be_local_closure(load, /* name */
/********************************************************************
** Solidified function: find
********************************************************************/
-be_local_closure(find, /* name */
+be_local_closure(Persist_find, /* name */
be_nested_proto(
7, /* nstack */
3, /* argc */
@@ -471,11 +475,11 @@ be_local_closure(find, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_p", 1594591802, 2),
- /* K1 */ be_nested_string("find", -1108310694, 4),
+ /* K0 */ be_nested_str(_p),
+ /* K1 */ be_nested_str(find),
}),
- (be_nested_const_str("find", -1108310694, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_find,
+ &be_const_str_solidified,
( &(const binstruction[ 6]) { /* code */
0x880C0100, // 0000 GETMBR R3 R0 K0
0x8C0C0701, // 0001 GETMET R3 R3 K1
@@ -492,7 +496,7 @@ be_local_closure(find, /* name */
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(Persist_init, /* name */
be_nested_proto(
6, /* nstack */
2, /* argc */
@@ -503,15 +507,15 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("_filename", 1430813195, 9),
- /* K1 */ be_nested_string("_persist.json", 2008425138, 13),
- /* K2 */ be_nested_string("_p", 1594591802, 2),
- /* K3 */ be_nested_string("copy", -446502332, 4),
- /* K4 */ be_nested_string("load", -435725847, 4),
- /* K5 */ be_nested_string("_dirty", 283846766, 6),
+ /* K0 */ be_nested_str(_filename),
+ /* K1 */ be_nested_str(_persist_X2Ejson),
+ /* K2 */ be_nested_str(_p),
+ /* K3 */ be_nested_str(copy),
+ /* K4 */ be_nested_str(load),
+ /* K5 */ be_nested_str(_dirty),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[20]) { /* code */
0x90020101, // 0000 SETMBR R0 K0 K1
0x6008000F, // 0001 GETGBL R2 G15
@@ -542,7 +546,7 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: json_fdump_list
********************************************************************/
-be_local_closure(json_fdump_list, /* name */
+be_local_closure(Persist_json_fdump_list, /* name */
be_nested_proto(
9, /* nstack */
3, /* argc */
@@ -553,17 +557,17 @@ be_local_closure(json_fdump_list, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 8]) { /* constants */
- /* K0 */ be_nested_string("json", 916562499, 4),
- /* K1 */ be_nested_string("write", -1104765092, 5),
- /* K2 */ be_nested_string("[", -569630790, 1),
+ /* K0 */ be_nested_str(json),
+ /* K1 */ be_nested_str(write),
+ /* K2 */ be_nested_str(_X5B),
/* K3 */ be_const_int(0),
- /* K4 */ be_nested_string(",", 688690635, 1),
- /* K5 */ be_nested_string("json_fdump_any", -946337911, 14),
+ /* K4 */ be_nested_str(_X2C),
+ /* K5 */ be_nested_str(json_fdump_any),
/* K6 */ be_const_int(1),
- /* K7 */ be_nested_string("]", -670296504, 1),
+ /* K7 */ be_nested_str(_X5D),
}),
- (be_nested_const_str("json_fdump_list", -391087443, 15)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_json_fdump_list,
+ &be_const_str_solidified,
( &(const binstruction[25]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0x8C100301, // 0001 GETMET R4 R1 K1
@@ -599,7 +603,7 @@ be_local_closure(json_fdump_list, /* name */
/********************************************************************
** Solidified function: has
********************************************************************/
-be_local_closure(has, /* name */
+be_local_closure(Persist_has, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -610,11 +614,11 @@ be_local_closure(has, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_p", 1594591802, 2),
- /* K1 */ be_nested_string("has", -306245661, 3),
+ /* K0 */ be_nested_str(_p),
+ /* K1 */ be_nested_str(has),
}),
- (be_nested_const_str("has", -306245661, 3)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_has,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
@@ -635,30 +639,30 @@ be_local_class(Persist,
NULL,
be_nested_map(16,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("json_fdump_map", -203012643, 14, 5), be_const_closure(json_fdump_map_closure) },
- { be_nested_key("setmember", 1432909441, 9, -1), be_const_closure(setmember_closure) },
- { be_nested_key("zero", -1955600541, 4, 15), be_const_closure(zero_closure) },
- { be_nested_key("member", 719708611, 6, 12), be_const_closure(member_closure) },
- { be_nested_key("json_fdump", 1694216580, 10, -1), be_const_closure(json_fdump_closure) },
- { be_nested_key("remove", -611183107, 6, -1), be_const_closure(remove_closure) },
- { be_nested_key("json_fdump_any", -946337911, 14, -1), be_const_closure(json_fdump_any_closure) },
- { be_nested_key("_p", 1594591802, 2, -1), be_const_var(1) },
- { be_nested_key("save", -855671224, 4, -1), be_const_closure(save_closure) },
- { be_nested_key("load", -435725847, 4, 6), be_const_closure(load_closure) },
- { be_nested_key("find", -1108310694, 4, 7), be_const_closure(find_closure) },
- { be_nested_key("_filename", 1430813195, 9, -1), be_const_var(0) },
- { be_nested_key("init", 380752755, 4, 2), be_const_closure(init_closure) },
- { be_nested_key("json_fdump_list", -391087443, 15, 0), be_const_closure(json_fdump_list_closure) },
- { be_nested_key("_dirty", 283846766, 6, -1), be_const_var(2) },
- { be_nested_key("has", -306245661, 3, -1), be_const_closure(has_closure) },
+ { be_const_key(has, 6), be_const_closure(Persist_has_closure) },
+ { be_const_key(setmember, -1), be_const_closure(Persist_setmember_closure) },
+ { be_const_key(remove, -1), be_const_closure(Persist_remove_closure) },
+ { be_const_key(zero, 0), be_const_closure(Persist_zero_closure) },
+ { be_const_key(json_fdump, -1), be_const_closure(Persist_json_fdump_closure) },
+ { be_const_key(json_fdump_list, 2), be_const_closure(Persist_json_fdump_list_closure) },
+ { be_const_key(init, 15), be_const_closure(Persist_init_closure) },
+ { be_const_key(find, -1), be_const_closure(Persist_find_closure) },
+ { be_const_key(save, -1), be_const_closure(Persist_save_closure) },
+ { be_const_key(json_fdump_any, 12), be_const_closure(Persist_json_fdump_any_closure) },
+ { be_const_key(_p, 7), be_const_var(1) },
+ { be_const_key(_filename, -1), be_const_var(0) },
+ { be_const_key(load, -1), be_const_closure(Persist_load_closure) },
+ { be_const_key(json_fdump_map, 5), be_const_closure(Persist_json_fdump_map_closure) },
+ { be_const_key(_dirty, -1), be_const_var(2) },
+ { be_const_key(member, -1), be_const_closure(Persist_member_closure) },
})),
- (be_nested_const_str("Persist", 1456346147, 7))
+ be_str_literal("Persist")
);
/********************************************************************
** Solidified function: _anonymous_
********************************************************************/
-be_local_closure(_anonymous_, /* name */
+be_local_closure(persist__anonymous_, /* name */
be_nested_proto(
3, /* nstack */
1, /* argc */
@@ -671,8 +675,8 @@ be_local_closure(_anonymous_, /* name */
( &(const bvalue[ 1]) { /* constants */
/* K0 */ be_const_class(be_class_Persist),
}),
- (be_nested_const_str("_anonymous_", 1957281476, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__anonymous_,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x58040000, // 0000 LDCONST R1 K0
0xB4000000, // 0001 CLASS K0
@@ -692,7 +696,7 @@ be_local_module(persist,
"persist",
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(_anonymous__closure) },
+ { be_const_key(init, -1), be_const_closure(persist__anonymous__closure) },
}))
);
BE_EXPORT_VARIABLE be_define_const_native_module(persist);
diff --git a/lib/libesp32/Berry/default/be_python_compat.c b/lib/libesp32/Berry/default/be_python_compat.c
index 7213c10ad..5b3ec64d0 100644
--- a/lib/libesp32/Berry/default/be_python_compat.c
+++ b/lib/libesp32/Berry/default/be_python_compat.c
@@ -8,7 +8,7 @@
/********************************************************************
** Solidified function: _anonymous_
********************************************************************/
-be_local_closure(_anonymous_, /* name */
+be_local_closure(python_compat__anonymous_, /* name */
be_nested_proto(
3, /* nstack */
1, /* argc */
@@ -19,25 +19,25 @@ be_local_closure(_anonymous_, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("global", 503252654, 6),
- /* K1 */ be_nested_string("True", -841064955, 4),
- /* K2 */ be_nested_string("False", -1753917960, 5),
- /* K3 */ be_nested_string("None", 810547195, 4),
- /* K4 */ be_nested_string("b", -418632219, 1),
+ /* K0 */ be_nested_str(global),
+ /* K1 */ be_nested_str(True),
+ /* K2 */ be_nested_str(False),
+ /* K3 */ be_nested_str(None),
+ /* K4 */ be_nested_str(b),
}),
- (be_nested_const_str("_anonymous_", 1957281476, 11)),
- (be_nested_const_str("python_compat.be", -225667571, 16)),
+ &be_const_str__anonymous_,
+ &be_const_str_solidified,
( &(const binstruction[10]) { /* code */
- 0xA4060000, // 0000 IMPORT R1 K0
- 0x50080200, // 0001 LDBOOL R2 1 0
- 0x90060202, // 0002 SETMBR R1 K1 R2
- 0x50080000, // 0003 LDBOOL R2 0 0
- 0x90060402, // 0004 SETMBR R1 K2 R2
- 0x4C080000, // 0005 LDNIL R2
- 0x90060602, // 0006 SETMBR R1 K3 R2
- 0x60080015, // 0007 GETGBL R2 G21
- 0x90060802, // 0008 SETMBR R1 K4 R2
- 0x80040000, // 0009 RET 1 R0
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0x50080200, // 0001 LDBOOL R2 1 0
+ 0x90060202, // 0002 SETMBR R1 K1 R2
+ 0x50080000, // 0003 LDBOOL R2 0 0
+ 0x90060402, // 0004 SETMBR R1 K2 R2
+ 0x4C080000, // 0005 LDNIL R2
+ 0x90060602, // 0006 SETMBR R1 K3 R2
+ 0x60080015, // 0007 GETGBL R2 G21
+ 0x90060802, // 0008 SETMBR R1 K4 R2
+ 0x80040000, // 0009 RET 1 R0
})
)
);
@@ -51,7 +51,7 @@ be_local_module(python_compat,
"python_compat",
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(_anonymous__closure) },
+ { be_const_key(init, -1), be_const_closure(python_compat__anonymous__closure) },
}))
);
BE_EXPORT_VARIABLE be_define_const_native_module(python_compat);
diff --git a/lib/libesp32/Berry/default/be_tapp_lib.c b/lib/libesp32/Berry/default/be_tapp_lib.c
index 7a8cbe693..1a312d110 100644
--- a/lib/libesp32/Berry/default/be_tapp_lib.c
+++ b/lib/libesp32/Berry/default/be_tapp_lib.c
@@ -9,7 +9,7 @@
/********************************************************************
** Solidified function: init
********************************************************************/
-be_local_closure(init, /* name */
+be_local_closure(Tapp_init, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -20,11 +20,11 @@ be_local_closure(init, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("add_driver", 1654458371, 10),
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(add_driver),
}),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_init,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
@@ -40,9 +40,9 @@ be_local_closure(init, /* name */
/********************************************************************
** Solidified function: autoexec
********************************************************************/
-be_local_closure(autoexec, /* name */
+be_local_closure(Tapp_autoexec, /* name */
be_nested_proto(
- 11, /* nstack */
+ 12, /* nstack */
1, /* argc */
0, /* varg */
0, /* has upvals */
@@ -50,24 +50,26 @@ be_local_closure(autoexec, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[13]) { /* constants */
- /* K0 */ be_nested_string("path", -2071507658, 4),
- /* K1 */ be_nested_string("string", 398550328, 6),
- /* K2 */ be_nested_string("listdir", 2005220720, 7),
- /* K3 */ be_nested_string("/", 705468254, 1),
- /* K4 */ be_nested_string("find", -1108310694, 4),
- /* K5 */ be_nested_string(".tapp", 1363391594, 5),
+ ( &(const bvalue[15]) { /* constants */
+ /* K0 */ be_nested_str(path),
+ /* K1 */ be_nested_str(string),
+ /* K2 */ be_nested_str(listdir),
+ /* K3 */ be_nested_str(_X2F),
+ /* K4 */ be_nested_str(find),
+ /* K5 */ be_nested_str(_X2Etapp),
/* K6 */ be_const_int(0),
- /* K7 */ be_nested_string("format", -1180859054, 6),
- /* K8 */ be_nested_string("TAP: found Tasmota App '%s'", -1651814898, 27),
- /* K9 */ be_nested_string("tasmota", 424643812, 7),
- /* K10 */ be_nested_string("load", -435725847, 4),
- /* K11 */ be_nested_string("#autoexec.be", 1181757091, 12),
- /* K12 */ be_nested_string("stop_iteration", -121173395, 14),
+ /* K7 */ be_nested_str(tasmota),
+ /* K8 */ be_nested_str(log),
+ /* K9 */ be_nested_str(format),
+ /* K10 */ be_nested_str(TAP_X3A_X20found_X20Tasmota_X20App_X20_X27_X25s_X27),
+ /* K11 */ be_const_int(2),
+ /* K12 */ be_nested_str(load),
+ /* K13 */ be_nested_str(_X23autoexec_X2Ebe),
+ /* K14 */ be_nested_str(stop_iteration),
}),
- (be_nested_const_str("autoexec", -618105405, 8)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[32]) { /* code */
+ &be_const_str_autoexec,
+ &be_const_str_solidified,
+ ( &(const binstruction[34]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xA40A0200, // 0001 IMPORT R2 K1
0x8C0C0302, // 0002 GETMET R3 R1 K2
@@ -76,7 +78,7 @@ be_local_closure(autoexec, /* name */
0x60100010, // 0005 GETGBL R4 G16
0x5C140600, // 0006 MOVE R5 R3
0x7C100200, // 0007 CALL R4 1
- 0xA8020012, // 0008 EXBLK 0 #001C
+ 0xA8020014, // 0008 EXBLK 0 #001E
0x5C140800, // 0009 MOVE R5 R4
0x7C140000, // 000A CALL R5 0
0x8C180504, // 000B GETMET R6 R2 K4
@@ -84,22 +86,24 @@ be_local_closure(autoexec, /* name */
0x58240005, // 000D LDCONST R9 K5
0x7C180600, // 000E CALL R6 3
0x24180D06, // 000F GT R6 R6 K6
- 0x781A0009, // 0010 JMPF R6 #001B
- 0x60180001, // 0011 GETGBL R6 G1
- 0x8C1C0507, // 0012 GETMET R7 R2 K7
- 0x58240008, // 0013 LDCONST R9 K8
- 0x5C280A00, // 0014 MOVE R10 R5
- 0x7C1C0600, // 0015 CALL R7 3
- 0x7C180200, // 0016 CALL R6 1
- 0xB81A1200, // 0017 GETNGBL R6 K9
- 0x8C180D0A, // 0018 GETMET R6 R6 K10
- 0x00200B0B, // 0019 ADD R8 R5 K11
- 0x7C180400, // 001A CALL R6 2
- 0x7001FFEC, // 001B JMP #0009
- 0x5810000C, // 001C LDCONST R4 K12
- 0xAC100200, // 001D CATCH R4 1 0
- 0xB0080000, // 001E RAISE 2 R0 R0
- 0x80000000, // 001F RET 0
+ 0x781A000B, // 0010 JMPF R6 #001D
+ 0xB81A0E00, // 0011 GETNGBL R6 K7
+ 0x8C180D08, // 0012 GETMET R6 R6 K8
+ 0x8C200509, // 0013 GETMET R8 R2 K9
+ 0x5828000A, // 0014 LDCONST R10 K10
+ 0x5C2C0A00, // 0015 MOVE R11 R5
+ 0x7C200600, // 0016 CALL R8 3
+ 0x5824000B, // 0017 LDCONST R9 K11
+ 0x7C180600, // 0018 CALL R6 3
+ 0xB81A0E00, // 0019 GETNGBL R6 K7
+ 0x8C180D0C, // 001A GETMET R6 R6 K12
+ 0x00200B0D, // 001B ADD R8 R5 K13
+ 0x7C180400, // 001C CALL R6 2
+ 0x7001FFEA, // 001D JMP #0009
+ 0x5810000E, // 001E LDCONST R4 K14
+ 0xAC100200, // 001F CATCH R4 1 0
+ 0xB0080000, // 0020 RAISE 2 R0 R0
+ 0x80000000, // 0021 RET 0
})
)
);
@@ -114,16 +118,16 @@ be_local_class(Tapp,
NULL,
be_nested_map(2,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(init_closure) },
- { be_nested_key("autoexec", -618105405, 8, 0), be_const_closure(autoexec_closure) },
+ { be_const_key(autoexec, -1), be_const_closure(Tapp_autoexec_closure) },
+ { be_const_key(init, 0), be_const_closure(Tapp_init_closure) },
})),
- (be_nested_const_str("Tapp", 2012315062, 4))
+ be_str_literal("Tapp")
);
/********************************************************************
** Solidified function: _anonymous_
********************************************************************/
-be_local_closure(_anonymous_, /* name */
+be_local_closure(tapp__anonymous_, /* name */
be_nested_proto(
3, /* nstack */
1, /* argc */
@@ -136,8 +140,8 @@ be_local_closure(_anonymous_, /* name */
( &(const bvalue[ 1]) { /* constants */
/* K0 */ be_const_class(be_class_Tapp),
}),
- (be_nested_const_str("_anonymous_", 1957281476, 11)),
- ((bstring*) &be_const_str_input),
+ &be_const_str__anonymous_,
+ &be_const_str_solidified,
( &(const binstruction[ 5]) { /* code */
0x58040000, // 0000 LDCONST R1 K0
0xB4000000, // 0001 CLASS K0
@@ -157,7 +161,7 @@ be_local_module(tapp,
"tapp",
be_nested_map(1,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(_anonymous__closure) },
+ { be_const_key(init, -1), be_const_closure(tapp__anonymous__closure) },
}))
);
BE_EXPORT_VARIABLE be_define_const_native_module(tapp);
diff --git a/lib/libesp32/Berry/default/be_tasmotalib.c b/lib/libesp32/Berry/default/be_tasmotalib.c
index 76720b7b4..e117bae70 100644
--- a/lib/libesp32/Berry/default/be_tasmotalib.c
+++ b/lib/libesp32/Berry/default/be_tasmotalib.c
@@ -23,6 +23,7 @@ extern int l_timereached(bvm *vm);
extern int l_rtc(bvm *vm);
extern int l_time_dump(bvm *vm);
extern int l_strftime(bvm *vm);
+extern int l_strptime(bvm *vm);
extern int l_memory(bvm *vm);
extern int l_wifi(bvm *vm);
extern int l_eth(bvm *vm);
@@ -53,161 +54,11 @@ extern int l_getswitch(bvm *vm);
extern int l_i2cenabled(bvm *vm);
-// KV class
-/********************************************************************
-** Solidified function: init
-********************************************************************/
-be_local_closure(kv_init, /* name */
- be_nested_proto(
- 3, /* nstack */
- 3, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("k", -301188886, 1),
- /* K1 */ be_nested_string("v", -217300791, 1),
- }),
- ((bstring*) &be_const_str_init),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 3]) { /* code */
- 0x90020001, // 0000 SETMBR R0 K0 R1
- 0x90020202, // 0001 SETMBR R0 K1 R2
- 0x80000000, // 0002 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified class: KV
-********************************************************************/
-be_local_class(KV,
- 2,
- NULL,
- be_nested_map(3,
- ( (struct bmapnode*) &(const bmapnode[]) {
- { be_nested_key("k", -301188886, 1, 2), be_const_var(0) },
- { be_nested_key("v", -217300791, 1, -1), be_const_var(1) },
- { be_nested_key("init", 380752755, 4, -1), be_const_closure(kv_init_closure) },
- })),
- (be_nested_const_str("KV", 955173972, 2))
-);
-
-/********************************************************************
-** Solidified function: kv
-********************************************************************/
-be_local_closure(kv, /* name */
- be_nested_proto(
- 7, /* nstack */
- 3, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_const_class(be_class_KV),
- }),
- (be_nested_const_str("kv", 1497177492, 2)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 7]) { /* code */
- 0x580C0000, // 0000 LDCONST R3 K0
- 0xB4000000, // 0001 CLASS K0
- 0x5C100600, // 0002 MOVE R4 R3
- 0x5C140200, // 0003 MOVE R5 R1
- 0x5C180400, // 0004 MOVE R6 R2
- 0x7C100400, // 0005 CALL R4 2
- 0x80040800, // 0006 RET 1 R4
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: init
-********************************************************************/
-be_local_closure(init, /* name */
- be_nested_proto(
- 7, /* nstack */
- 1, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[15]) { /* constants */
- /* K0 */ be_nested_str_literal("global"),
- /* K1 */ be_nested_str_literal("ctypes_bytes_dyn"),
- /* K2 */ be_nested_str_literal("_global_addr"),
- /* K3 */ be_nested_str_literal("_global_def"),
- /* K4 */ be_nested_str_literal("introspect"),
- /* K5 */ be_nested_str_literal("_settings_ptr"),
- /* K6 */ be_nested_str_literal("get"),
- /* K7 */ be_const_int(0),
- /* K8 */ be_nested_str_literal("settings"),
- /* K9 */ be_nested_str_literal("toptr"),
- /* K10 */ be_nested_str_literal("_settings_def"),
- /* K11 */ be_nested_str_literal("wd"),
- /* K12 */ be_nested_str_literal(""),
- /* K13 */ be_nested_str_literal("_debug_present"),
- /* K14 */ be_nested_str_literal("debug"),
- }),
- (be_nested_const_str("init", 380752755, 4)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[36]) { /* code */
- 0xB8060200, // 0000 GETNGBL R1 K1
- 0x88080102, // 0001 GETMBR R2 R0 K2
- 0x880C0103, // 0002 GETMBR R3 R0 K3
- 0x7C040400, // 0003 CALL R1 2
- 0x90020001, // 0004 SETMBR R0 K0 R1
- 0xA4060800, // 0005 IMPORT R1 K4
- 0x60080015, // 0006 GETGBL R2 G21
- 0x880C0105, // 0007 GETMBR R3 R0 K5
- 0x54120003, // 0008 LDINT R4 4
- 0x7C080400, // 0009 CALL R2 2
- 0x8C080506, // 000A GETMET R2 R2 K6
- 0x58100007, // 000B LDCONST R4 K7
- 0x54160003, // 000C LDINT R5 4
- 0x7C080600, // 000D CALL R2 3
- 0x780A0006, // 000E JMPF R2 #0016
- 0xB80E0200, // 000F GETNGBL R3 K1
- 0x8C100309, // 0010 GETMET R4 R1 K9
- 0x5C180400, // 0011 MOVE R6 R2
- 0x7C100400, // 0012 CALL R4 2
- 0x8814010A, // 0013 GETMBR R5 R0 K10
- 0x7C0C0400, // 0014 CALL R3 2
- 0x90021003, // 0015 SETMBR R0 K8 R3
- 0x9002170C, // 0016 SETMBR R0 K11 K12
- 0x500C0000, // 0017 LDBOOL R3 0 0
- 0x90021A03, // 0018 SETMBR R0 K13 R3
- 0xA8020004, // 0019 EXBLK 0 #001F
- 0xA40E1C00, // 001A IMPORT R3 K14
- 0x50100200, // 001B LDBOOL R4 1 0
- 0x90021A04, // 001C SETMBR R0 K13 R4
- 0xA8040001, // 001D EXBLK 1 1
- 0x70020003, // 001E JMP #0023
- 0xAC0C0000, // 001F CATCH R3 0 0
- 0x70020000, // 0020 JMP #0022
- 0x70020000, // 0021 JMP #0023
- 0xB0080000, // 0022 RAISE 2 R0 R0
- 0x80000000, // 0023 RET 0
- })
- )
-);
-/*******************************************************************/
/********************************************************************
** Solidified function: add_driver
********************************************************************/
-be_local_closure(add_driver, /* name */
+be_local_closure(Tasmota_add_driver, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -218,24 +69,24 @@ be_local_closure(add_driver, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_drivers", -1034638311, 8),
- /* K1 */ be_nested_string("push", -2022703139, 4),
+ /* K0 */ be_nested_str(_drivers),
+ /* K1 */ be_nested_str(push),
}),
- (be_nested_const_str("add_driver", 1654458371, 10)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_add_driver,
+ &be_const_str_solidified,
( &(const binstruction[12]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x780A0004, // 0001 JMPF R2 #0007
- 0x88080100, // 0002 GETMBR R2 R0 K0
- 0x8C080501, // 0003 GETMET R2 R2 K1
- 0x5C100200, // 0004 MOVE R4 R1
- 0x7C080400, // 0005 CALL R2 2
- 0x70020003, // 0006 JMP #000B
- 0x60080012, // 0007 GETGBL R2 G18
- 0x7C080000, // 0008 CALL R2 0
- 0x400C0401, // 0009 CONNECT R3 R2 R1
- 0x90020002, // 000A SETMBR R0 K0 R2
- 0x80000000, // 000B RET 0
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x780A0004, // 0001 JMPF R2 #0007
+ 0x88080100, // 0002 GETMBR R2 R0 K0
+ 0x8C080501, // 0003 GETMET R2 R2 K1
+ 0x5C100200, // 0004 MOVE R4 R1
+ 0x7C080400, // 0005 CALL R2 2
+ 0x70020003, // 0006 JMP #000B
+ 0x60080012, // 0007 GETGBL R2 G18
+ 0x7C080000, // 0008 CALL R2 0
+ 0x400C0401, // 0009 CONNECT R3 R2 R1
+ 0x90020002, // 000A SETMBR R0 K0 R2
+ 0x80000000, // 000B RET 0
})
)
);
@@ -243,77 +94,12 @@ be_local_closure(add_driver, /* name */
/********************************************************************
-** Solidified function: gen_cb
+** Solidified function: gc
********************************************************************/
-be_local_closure(gen_cb, /* name */
+be_local_closure(Tasmota_gc, /* name */
be_nested_proto(
- 7, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("_cb", -251666929, 3),
- /* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("find", -1108310694, 4),
- /* K3 */ be_nested_string("_get_cb", 1448849122, 7),
- /* K4 */ be_nested_string("stop_iteration", -121173395, 14),
- /* K5 */ be_nested_string("internal_error", -1775809127, 14),
- /* K6 */ be_nested_string("No callback available", 633786138, 21),
- }),
- (be_nested_const_str("gen_cb", -1049739745, 6)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[34]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x4C0C0000, // 0001 LDNIL R3
- 0x1C080403, // 0002 EQ R2 R2 R3
- 0x780A0002, // 0003 JMPF R2 #0007
- 0x60080013, // 0004 GETGBL R2 G19
- 0x7C080000, // 0005 CALL R2 0
- 0x90020002, // 0006 SETMBR R0 K0 R2
- 0x60080010, // 0007 GETGBL R2 G16
- 0x540E0012, // 0008 LDINT R3 19
- 0x400E0203, // 0009 CONNECT R3 K1 R3
- 0x7C080200, // 000A CALL R2 1
- 0xA8020010, // 000B EXBLK 0 #001D
- 0x5C0C0400, // 000C MOVE R3 R2
- 0x7C0C0000, // 000D CALL R3 0
- 0x88100100, // 000E GETMBR R4 R0 K0
- 0x8C100902, // 000F GETMET R4 R4 K2
- 0x5C180600, // 0010 MOVE R6 R3
- 0x7C100400, // 0011 CALL R4 2
- 0x4C140000, // 0012 LDNIL R5
- 0x1C100805, // 0013 EQ R4 R4 R5
- 0x78120006, // 0014 JMPF R4 #001C
- 0x88100100, // 0015 GETMBR R4 R0 K0
- 0x98100601, // 0016 SETIDX R4 R3 R1
- 0x8C100103, // 0017 GETMET R4 R0 K3
- 0x5C180600, // 0018 MOVE R6 R3
- 0x7C100400, // 0019 CALL R4 2
- 0xA8040001, // 001A EXBLK 1 1
- 0x80040800, // 001B RET 1 R4
- 0x7001FFEE, // 001C JMP #000C
- 0x58080004, // 001D LDCONST R2 K4
- 0xAC080200, // 001E CATCH R2 1 0
- 0xB0080000, // 001F RAISE 2 R0 R0
- 0xB0060B06, // 0020 RAISE 1 K5 K6
- 0x80000000, // 0021 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: set_light
-********************************************************************/
-be_local_closure(set_light, /* name */
- be_nested_proto(
- 8, /* nstack */
- 3, /* argc */
+ 4, /* nstack */
+ 1, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
@@ -321,700 +107,19 @@ be_local_closure(set_light, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("tasmota.set_light() is deprecated, use light.set()", 2124937871, 50),
- /* K1 */ be_nested_string("light", -493019601, 5),
- /* K2 */ be_nested_string("set", -970520829, 3),
+ /* K0 */ be_nested_str(gc),
+ /* K1 */ be_nested_str(collect),
+ /* K2 */ be_nested_str(allocated),
}),
- (be_nested_const_str("set_light", -1118891144, 9)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[18]) { /* code */
- 0x600C0001, // 0000 GETGBL R3 G1
- 0x58100000, // 0001 LDCONST R4 K0
- 0x7C0C0200, // 0002 CALL R3 1
- 0xA40E0200, // 0003 IMPORT R3 K1
- 0x4C100000, // 0004 LDNIL R4
- 0x20100404, // 0005 NE R4 R2 R4
- 0x78120005, // 0006 JMPF R4 #000D
- 0x8C100702, // 0007 GETMET R4 R3 K2
- 0x5C180200, // 0008 MOVE R6 R1
- 0x5C1C0400, // 0009 MOVE R7 R2
- 0x7C100600, // 000A CALL R4 3
- 0x80040800, // 000B RET 1 R4
- 0x70020003, // 000C JMP #0011
- 0x8C100702, // 000D GETMET R4 R3 K2
- 0x5C180200, // 000E MOVE R6 R1
- 0x7C100400, // 000F CALL R4 2
- 0x80040800, // 0010 RET 1 R4
- 0x80000000, // 0011 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_rule
-********************************************************************/
-be_local_closure(remove_rule, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("_rules", -28750191, 6),
- /* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("k", -301188886, 1),
- /* K3 */ be_nested_string("remove", -611183107, 6),
- /* K4 */ be_const_int(1),
- }),
- (be_nested_const_str("remove_rule", -838755968, 11)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[21]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x780A0011, // 0001 JMPF R2 #0014
- 0x58080001, // 0002 LDCONST R2 K1
- 0x600C000C, // 0003 GETGBL R3 G12
- 0x88100100, // 0004 GETMBR R4 R0 K0
- 0x7C0C0200, // 0005 CALL R3 1
- 0x140C0403, // 0006 LT R3 R2 R3
- 0x780E000B, // 0007 JMPF R3 #0014
- 0x880C0100, // 0008 GETMBR R3 R0 K0
- 0x940C0602, // 0009 GETIDX R3 R3 R2
- 0x880C0702, // 000A GETMBR R3 R3 K2
- 0x1C0C0601, // 000B EQ R3 R3 R1
- 0x780E0004, // 000C JMPF R3 #0012
- 0x880C0100, // 000D GETMBR R3 R0 K0
- 0x8C0C0703, // 000E GETMET R3 R3 K3
- 0x5C140400, // 000F MOVE R5 R2
- 0x7C0C0400, // 0010 CALL R3 2
- 0x70020000, // 0011 JMP #0013
- 0x00080504, // 0012 ADD R2 R2 K4
- 0x7001FFEE, // 0013 JMP #0003
- 0x80000000, // 0014 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: add_cmd
-********************************************************************/
-be_local_closure(add_cmd, /* name */
- be_nested_proto(
- 5, /* nstack */
- 3, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("_ccmd", -2131545883, 5),
- /* K1 */ be_nested_string("function", -1630125495, 8),
- /* K2 */ be_nested_string("value_error", 773297791, 11),
- /* K3 */ be_nested_string("the second argument is not a function", -340392827, 37),
- }),
- (be_nested_const_str("add_cmd", -933336417, 7)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[15]) { /* code */
- 0x880C0100, // 0000 GETMBR R3 R0 K0
- 0x740E0002, // 0001 JMPT R3 #0005
- 0x600C0013, // 0002 GETGBL R3 G19
- 0x7C0C0000, // 0003 CALL R3 0
- 0x90020003, // 0004 SETMBR R0 K0 R3
- 0x600C0004, // 0005 GETGBL R3 G4
- 0x5C100400, // 0006 MOVE R4 R2
- 0x7C0C0200, // 0007 CALL R3 1
- 0x1C0C0701, // 0008 EQ R3 R3 K1
- 0x780E0002, // 0009 JMPF R3 #000D
- 0x880C0100, // 000A GETMBR R3 R0 K0
- 0x980C0202, // 000B SETIDX R3 R1 R2
- 0x70020000, // 000C JMP #000E
- 0xB0060503, // 000D RAISE 1 K2 K3
- 0x80000000, // 000E RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: wire_scan
-********************************************************************/
-be_local_closure(wire_scan, /* name */
- be_nested_proto(
- 6, /* nstack */
- 3, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("i2c_enabled", 218388101, 11),
- /* K1 */ be_nested_string("wire1", -1082245877, 5),
- /* K2 */ be_nested_string("enabled", 49525662, 7),
- /* K3 */ be_nested_string("detect", 8884370, 6),
- /* K4 */ be_nested_string("wire2", -1065468258, 5),
- }),
- (be_nested_const_str("wire_scan", -1623691416, 9)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[33]) { /* code */
- 0x4C0C0000, // 0000 LDNIL R3
- 0x200C0403, // 0001 NE R3 R2 R3
- 0x780E0005, // 0002 JMPF R3 #0009
- 0x8C0C0100, // 0003 GETMET R3 R0 K0
- 0x5C140400, // 0004 MOVE R5 R2
- 0x7C0C0400, // 0005 CALL R3 2
- 0x740E0001, // 0006 JMPT R3 #0009
- 0x4C0C0000, // 0007 LDNIL R3
- 0x80040600, // 0008 RET 1 R3
- 0x880C0101, // 0009 GETMBR R3 R0 K1
- 0x8C0C0702, // 000A GETMET R3 R3 K2
- 0x7C0C0200, // 000B CALL R3 1
- 0x780E0006, // 000C JMPF R3 #0014
- 0x880C0101, // 000D GETMBR R3 R0 K1
- 0x8C0C0703, // 000E GETMET R3 R3 K3
- 0x5C140200, // 000F MOVE R5 R1
- 0x7C0C0400, // 0010 CALL R3 2
- 0x780E0001, // 0011 JMPF R3 #0014
- 0x880C0101, // 0012 GETMBR R3 R0 K1
- 0x80040600, // 0013 RET 1 R3
- 0x880C0104, // 0014 GETMBR R3 R0 K4
- 0x8C0C0702, // 0015 GETMET R3 R3 K2
- 0x7C0C0200, // 0016 CALL R3 1
- 0x780E0006, // 0017 JMPF R3 #001F
- 0x880C0104, // 0018 GETMBR R3 R0 K4
- 0x8C0C0703, // 0019 GETMET R3 R3 K3
- 0x5C140200, // 001A MOVE R5 R1
- 0x7C0C0400, // 001B CALL R3 2
- 0x780E0001, // 001C JMPF R3 #001F
- 0x880C0104, // 001D GETMBR R3 R0 K4
- 0x80040600, // 001E RET 1 R3
- 0x4C0C0000, // 001F LDNIL R3
- 0x80040600, // 0020 RET 1 R3
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: find_key_i
-********************************************************************/
-be_local_closure(find_key_i, /* name */
- be_nested_proto(
- 10, /* nstack */
- 3, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("toupper", -602983720, 7),
- /* K2 */ be_nested_string("keys", -112588595, 4),
- /* K3 */ be_nested_string("?", 973910158, 1),
- /* K4 */ be_nested_string("stop_iteration", -121173395, 14),
- }),
- (be_nested_const_str("find_key_i", 850136726, 10)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[30]) { /* code */
- 0xA40E0000, // 0000 IMPORT R3 K0
- 0x8C100701, // 0001 GETMET R4 R3 K1
- 0x5C180400, // 0002 MOVE R6 R2
- 0x7C100400, // 0003 CALL R4 2
- 0x6014000F, // 0004 GETGBL R5 G15
- 0x5C180200, // 0005 MOVE R6 R1
- 0x601C0013, // 0006 GETGBL R7 G19
- 0x7C140400, // 0007 CALL R5 2
- 0x78160013, // 0008 JMPF R5 #001D
- 0x60140010, // 0009 GETGBL R5 G16
- 0x8C180302, // 000A GETMET R6 R1 K2
- 0x7C180200, // 000B CALL R6 1
- 0x7C140200, // 000C CALL R5 1
- 0xA802000B, // 000D EXBLK 0 #001A
- 0x5C180A00, // 000E MOVE R6 R5
- 0x7C180000, // 000F CALL R6 0
- 0x8C1C0701, // 0010 GETMET R7 R3 K1
- 0x5C240C00, // 0011 MOVE R9 R6
- 0x7C1C0400, // 0012 CALL R7 2
- 0x1C1C0E04, // 0013 EQ R7 R7 R4
- 0x741E0001, // 0014 JMPT R7 #0017
- 0x1C1C0503, // 0015 EQ R7 R2 K3
- 0x781E0001, // 0016 JMPF R7 #0019
- 0xA8040001, // 0017 EXBLK 1 1
- 0x80040C00, // 0018 RET 1 R6
- 0x7001FFF3, // 0019 JMP #000E
- 0x58140004, // 001A LDCONST R5 K4
- 0xAC140200, // 001B CATCH R5 1 0
- 0xB0080000, // 001C RAISE 2 R0 R0
- 0x80000000, // 001D RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: chars_in_string
-********************************************************************/
-be_local_closure(chars_in_string, /* name */
- be_nested_proto(
- 10, /* nstack */
- 4, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_const_int(0),
- /* K1 */ be_const_int(1),
- }),
- (be_nested_const_str("chars_in_string", -1146182164, 15)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[31]) { /* code */
- 0x780E0001, // 0000 JMPF R3 #0003
- 0x50100200, // 0001 LDBOOL R4 1 0
- 0x70020000, // 0002 JMP #0004
- 0x50100000, // 0003 LDBOOL R4 0 0
- 0x58140000, // 0004 LDCONST R5 K0
- 0x6018000C, // 0005 GETGBL R6 G12
- 0x5C1C0200, // 0006 MOVE R7 R1
- 0x7C180200, // 0007 CALL R6 1
- 0x14180A06, // 0008 LT R6 R5 R6
- 0x781A0012, // 0009 JMPF R6 #001D
- 0x50180000, // 000A LDBOOL R6 0 0
- 0x581C0000, // 000B LDCONST R7 K0
- 0x6020000C, // 000C GETGBL R8 G12
- 0x5C240400, // 000D MOVE R9 R2
- 0x7C200200, // 000E CALL R8 1
- 0x14200E08, // 000F LT R8 R7 R8
- 0x78220006, // 0010 JMPF R8 #0018
- 0x94200205, // 0011 GETIDX R8 R1 R5
- 0x94240407, // 0012 GETIDX R9 R2 R7
- 0x1C201009, // 0013 EQ R8 R8 R9
- 0x78220000, // 0014 JMPF R8 #0016
- 0x50180200, // 0015 LDBOOL R6 1 0
- 0x001C0F01, // 0016 ADD R7 R7 K1
- 0x7001FFF3, // 0017 JMP #000C
- 0x20200806, // 0018 NE R8 R4 R6
- 0x78220000, // 0019 JMPF R8 #001B
- 0x80040A00, // 001A RET 1 R5
- 0x00140B01, // 001B ADD R5 R5 K1
- 0x7001FFE7, // 001C JMP #0005
- 0x5419FFFE, // 001D LDINT R6 -1
- 0x80040C00, // 001E RET 1 R6
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: set_timer
-********************************************************************/
-be_local_closure(set_timer, /* name */
- be_nested_proto(
- 10, /* nstack */
- 4, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_string("_timers", -1694866380, 7),
- /* K1 */ be_nested_string("push", -2022703139, 4),
- /* K2 */ be_nested_string("Timer", -346839614, 5),
- /* K3 */ be_nested_string("millis", 1214679063, 6),
- }),
- (be_nested_const_str("set_timer", 2135414533, 9)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[16]) { /* code */
- 0x88100100, // 0000 GETMBR R4 R0 K0
- 0x74120002, // 0001 JMPT R4 #0005
- 0x60100012, // 0002 GETGBL R4 G18
- 0x7C100000, // 0003 CALL R4 0
- 0x90020004, // 0004 SETMBR R0 K0 R4
- 0x88100100, // 0005 GETMBR R4 R0 K0
- 0x8C100901, // 0006 GETMET R4 R4 K1
- 0xB81A0400, // 0007 GETNGBL R6 K2
- 0x8C1C0103, // 0008 GETMET R7 R0 K3
- 0x5C240200, // 0009 MOVE R9 R1
- 0x7C1C0400, // 000A CALL R7 2
- 0x5C200400, // 000B MOVE R8 R2
- 0x5C240600, // 000C MOVE R9 R3
- 0x7C180600, // 000D CALL R6 3
- 0x7C100400, // 000E CALL R4 2
- 0x80000000, // 000F RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: add_rule
-********************************************************************/
-be_local_closure(add_rule, /* name */
- be_nested_proto(
- 9, /* nstack */
- 3, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("_rules", -28750191, 6),
- /* K1 */ be_nested_string("function", -1630125495, 8),
- /* K2 */ be_nested_string("push", -2022703139, 4),
- /* K3 */ be_nested_string("kv", 1497177492, 2),
- /* K4 */ be_nested_string("value_error", 773297791, 11),
- /* K5 */ be_nested_string("the second argument is not a function", -340392827, 37),
- }),
- (be_nested_const_str("add_rule", 596540743, 8)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[20]) { /* code */
- 0x880C0100, // 0000 GETMBR R3 R0 K0
- 0x740E0002, // 0001 JMPT R3 #0005
- 0x600C0012, // 0002 GETGBL R3 G18
- 0x7C0C0000, // 0003 CALL R3 0
- 0x90020003, // 0004 SETMBR R0 K0 R3
- 0x600C0004, // 0005 GETGBL R3 G4
- 0x5C100400, // 0006 MOVE R4 R2
- 0x7C0C0200, // 0007 CALL R3 1
- 0x1C0C0701, // 0008 EQ R3 R3 K1
- 0x780E0007, // 0009 JMPF R3 #0012
- 0x880C0100, // 000A GETMBR R3 R0 K0
- 0x8C0C0702, // 000B GETMET R3 R3 K2
- 0x8C140103, // 000C GETMET R5 R0 K3
- 0x5C1C0200, // 000D MOVE R7 R1
- 0x5C200400, // 000E MOVE R8 R2
- 0x7C140600, // 000F CALL R5 3
- 0x7C0C0400, // 0010 CALL R3 2
- 0x70020000, // 0011 JMP #0013
- 0xB0060905, // 0012 RAISE 1 K4 K5
- 0x80000000, // 0013 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: run_deferred
-********************************************************************/
-be_local_closure(run_deferred, /* name */
- be_nested_proto(
- 6, /* nstack */
- 1, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 8]) { /* constants */
- /* K0 */ be_nested_string("_timers", -1694866380, 7),
- /* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("size", 597743964, 4),
- /* K3 */ be_nested_string("time_reached", 2075136773, 12),
- /* K4 */ be_nested_string("due", -399437003, 3),
- /* K5 */ be_nested_string("f", -485742695, 1),
- /* K6 */ be_nested_string("remove", -611183107, 6),
- /* K7 */ be_const_int(1),
- }),
- (be_nested_const_str("run_deferred", 371594696, 12)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[27]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x78060017, // 0001 JMPF R1 #001A
- 0x58040001, // 0002 LDCONST R1 K1
- 0x88080100, // 0003 GETMBR R2 R0 K0
- 0x8C080502, // 0004 GETMET R2 R2 K2
- 0x7C080200, // 0005 CALL R2 1
- 0x14080202, // 0006 LT R2 R1 R2
- 0x780A0011, // 0007 JMPF R2 #001A
- 0x8C080103, // 0008 GETMET R2 R0 K3
- 0x88100100, // 0009 GETMBR R4 R0 K0
- 0x94100801, // 000A GETIDX R4 R4 R1
- 0x88100904, // 000B GETMBR R4 R4 K4
- 0x7C080400, // 000C CALL R2 2
- 0x780A0009, // 000D JMPF R2 #0018
- 0x88080100, // 000E GETMBR R2 R0 K0
- 0x94080401, // 000F GETIDX R2 R2 R1
- 0x88080505, // 0010 GETMBR R2 R2 K5
- 0x880C0100, // 0011 GETMBR R3 R0 K0
- 0x8C0C0706, // 0012 GETMET R3 R3 K6
- 0x5C140200, // 0013 MOVE R5 R1
- 0x7C0C0400, // 0014 CALL R3 2
- 0x5C0C0400, // 0015 MOVE R3 R2
- 0x7C0C0000, // 0016 CALL R3 0
- 0x70020000, // 0017 JMP #0019
- 0x00040307, // 0018 ADD R1 R1 K7
- 0x7001FFE8, // 0019 JMP #0003
- 0x80000000, // 001A RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: cmd
-********************************************************************/
-be_local_closure(cmd, /* name */
- be_nested_proto(
- 5, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("cmd_res", 921166762, 7),
- /* K1 */ be_nested_string("_cmd", -875145154, 4),
- }),
- (be_nested_const_str("cmd", -158181397, 3)),
- (be_nested_const_str("tasmota.be", 1128870755, 10)),
- ( &(const binstruction[14]) { /* code */
- 0x50080200, // 0000 LDBOOL R2 1 0
- 0x90020002, // 0001 SETMBR R0 K0 R2
- 0x8C080101, // 0002 GETMET R2 R0 K1
- 0x5C100200, // 0003 MOVE R4 R1
- 0x7C080400, // 0004 CALL R2 2
- 0x4C080000, // 0005 LDNIL R2
- 0x880C0100, // 0006 GETMBR R3 R0 K0
- 0x50100200, // 0007 LDBOOL R4 1 0
- 0x200C0604, // 0008 NE R3 R3 R4
- 0x780E0000, // 0009 JMPF R3 #000B
- 0x88080100, // 000A GETMBR R2 R0 K0
- 0x4C0C0000, // 000B LDNIL R3
- 0x90020003, // 000C SETMBR R0 K0 R3
- 0x80040400, // 000D RET 1 R2
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: time_str
-********************************************************************/
-be_local_closure(time_str, /* name */
- be_nested_proto(
- 13, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("time_dump", -964556549, 9),
- /* K2 */ be_nested_string("format", -1180859054, 6),
- /* K3 */ be_nested_string("%04d-%02d-%02dT%02d:%02d:%02d", -869438695, 29),
- /* K4 */ be_nested_string("year", -1367388900, 4),
- /* K5 */ be_nested_string("month", -696646139, 5),
- /* K6 */ be_nested_string("day", -464576003, 3),
- /* K7 */ be_nested_string("hour", -1241306097, 4),
- /* K8 */ be_nested_string("min", -913357481, 3),
- /* K9 */ be_nested_string("sec", -1155074638, 3),
- }),
- (be_nested_const_str("time_str", -1681139684, 8)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[14]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0x8C0C0101, // 0001 GETMET R3 R0 K1
- 0x5C140200, // 0002 MOVE R5 R1
- 0x7C0C0400, // 0003 CALL R3 2
- 0x8C100502, // 0004 GETMET R4 R2 K2
- 0x58180003, // 0005 LDCONST R6 K3
- 0x941C0704, // 0006 GETIDX R7 R3 K4
- 0x94200705, // 0007 GETIDX R8 R3 K5
- 0x94240706, // 0008 GETIDX R9 R3 K6
- 0x94280707, // 0009 GETIDX R10 R3 K7
- 0x942C0708, // 000A GETIDX R11 R3 K8
- 0x94300709, // 000B GETIDX R12 R3 K9
- 0x7C101000, // 000C CALL R4 8
- 0x80040800, // 000D RET 1 R4
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: load
-********************************************************************/
-be_local_closure(load, /* name */
- be_nested_proto(
- 19, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[21]) { /* constants */
- /* K0 */ be_nested_str_literal("string"),
- /* K1 */ be_nested_str_literal("path"),
- /* K2 */ be_const_int(0),
- /* K3 */ be_nested_str_literal("/"),
- /* K4 */ be_nested_str_literal("split"),
- /* K5 */ be_nested_str_literal("#"),
- /* K6 */ be_const_int(1),
- /* K7 */ be_nested_str_literal("find"),
- /* K8 */ be_nested_str_literal("."),
- /* K9 */ be_nested_str_literal(".be"),
- /* K10 */ be_nested_str_literal(".bec"),
- /* K11 */ be_nested_str_literal("io_error"),
- /* K12 */ be_nested_str_literal("file extension is not '.be' or '.bec'"),
- /* K13 */ be_nested_str_literal("last_modified"),
- /* K14 */ be_nested_str_literal("c"),
- /* K15 */ be_nested_str_literal("wd"),
- /* K16 */ be_nested_str_literal(""),
- /* K17 */ be_nested_str_literal("file"),
- /* K18 */ be_nested_str_literal("save"),
- /* K19 */ be_nested_str_literal("format"),
- /* K20 */ be_nested_str_literal("BRY: could not save compiled file %s (%s)"),
- }),
- (be_nested_const_str("load", -435725847, 4)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[112]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0xA40E0200, // 0001 IMPORT R3 K1
- 0x6010000C, // 0002 GETGBL R4 G12
- 0x5C140200, // 0003 MOVE R5 R1
- 0x7C100200, // 0004 CALL R4 1
- 0x1C100902, // 0005 EQ R4 R4 K2
- 0x78120001, // 0006 JMPF R4 #0009
- 0x50100000, // 0007 LDBOOL R4 0 0
- 0x80040800, // 0008 RET 1 R4
- 0x94100302, // 0009 GETIDX R4 R1 K2
- 0x20100903, // 000A NE R4 R4 K3
- 0x78120000, // 000B JMPF R4 #000D
- 0x00060601, // 000C ADD R1 K3 R1
- 0x8C100504, // 000D GETMET R4 R2 K4
- 0x5C180200, // 000E MOVE R6 R1
- 0x581C0005, // 000F LDCONST R7 K5
- 0x7C100600, // 0010 CALL R4 3
- 0x94140902, // 0011 GETIDX R5 R4 K2
- 0x5419FFFE, // 0012 LDINT R6 -1
- 0x94180806, // 0013 GETIDX R6 R4 R6
- 0x601C000C, // 0014 GETGBL R7 G12
- 0x5C200800, // 0015 MOVE R8 R4
- 0x7C1C0200, // 0016 CALL R7 1
- 0x241C0F06, // 0017 GT R7 R7 K6
- 0x8C200507, // 0018 GETMET R8 R2 K7
- 0x5C280C00, // 0019 MOVE R10 R6
- 0x582C0008, // 001A LDCONST R11 K8
- 0x7C200600, // 001B CALL R8 3
- 0x14201102, // 001C LT R8 R8 K2
- 0x78220001, // 001D JMPF R8 #0020
- 0x00040309, // 001E ADD R1 R1 K9
- 0x00180D09, // 001F ADD R6 R6 K9
- 0x5421FFFC, // 0020 LDINT R8 -3
- 0x5425FFFE, // 0021 LDINT R9 -1
- 0x40201009, // 0022 CONNECT R8 R8 R9
- 0x94200C08, // 0023 GETIDX R8 R6 R8
- 0x1C201109, // 0024 EQ R8 R8 K9
- 0x5425FFFB, // 0025 LDINT R9 -4
- 0x5429FFFE, // 0026 LDINT R10 -1
- 0x4024120A, // 0027 CONNECT R9 R9 R10
- 0x94240C09, // 0028 GETIDX R9 R6 R9
- 0x1C24130A, // 0029 EQ R9 R9 K10
- 0x5C281000, // 002A MOVE R10 R8
- 0x742A0002, // 002B JMPT R10 #002F
- 0x5C281200, // 002C MOVE R10 R9
- 0x742A0000, // 002D JMPT R10 #002F
- 0xB006170C, // 002E RAISE 1 K11 K12
- 0x8C28070D, // 002F GETMET R10 R3 K13
- 0x5C300A00, // 0030 MOVE R12 R5
- 0x7C280400, // 0031 CALL R10 2
- 0x78260005, // 0032 JMPF R9 #0039
- 0x4C2C0000, // 0033 LDNIL R11
- 0x1C2C140B, // 0034 EQ R11 R10 R11
- 0x782E0001, // 0035 JMPF R11 #0038
- 0x502C0000, // 0036 LDBOOL R11 0 0
- 0x80041600, // 0037 RET 1 R11
- 0x70020013, // 0038 JMP #004D
- 0x8C2C070D, // 0039 GETMET R11 R3 K13
- 0x0034030E, // 003A ADD R13 R1 K14
- 0x7C2C0400, // 003B CALL R11 2
- 0x4C300000, // 003C LDNIL R12
- 0x1C30140C, // 003D EQ R12 R10 R12
- 0x78320004, // 003E JMPF R12 #0044
- 0x4C300000, // 003F LDNIL R12
- 0x1C30160C, // 0040 EQ R12 R11 R12
- 0x78320001, // 0041 JMPF R12 #0044
- 0x50300000, // 0042 LDBOOL R12 0 0
- 0x80041800, // 0043 RET 1 R12
- 0x4C300000, // 0044 LDNIL R12
- 0x2030160C, // 0045 NE R12 R11 R12
- 0x78320005, // 0046 JMPF R12 #004D
- 0x4C300000, // 0047 LDNIL R12
- 0x1C30140C, // 0048 EQ R12 R10 R12
- 0x74320001, // 0049 JMPT R12 #004C
- 0x2830160A, // 004A GE R12 R11 R10
- 0x78320000, // 004B JMPF R12 #004D
- 0x50240200, // 004C LDBOOL R9 1 0
- 0x781E0002, // 004D JMPF R7 #0051
- 0x002C0B05, // 004E ADD R11 R5 K5
- 0x90021E0B, // 004F SETMBR R0 K15 R11
- 0x70020000, // 0050 JMP #0052
- 0x90021F10, // 0051 SETMBR R0 K15 K16
- 0x602C000D, // 0052 GETGBL R11 G13
- 0x5C300200, // 0053 MOVE R12 R1
- 0x58340011, // 0054 LDCONST R13 K17
- 0x7C2C0400, // 0055 CALL R11 2
- 0x5C301200, // 0056 MOVE R12 R9
- 0x74320013, // 0057 JMPT R12 #006C
- 0x5C300E00, // 0058 MOVE R12 R7
- 0x74320011, // 0059 JMPT R12 #006C
- 0xA8020005, // 005A EXBLK 0 #0061
- 0x8C300112, // 005B GETMET R12 R0 K18
- 0x0038030E, // 005C ADD R14 R1 K14
- 0x5C3C1600, // 005D MOVE R15 R11
- 0x7C300600, // 005E CALL R12 3
- 0xA8040001, // 005F EXBLK 1 1
- 0x7002000A, // 0060 JMP #006C
- 0xAC300001, // 0061 CATCH R12 0 1
- 0x70020007, // 0062 JMP #006B
- 0x60340001, // 0063 GETGBL R13 G1
- 0x8C380513, // 0064 GETMET R14 R2 K19
- 0x58400014, // 0065 LDCONST R16 K20
- 0x0044030E, // 0066 ADD R17 R1 K14
- 0x5C481800, // 0067 MOVE R18 R12
- 0x7C380800, // 0068 CALL R14 4
- 0x7C340200, // 0069 CALL R13 1
- 0x70020000, // 006A JMP #006C
- 0xB0080000, // 006B RAISE 2 R0 R0
- 0x5C301600, // 006C MOVE R12 R11
- 0x7C300000, // 006D CALL R12 0
- 0x50300200, // 006E LDBOOL R12 1 0
- 0x80041800, // 006F RET 1 R12
+ &be_const_str_gc,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0x8C080301, // 0001 GETMET R2 R1 K1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x8C080302, // 0003 GETMET R2 R1 K2
+ 0x7C080200, // 0004 CALL R2 1
+ 0x80040400, // 0005 RET 1 R2
})
)
);
@@ -1024,7 +129,7 @@ be_local_closure(load, /* name */
/********************************************************************
** Solidified function: find_op
********************************************************************/
-be_local_closure(find_op, /* name */
+be_local_closure(Tasmota_find_op, /* name */
be_nested_proto(
13, /* nstack */
2, /* argc */
@@ -1035,357 +140,58 @@ be_local_closure(find_op, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("=<>!", -1630497019, 4),
- /* K2 */ be_nested_string("chars_in_string", -1146182164, 15),
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(_X3D_X3C_X3E_X21),
+ /* K2 */ be_nested_str(chars_in_string),
/* K3 */ be_const_int(0),
- /* K4 */ be_nested_string("split", -2017972765, 5),
+ /* K4 */ be_nested_str(split),
/* K5 */ be_const_int(1),
}),
- (be_nested_const_str("find_op", -528253920, 7)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_find_op,
+ &be_const_str_solidified,
( &(const binstruction[42]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0x580C0001, // 0001 LDCONST R3 K1
- 0x8C100102, // 0002 GETMET R4 R0 K2
- 0x5C180200, // 0003 MOVE R6 R1
- 0x5C1C0600, // 0004 MOVE R7 R3
- 0x7C100600, // 0005 CALL R4 3
- 0x28140903, // 0006 GE R5 R4 K3
- 0x78160019, // 0007 JMPF R5 #0022
- 0x8C140504, // 0008 GETMET R5 R2 K4
- 0x5C1C0200, // 0009 MOVE R7 R1
- 0x5C200800, // 000A MOVE R8 R4
- 0x7C140600, // 000B CALL R5 3
- 0x94180B03, // 000C GETIDX R6 R5 K3
- 0x941C0B05, // 000D GETIDX R7 R5 K5
- 0x8C200102, // 000E GETMET R8 R0 K2
- 0x5C280E00, // 000F MOVE R10 R7
- 0x5C2C0600, // 0010 MOVE R11 R3
- 0x50300200, // 0011 LDBOOL R12 1 0
- 0x7C200800, // 0012 CALL R8 4
- 0x5C101000, // 0013 MOVE R4 R8
- 0x28200903, // 0014 GE R8 R4 K3
- 0x7822000B, // 0015 JMPF R8 #0022
- 0x8C200504, // 0016 GETMET R8 R2 K4
- 0x5C280E00, // 0017 MOVE R10 R7
- 0x5C2C0800, // 0018 MOVE R11 R4
- 0x7C200600, // 0019 CALL R8 3
- 0x94241103, // 001A GETIDX R9 R8 K3
- 0x94281105, // 001B GETIDX R10 R8 K5
- 0x602C0012, // 001C GETGBL R11 G18
- 0x7C2C0000, // 001D CALL R11 0
- 0x40301606, // 001E CONNECT R12 R11 R6
- 0x40301609, // 001F CONNECT R12 R11 R9
- 0x4030160A, // 0020 CONNECT R12 R11 R10
- 0x80041600, // 0021 RET 1 R11
- 0x60140012, // 0022 GETGBL R5 G18
- 0x7C140000, // 0023 CALL R5 0
- 0x40180A01, // 0024 CONNECT R6 R5 R1
- 0x4C180000, // 0025 LDNIL R6
- 0x40180A06, // 0026 CONNECT R6 R5 R6
- 0x4C180000, // 0027 LDNIL R6
- 0x40180A06, // 0028 CONNECT R6 R5 R6
- 0x80040A00, // 0029 RET 1 R5
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_timer
-********************************************************************/
-be_local_closure(remove_timer, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_string("tasmota", 424643812, 7),
- /* K1 */ be_nested_string("_timers", -1694866380, 7),
- /* K2 */ be_const_int(0),
- /* K3 */ be_nested_string("size", 597743964, 4),
- /* K4 */ be_nested_string("id", 926444256, 2),
- /* K5 */ be_nested_string("remove", -611183107, 6),
- /* K6 */ be_const_int(1),
- }),
- (be_nested_const_str("remove_timer", -153495081, 12)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[23]) { /* code */
- 0xB80A0000, // 0000 GETNGBL R2 K0
- 0x88080501, // 0001 GETMBR R2 R2 K1
- 0x780A0012, // 0002 JMPF R2 #0016
- 0x58080002, // 0003 LDCONST R2 K2
- 0xB80E0000, // 0004 GETNGBL R3 K0
- 0x880C0701, // 0005 GETMBR R3 R3 K1
- 0x8C0C0703, // 0006 GETMET R3 R3 K3
- 0x7C0C0200, // 0007 CALL R3 1
- 0x140C0403, // 0008 LT R3 R2 R3
- 0x780E000B, // 0009 JMPF R3 #0016
- 0x880C0101, // 000A GETMBR R3 R0 K1
- 0x940C0602, // 000B GETIDX R3 R3 R2
- 0x880C0704, // 000C GETMBR R3 R3 K4
- 0x1C0C0601, // 000D EQ R3 R3 R1
- 0x780E0004, // 000E JMPF R3 #0014
- 0x880C0101, // 000F GETMBR R3 R0 K1
- 0x8C0C0705, // 0010 GETMET R3 R3 K5
- 0x5C140400, // 0011 MOVE R5 R2
- 0x7C0C0400, // 0012 CALL R3 2
- 0x70020000, // 0013 JMP #0015
- 0x00080506, // 0014 ADD R2 R2 K6
- 0x7001FFED, // 0015 JMP #0004
- 0x80000000, // 0016 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: get_light
-********************************************************************/
-be_local_closure(get_light, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("tasmota.get_light() is deprecated, use light.get()", -769213649, 50),
- /* K1 */ be_nested_string("light", -493019601, 5),
- /* K2 */ be_nested_string("get", 1410115415, 3),
- }),
- (be_nested_const_str("get_light", 381930476, 9)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[16]) { /* code */
- 0x60080001, // 0000 GETGBL R2 G1
- 0x580C0000, // 0001 LDCONST R3 K0
- 0x7C080200, // 0002 CALL R2 1
- 0xA40A0200, // 0003 IMPORT R2 K1
- 0x4C0C0000, // 0004 LDNIL R3
- 0x200C0203, // 0005 NE R3 R1 R3
- 0x780E0004, // 0006 JMPF R3 #000C
- 0x8C0C0502, // 0007 GETMET R3 R2 K2
- 0x5C140200, // 0008 MOVE R5 R1
- 0x7C0C0400, // 0009 CALL R3 2
- 0x80040600, // 000A RET 1 R3
- 0x70020002, // 000B JMP #000F
- 0x8C0C0502, // 000C GETMET R3 R2 K2
- 0x7C0C0200, // 000D CALL R3 1
- 0x80040600, // 000E RET 1 R3
- 0x80000000, // 000F RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: exec_rules
-********************************************************************/
-be_local_closure(exec_rules, /* name */
- be_nested_proto(
- 12, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[12]) { /* constants */
- /* K0 */ be_nested_string("_rules", -28750191, 6),
- /* K1 */ be_nested_string("cmd_res", 921166762, 7),
- /* K2 */ be_nested_string("json", 916562499, 4),
- /* K3 */ be_nested_string("load", -435725847, 4),
- /* K4 */ be_nested_string("log", 1062293841, 3),
- /* K5 */ be_nested_string("BRY: ERROR, bad json: ", -1579831487, 22),
- /* K6 */ be_const_int(3),
- /* K7 */ be_const_int(0),
- /* K8 */ be_nested_string("try_rule", 1986449405, 8),
- /* K9 */ be_nested_string("k", -301188886, 1),
- /* K10 */ be_nested_string("v", -217300791, 1),
- /* K11 */ be_const_int(1),
- }),
- (be_nested_const_str("exec_rules", 1445221092, 10)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[48]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x740A0003, // 0001 JMPT R2 #0006
- 0x88080101, // 0002 GETMBR R2 R0 K1
- 0x4C0C0000, // 0003 LDNIL R3
- 0x20080403, // 0004 NE R2 R2 R3
- 0x780A0027, // 0005 JMPF R2 #002E
- 0xA40A0400, // 0006 IMPORT R2 K2
- 0x8C0C0503, // 0007 GETMET R3 R2 K3
- 0x5C140200, // 0008 MOVE R5 R1
- 0x7C0C0400, // 0009 CALL R3 2
- 0x50100000, // 000A LDBOOL R4 0 0
- 0x4C140000, // 000B LDNIL R5
- 0x1C140605, // 000C EQ R5 R3 R5
- 0x78160004, // 000D JMPF R5 #0013
- 0x8C140104, // 000E GETMET R5 R0 K4
- 0x001E0A01, // 000F ADD R7 K5 R1
- 0x58200006, // 0010 LDCONST R8 K6
- 0x7C140600, // 0011 CALL R5 3
- 0x5C0C0200, // 0012 MOVE R3 R1
- 0x88140101, // 0013 GETMBR R5 R0 K1
- 0x4C180000, // 0014 LDNIL R6
- 0x20140A06, // 0015 NE R5 R5 R6
- 0x78160000, // 0016 JMPF R5 #0018
- 0x90020203, // 0017 SETMBR R0 K1 R3
- 0x88140100, // 0018 GETMBR R5 R0 K0
- 0x78160012, // 0019 JMPF R5 #002D
- 0x58140007, // 001A LDCONST R5 K7
- 0x6018000C, // 001B GETGBL R6 G12
- 0x881C0100, // 001C GETMBR R7 R0 K0
- 0x7C180200, // 001D CALL R6 1
- 0x14180A06, // 001E LT R6 R5 R6
- 0x781A000C, // 001F JMPF R6 #002D
- 0x88180100, // 0020 GETMBR R6 R0 K0
- 0x94180C05, // 0021 GETIDX R6 R6 R5
- 0x8C1C0108, // 0022 GETMET R7 R0 K8
- 0x5C240600, // 0023 MOVE R9 R3
- 0x88280D09, // 0024 GETMBR R10 R6 K9
- 0x882C0D0A, // 0025 GETMBR R11 R6 K10
- 0x7C1C0800, // 0026 CALL R7 4
- 0x741E0001, // 0027 JMPT R7 #002A
- 0x74120000, // 0028 JMPT R4 #002A
- 0x50100001, // 0029 LDBOOL R4 0 1
- 0x50100200, // 002A LDBOOL R4 1 0
- 0x00140B0B, // 002B ADD R5 R5 K11
- 0x7001FFED, // 002C JMP #001B
- 0x80040800, // 002D RET 1 R4
- 0x50080000, // 002E LDBOOL R2 0 0
- 0x80040400, // 002F RET 1 R2
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: exec_tele
-********************************************************************/
-be_local_closure(exec_tele, /* name */
- be_nested_proto(
- 12, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[12]) { /* constants */
- /* K0 */ be_nested_string("_rules", -28750191, 6),
- /* K1 */ be_nested_string("json", 916562499, 4),
- /* K2 */ be_nested_string("load", -435725847, 4),
- /* K3 */ be_nested_string("log", 1062293841, 3),
- /* K4 */ be_nested_string("BRY: ERROR, bad json: ", -1579831487, 22),
- /* K5 */ be_const_int(3),
- /* K6 */ be_nested_string("Tele", 1329980653, 4),
- /* K7 */ be_const_int(0),
- /* K8 */ be_nested_string("try_rule", 1986449405, 8),
- /* K9 */ be_nested_string("k", -301188886, 1),
- /* K10 */ be_nested_string("v", -217300791, 1),
- /* K11 */ be_const_int(1),
- }),
- (be_nested_const_str("exec_tele", 1020751601, 9)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[41]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x780A0024, // 0001 JMPF R2 #0027
- 0xA40A0200, // 0002 IMPORT R2 K1
- 0x8C0C0502, // 0003 GETMET R3 R2 K2
- 0x5C140200, // 0004 MOVE R5 R1
- 0x7C0C0400, // 0005 CALL R3 2
- 0x50100000, // 0006 LDBOOL R4 0 0
- 0x4C140000, // 0007 LDNIL R5
- 0x1C140605, // 0008 EQ R5 R3 R5
- 0x78160004, // 0009 JMPF R5 #000F
- 0x8C140103, // 000A GETMET R5 R0 K3
- 0x001E0801, // 000B ADD R7 K4 R1
- 0x58200005, // 000C LDCONST R8 K5
- 0x7C140600, // 000D CALL R5 3
- 0x5C0C0200, // 000E MOVE R3 R1
- 0x60140013, // 000F GETGBL R5 G19
- 0x7C140000, // 0010 CALL R5 0
- 0x98160C03, // 0011 SETIDX R5 K6 R3
- 0x5C0C0A00, // 0012 MOVE R3 R5
- 0x58140007, // 0013 LDCONST R5 K7
- 0x6018000C, // 0014 GETGBL R6 G12
- 0x881C0100, // 0015 GETMBR R7 R0 K0
- 0x7C180200, // 0016 CALL R6 1
- 0x14180A06, // 0017 LT R6 R5 R6
- 0x781A000C, // 0018 JMPF R6 #0026
- 0x88180100, // 0019 GETMBR R6 R0 K0
- 0x94180C05, // 001A GETIDX R6 R6 R5
- 0x8C1C0108, // 001B GETMET R7 R0 K8
- 0x5C240600, // 001C MOVE R9 R3
- 0x88280D09, // 001D GETMBR R10 R6 K9
- 0x882C0D0A, // 001E GETMBR R11 R6 K10
- 0x7C1C0800, // 001F CALL R7 4
- 0x741E0001, // 0020 JMPT R7 #0023
- 0x74120000, // 0021 JMPT R4 #0023
- 0x50100001, // 0022 LDBOOL R4 0 1
- 0x50100200, // 0023 LDBOOL R4 1 0
- 0x00140B0B, // 0024 ADD R5 R5 K11
- 0x7001FFED, // 0025 JMP #0014
- 0x80040800, // 0026 RET 1 R4
- 0x50080000, // 0027 LDBOOL R2 0 0
- 0x80040400, // 0028 RET 1 R2
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_driver
-********************************************************************/
-be_local_closure(remove_driver, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 0, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("_drivers", -1034638311, 8),
- /* K1 */ be_nested_string("find", -1108310694, 4),
- /* K2 */ be_nested_string("pop", 1362321360, 3),
- }),
- (be_nested_const_str("remove_driver", 1030243768, 13)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[14]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x780A000A, // 0001 JMPF R2 #000D
- 0x88080100, // 0002 GETMBR R2 R0 K0
- 0x8C080501, // 0003 GETMET R2 R2 K1
- 0x5C100200, // 0004 MOVE R4 R1
- 0x7C080400, // 0005 CALL R2 2
- 0x4C0C0000, // 0006 LDNIL R3
- 0x200C0403, // 0007 NE R3 R2 R3
- 0x780E0003, // 0008 JMPF R3 #000D
- 0x880C0100, // 0009 GETMBR R3 R0 K0
- 0x8C0C0702, // 000A GETMET R3 R3 K2
- 0x5C140400, // 000B MOVE R5 R2
- 0x7C0C0400, // 000C CALL R3 2
- 0x80000000, // 000D RET 0
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0x580C0001, // 0001 LDCONST R3 K1
+ 0x8C100102, // 0002 GETMET R4 R0 K2
+ 0x5C180200, // 0003 MOVE R6 R1
+ 0x5C1C0600, // 0004 MOVE R7 R3
+ 0x7C100600, // 0005 CALL R4 3
+ 0x28140903, // 0006 GE R5 R4 K3
+ 0x78160019, // 0007 JMPF R5 #0022
+ 0x8C140504, // 0008 GETMET R5 R2 K4
+ 0x5C1C0200, // 0009 MOVE R7 R1
+ 0x5C200800, // 000A MOVE R8 R4
+ 0x7C140600, // 000B CALL R5 3
+ 0x94180B03, // 000C GETIDX R6 R5 K3
+ 0x941C0B05, // 000D GETIDX R7 R5 K5
+ 0x8C200102, // 000E GETMET R8 R0 K2
+ 0x5C280E00, // 000F MOVE R10 R7
+ 0x5C2C0600, // 0010 MOVE R11 R3
+ 0x50300200, // 0011 LDBOOL R12 1 0
+ 0x7C200800, // 0012 CALL R8 4
+ 0x5C101000, // 0013 MOVE R4 R8
+ 0x28200903, // 0014 GE R8 R4 K3
+ 0x7822000B, // 0015 JMPF R8 #0022
+ 0x8C200504, // 0016 GETMET R8 R2 K4
+ 0x5C280E00, // 0017 MOVE R10 R7
+ 0x5C2C0800, // 0018 MOVE R11 R4
+ 0x7C200600, // 0019 CALL R8 3
+ 0x94241103, // 001A GETIDX R9 R8 K3
+ 0x94281105, // 001B GETIDX R10 R8 K5
+ 0x602C0012, // 001C GETGBL R11 G18
+ 0x7C2C0000, // 001D CALL R11 0
+ 0x40301606, // 001E CONNECT R12 R11 R6
+ 0x40301609, // 001F CONNECT R12 R11 R9
+ 0x4030160A, // 0020 CONNECT R12 R11 R10
+ 0x80041600, // 0021 RET 1 R11
+ 0x60140012, // 0022 GETGBL R5 G18
+ 0x7C140000, // 0023 CALL R5 0
+ 0x40180A01, // 0024 CONNECT R6 R5 R1
+ 0x4C180000, // 0025 LDNIL R6
+ 0x40180A06, // 0026 CONNECT R6 R5 R6
+ 0x4C180000, // 0027 LDNIL R6
+ 0x40180A06, // 0028 CONNECT R6 R5 R6
+ 0x80040A00, // 0029 RET 1 R5
})
)
);
@@ -1395,7 +201,7 @@ be_local_closure(remove_driver, /* name */
/********************************************************************
** Solidified function: try_rule
********************************************************************/
-be_local_closure(try_rule, /* name */
+be_local_closure(Tasmota_try_rule, /* name */
be_nested_proto(
15, /* nstack */
4, /* argc */
@@ -1406,25 +212,25 @@ be_local_closure(try_rule, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[16]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("find_op", -528253920, 7),
- /* K2 */ be_nested_string("split", -2017972765, 5),
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(find_op),
+ /* K2 */ be_nested_str(split),
/* K3 */ be_const_int(0),
- /* K4 */ be_nested_string("#", 638357778, 1),
- /* K5 */ be_nested_string("find_key_i", 850136726, 10),
+ /* K4 */ be_nested_str(_X23),
+ /* K5 */ be_nested_str(find_key_i),
/* K6 */ be_const_int(1),
/* K7 */ be_const_int(2),
- /* K8 */ be_nested_string("==", -1863000881, 2),
- /* K9 */ be_nested_string("!==", 559817114, 3),
- /* K10 */ be_nested_string("=", 940354920, 1),
- /* K11 */ be_nested_string("!=", -1866252285, 2),
- /* K12 */ be_nested_string(">", 990687777, 1),
- /* K13 */ be_nested_string(">=", 284975636, 2),
- /* K14 */ be_nested_string("<", 957132539, 1),
- /* K15 */ be_nested_string("<=", -1795743310, 2),
+ /* K8 */ be_nested_str(_X3D_X3D),
+ /* K9 */ be_nested_str(_X21_X3D_X3D),
+ /* K10 */ be_nested_str(_X3D),
+ /* K11 */ be_nested_str(_X21_X3D),
+ /* K12 */ be_nested_str(_X3E),
+ /* K13 */ be_nested_str(_X3E_X3D),
+ /* K14 */ be_nested_str(_X3C),
+ /* K15 */ be_nested_str(_X3C_X3D),
}),
- (be_nested_const_str("try_rule", 1986449405, 8)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_try_rule,
+ &be_const_str_solidified,
( &(const binstruction[141]) { /* code */
0xA4120000, // 0000 IMPORT R4 K0
0x8C140101, // 0001 GETMET R5 R0 K1
@@ -1574,46 +380,64 @@ be_local_closure(try_rule, /* name */
/********************************************************************
-** Solidified function: cb_dispatch
+** Solidified function: gen_cb
********************************************************************/
-be_local_closure(cb_dispatch, /* name */
+be_local_closure(Tasmota_gen_cb, /* name */
be_nested_proto(
- 12, /* nstack */
- 6, /* argc */
+ 7, /* nstack */
+ 2, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("_cb", -251666929, 3),
+ ( &(const bvalue[ 7]) { /* constants */
+ /* K0 */ be_nested_str(_cb),
/* K1 */ be_const_int(0),
- /* K2 */ be_nested_string("find", -1108310694, 4),
+ /* K2 */ be_nested_str(find),
+ /* K3 */ be_nested_str(_get_cb),
+ /* K4 */ be_nested_str(stop_iteration),
+ /* K5 */ be_nested_str(internal_error),
+ /* K6 */ be_nested_str(No_X20callback_X20available),
}),
- (be_nested_const_str("cb_dispatch", 1741510499, 11)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[20]) { /* code */
- 0x88180100, // 0000 GETMBR R6 R0 K0
- 0x4C1C0000, // 0001 LDNIL R7
- 0x1C180C07, // 0002 EQ R6 R6 R7
- 0x781A0000, // 0003 JMPF R6 #0005
- 0x80060200, // 0004 RET 1 K1
- 0x88180100, // 0005 GETMBR R6 R0 K0
- 0x8C180D02, // 0006 GETMET R6 R6 K2
- 0x5C200200, // 0007 MOVE R8 R1
- 0x7C180400, // 0008 CALL R6 2
- 0x4C1C0000, // 0009 LDNIL R7
- 0x201C0C07, // 000A NE R7 R6 R7
- 0x781E0006, // 000B JMPF R7 #0013
- 0x5C1C0C00, // 000C MOVE R7 R6
- 0x5C200400, // 000D MOVE R8 R2
- 0x5C240600, // 000E MOVE R9 R3
- 0x5C280800, // 000F MOVE R10 R4
- 0x5C2C0A00, // 0010 MOVE R11 R5
- 0x7C1C0800, // 0011 CALL R7 4
- 0x80040E00, // 0012 RET 1 R7
- 0x80060200, // 0013 RET 1 K1
+ &be_const_str_gen_cb,
+ &be_const_str_solidified,
+ ( &(const binstruction[34]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x4C0C0000, // 0001 LDNIL R3
+ 0x1C080403, // 0002 EQ R2 R2 R3
+ 0x780A0002, // 0003 JMPF R2 #0007
+ 0x60080013, // 0004 GETGBL R2 G19
+ 0x7C080000, // 0005 CALL R2 0
+ 0x90020002, // 0006 SETMBR R0 K0 R2
+ 0x60080010, // 0007 GETGBL R2 G16
+ 0x540E0012, // 0008 LDINT R3 19
+ 0x400E0203, // 0009 CONNECT R3 K1 R3
+ 0x7C080200, // 000A CALL R2 1
+ 0xA8020010, // 000B EXBLK 0 #001D
+ 0x5C0C0400, // 000C MOVE R3 R2
+ 0x7C0C0000, // 000D CALL R3 0
+ 0x88100100, // 000E GETMBR R4 R0 K0
+ 0x8C100902, // 000F GETMET R4 R4 K2
+ 0x5C180600, // 0010 MOVE R6 R3
+ 0x7C100400, // 0011 CALL R4 2
+ 0x4C140000, // 0012 LDNIL R5
+ 0x1C100805, // 0013 EQ R4 R4 R5
+ 0x78120006, // 0014 JMPF R4 #001C
+ 0x88100100, // 0015 GETMBR R4 R0 K0
+ 0x98100601, // 0016 SETIDX R4 R3 R1
+ 0x8C100103, // 0017 GETMET R4 R0 K3
+ 0x5C180600, // 0018 MOVE R6 R3
+ 0x7C100400, // 0019 CALL R4 2
+ 0xA8040001, // 001A EXBLK 1 1
+ 0x80040800, // 001B RET 1 R4
+ 0x7001FFEE, // 001C JMP #000C
+ 0x58080004, // 001D LDCONST R2 K4
+ 0xAC080200, // 001E CATCH R2 1 0
+ 0xB0080000, // 001F RAISE 2 R0 R0
+ 0xB0060B06, // 0020 RAISE 1 K5 K6
+ 0x80000000, // 0021 RET 0
})
)
);
@@ -1621,12 +445,12 @@ be_local_closure(cb_dispatch, /* name */
/********************************************************************
-** Solidified function: gc
+** Solidified function: set_light
********************************************************************/
-be_local_closure(gc, /* name */
+be_local_closure(Tasmota_set_light, /* name */
be_nested_proto(
- 4, /* nstack */
- 1, /* argc */
+ 8, /* nstack */
+ 3, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
@@ -1634,19 +458,208 @@ be_local_closure(gc, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_string("gc", 1042313471, 2),
- /* K1 */ be_nested_string("collect", -1895928271, 7),
- /* K2 */ be_nested_string("allocated", 429986098, 9),
+ /* K0 */ be_nested_str(tasmota_X2Eset_light_X28_X29_X20is_X20deprecated_X2C_X20use_X20light_X2Eset_X28_X29),
+ /* K1 */ be_nested_str(light),
+ /* K2 */ be_nested_str(set),
}),
- (be_nested_const_str("gc", 1042313471, 2)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 6]) { /* code */
- 0xA4060000, // 0000 IMPORT R1 K0
- 0x8C080301, // 0001 GETMET R2 R1 K1
- 0x7C080200, // 0002 CALL R2 1
- 0x8C080302, // 0003 GETMET R2 R1 K2
- 0x7C080200, // 0004 CALL R2 1
- 0x80040400, // 0005 RET 1 R2
+ &be_const_str_set_light,
+ &be_const_str_solidified,
+ ( &(const binstruction[18]) { /* code */
+ 0x600C0001, // 0000 GETGBL R3 G1
+ 0x58100000, // 0001 LDCONST R4 K0
+ 0x7C0C0200, // 0002 CALL R3 1
+ 0xA40E0200, // 0003 IMPORT R3 K1
+ 0x4C100000, // 0004 LDNIL R4
+ 0x20100404, // 0005 NE R4 R2 R4
+ 0x78120005, // 0006 JMPF R4 #000D
+ 0x8C100702, // 0007 GETMET R4 R3 K2
+ 0x5C180200, // 0008 MOVE R6 R1
+ 0x5C1C0400, // 0009 MOVE R7 R2
+ 0x7C100600, // 000A CALL R4 3
+ 0x80040800, // 000B RET 1 R4
+ 0x70020003, // 000C JMP #0011
+ 0x8C100702, // 000D GETMET R4 R3 K2
+ 0x5C180200, // 000E MOVE R6 R1
+ 0x7C100400, // 000F CALL R4 2
+ 0x80040800, // 0010 RET 1 R4
+ 0x80000000, // 0011 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: exec_tele
+********************************************************************/
+be_local_closure(Tasmota_exec_tele, /* name */
+ be_nested_proto(
+ 12, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[12]) { /* constants */
+ /* K0 */ be_nested_str(_rules),
+ /* K1 */ be_nested_str(json),
+ /* K2 */ be_nested_str(load),
+ /* K3 */ be_nested_str(log),
+ /* K4 */ be_nested_str(BRY_X3A_X20ERROR_X2C_X20bad_X20json_X3A_X20),
+ /* K5 */ be_const_int(3),
+ /* K6 */ be_nested_str(Tele),
+ /* K7 */ be_const_int(0),
+ /* K8 */ be_nested_str(try_rule),
+ /* K9 */ be_nested_str(k),
+ /* K10 */ be_nested_str(v),
+ /* K11 */ be_const_int(1),
+ }),
+ &be_const_str_exec_tele,
+ &be_const_str_solidified,
+ ( &(const binstruction[41]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x780A0024, // 0001 JMPF R2 #0027
+ 0xA40A0200, // 0002 IMPORT R2 K1
+ 0x8C0C0502, // 0003 GETMET R3 R2 K2
+ 0x5C140200, // 0004 MOVE R5 R1
+ 0x7C0C0400, // 0005 CALL R3 2
+ 0x50100000, // 0006 LDBOOL R4 0 0
+ 0x4C140000, // 0007 LDNIL R5
+ 0x1C140605, // 0008 EQ R5 R3 R5
+ 0x78160004, // 0009 JMPF R5 #000F
+ 0x8C140103, // 000A GETMET R5 R0 K3
+ 0x001E0801, // 000B ADD R7 K4 R1
+ 0x58200005, // 000C LDCONST R8 K5
+ 0x7C140600, // 000D CALL R5 3
+ 0x5C0C0200, // 000E MOVE R3 R1
+ 0x60140013, // 000F GETGBL R5 G19
+ 0x7C140000, // 0010 CALL R5 0
+ 0x98160C03, // 0011 SETIDX R5 K6 R3
+ 0x5C0C0A00, // 0012 MOVE R3 R5
+ 0x58140007, // 0013 LDCONST R5 K7
+ 0x6018000C, // 0014 GETGBL R6 G12
+ 0x881C0100, // 0015 GETMBR R7 R0 K0
+ 0x7C180200, // 0016 CALL R6 1
+ 0x14180A06, // 0017 LT R6 R5 R6
+ 0x781A000C, // 0018 JMPF R6 #0026
+ 0x88180100, // 0019 GETMBR R6 R0 K0
+ 0x94180C05, // 001A GETIDX R6 R6 R5
+ 0x8C1C0108, // 001B GETMET R7 R0 K8
+ 0x5C240600, // 001C MOVE R9 R3
+ 0x88280D09, // 001D GETMBR R10 R6 K9
+ 0x882C0D0A, // 001E GETMBR R11 R6 K10
+ 0x7C1C0800, // 001F CALL R7 4
+ 0x741E0001, // 0020 JMPT R7 #0023
+ 0x74120000, // 0021 JMPT R4 #0023
+ 0x50100001, // 0022 LDBOOL R4 0 1
+ 0x50100200, // 0023 LDBOOL R4 1 0
+ 0x00140B0B, // 0024 ADD R5 R5 K11
+ 0x7001FFED, // 0025 JMP #0014
+ 0x80040800, // 0026 RET 1 R4
+ 0x50080000, // 0027 LDBOOL R2 0 0
+ 0x80040400, // 0028 RET 1 R2
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: run_deferred
+********************************************************************/
+be_local_closure(Tasmota_run_deferred, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 8]) { /* constants */
+ /* K0 */ be_nested_str(_timers),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(size),
+ /* K3 */ be_nested_str(time_reached),
+ /* K4 */ be_nested_str(due),
+ /* K5 */ be_nested_str(f),
+ /* K6 */ be_nested_str(remove),
+ /* K7 */ be_const_int(1),
+ }),
+ &be_const_str_run_deferred,
+ &be_const_str_solidified,
+ ( &(const binstruction[27]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x78060017, // 0001 JMPF R1 #001A
+ 0x58040001, // 0002 LDCONST R1 K1
+ 0x88080100, // 0003 GETMBR R2 R0 K0
+ 0x8C080502, // 0004 GETMET R2 R2 K2
+ 0x7C080200, // 0005 CALL R2 1
+ 0x14080202, // 0006 LT R2 R1 R2
+ 0x780A0011, // 0007 JMPF R2 #001A
+ 0x8C080103, // 0008 GETMET R2 R0 K3
+ 0x88100100, // 0009 GETMBR R4 R0 K0
+ 0x94100801, // 000A GETIDX R4 R4 R1
+ 0x88100904, // 000B GETMBR R4 R4 K4
+ 0x7C080400, // 000C CALL R2 2
+ 0x780A0009, // 000D JMPF R2 #0018
+ 0x88080100, // 000E GETMBR R2 R0 K0
+ 0x94080401, // 000F GETIDX R2 R2 R1
+ 0x88080505, // 0010 GETMBR R2 R2 K5
+ 0x880C0100, // 0011 GETMBR R3 R0 K0
+ 0x8C0C0706, // 0012 GETMET R3 R3 K6
+ 0x5C140200, // 0013 MOVE R5 R1
+ 0x7C0C0400, // 0014 CALL R3 2
+ 0x5C0C0400, // 0015 MOVE R3 R2
+ 0x7C0C0000, // 0016 CALL R3 0
+ 0x70020000, // 0017 JMP #0019
+ 0x00040307, // 0018 ADD R1 R1 K7
+ 0x7001FFE8, // 0019 JMP #0003
+ 0x80000000, // 001A RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_driver
+********************************************************************/
+be_local_closure(Tasmota_remove_driver, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(_drivers),
+ /* K1 */ be_nested_str(find),
+ /* K2 */ be_nested_str(pop),
+ }),
+ &be_const_str_remove_driver,
+ &be_const_str_solidified,
+ ( &(const binstruction[14]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x780A000A, // 0001 JMPF R2 #000D
+ 0x88080100, // 0002 GETMBR R2 R0 K0
+ 0x8C080501, // 0003 GETMET R2 R2 K1
+ 0x5C100200, // 0004 MOVE R4 R1
+ 0x7C080400, // 0005 CALL R2 2
+ 0x4C0C0000, // 0006 LDNIL R3
+ 0x200C0403, // 0007 NE R3 R2 R3
+ 0x780E0003, // 0008 JMPF R3 #000D
+ 0x880C0100, // 0009 GETMBR R3 R0 K0
+ 0x8C0C0702, // 000A GETMET R3 R3 K2
+ 0x5C140400, // 000B MOVE R5 R2
+ 0x7C0C0400, // 000C CALL R3 2
+ 0x80000000, // 000D RET 0
})
)
);
@@ -1656,7 +669,7 @@ be_local_closure(gc, /* name */
/********************************************************************
** Solidified function: event
********************************************************************/
-be_local_closure(event, /* name */
+be_local_closure(Tasmota_event, /* name */
be_nested_proto(
20, /* nstack */
6, /* argc */
@@ -1667,32 +680,32 @@ be_local_closure(event, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[23]) { /* constants */
- /* K0 */ be_nested_string("introspect", 164638290, 10),
- /* K1 */ be_nested_string("string", 398550328, 6),
- /* K2 */ be_nested_string("every_50ms", -1911083288, 10),
- /* K3 */ be_nested_string("run_deferred", 371594696, 12),
- /* K4 */ be_nested_string("cmd", -158181397, 3),
- /* K5 */ be_nested_string("exec_cmd", 493567399, 8),
- /* K6 */ be_nested_string("tele", -820509235, 4),
- /* K7 */ be_nested_string("exec_tele", 1020751601, 9),
- /* K8 */ be_nested_string("rule", -64077613, 4),
- /* K9 */ be_nested_string("exec_rules", 1445221092, 10),
- /* K10 */ be_nested_string("gc", 1042313471, 2),
- /* K11 */ be_nested_string("_drivers", -1034638311, 8),
+ /* K0 */ be_nested_str(introspect),
+ /* K1 */ be_nested_str(string),
+ /* K2 */ be_nested_str(every_50ms),
+ /* K3 */ be_nested_str(run_deferred),
+ /* K4 */ be_nested_str(cmd),
+ /* K5 */ be_nested_str(exec_cmd),
+ /* K6 */ be_nested_str(tele),
+ /* K7 */ be_nested_str(exec_tele),
+ /* K8 */ be_nested_str(rule),
+ /* K9 */ be_nested_str(exec_rules),
+ /* K10 */ be_nested_str(gc),
+ /* K11 */ be_nested_str(_drivers),
/* K12 */ be_const_int(0),
- /* K13 */ be_nested_string("get", 1410115415, 3),
- /* K14 */ be_nested_string("function", -1630125495, 8),
- /* K15 */ be_nested_string("format", -1180859054, 6),
- /* K16 */ be_nested_string("BRY: Exception> '%s' - %s", -2047976332, 25),
- /* K17 */ be_nested_string("debug", 1483009432, 5),
- /* K18 */ be_nested_string("traceback", -909779187, 9),
+ /* K13 */ be_nested_str(get),
+ /* K14 */ be_nested_str(function),
+ /* K15 */ be_nested_str(format),
+ /* K16 */ be_nested_str(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s),
+ /* K17 */ be_nested_str(debug),
+ /* K18 */ be_nested_str(traceback),
/* K19 */ be_const_int(1),
- /* K20 */ be_nested_string("save_before_restart", 1253239338, 19),
- /* K21 */ be_nested_string("persist", -377883517, 7),
- /* K22 */ be_nested_string("save", -855671224, 4),
+ /* K20 */ be_nested_str(save_before_restart),
+ /* K21 */ be_nested_str(persist),
+ /* K22 */ be_nested_str(save),
}),
- (be_nested_const_str("event", -30355297, 5)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_event,
+ &be_const_str_solidified,
( &(const binstruction[91]) { /* code */
0xA41A0000, // 0000 IMPORT R6 K0
0xA41E0200, // 0001 IMPORT R7 K1
@@ -1792,9 +805,593 @@ be_local_closure(event, /* name */
/********************************************************************
-** Solidified function: remove_cmd
+** Solidified function: find_key_i
********************************************************************/
-be_local_closure(remove_cmd, /* name */
+be_local_closure(Tasmota_find_key_i, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(toupper),
+ /* K2 */ be_nested_str(keys),
+ /* K3 */ be_nested_str(_X3F),
+ /* K4 */ be_nested_str(stop_iteration),
+ }),
+ &be_const_str_find_key_i,
+ &be_const_str_solidified,
+ ( &(const binstruction[30]) { /* code */
+ 0xA40E0000, // 0000 IMPORT R3 K0
+ 0x8C100701, // 0001 GETMET R4 R3 K1
+ 0x5C180400, // 0002 MOVE R6 R2
+ 0x7C100400, // 0003 CALL R4 2
+ 0x6014000F, // 0004 GETGBL R5 G15
+ 0x5C180200, // 0005 MOVE R6 R1
+ 0x601C0013, // 0006 GETGBL R7 G19
+ 0x7C140400, // 0007 CALL R5 2
+ 0x78160013, // 0008 JMPF R5 #001D
+ 0x60140010, // 0009 GETGBL R5 G16
+ 0x8C180302, // 000A GETMET R6 R1 K2
+ 0x7C180200, // 000B CALL R6 1
+ 0x7C140200, // 000C CALL R5 1
+ 0xA802000B, // 000D EXBLK 0 #001A
+ 0x5C180A00, // 000E MOVE R6 R5
+ 0x7C180000, // 000F CALL R6 0
+ 0x8C1C0701, // 0010 GETMET R7 R3 K1
+ 0x5C240C00, // 0011 MOVE R9 R6
+ 0x7C1C0400, // 0012 CALL R7 2
+ 0x1C1C0E04, // 0013 EQ R7 R7 R4
+ 0x741E0001, // 0014 JMPT R7 #0017
+ 0x1C1C0503, // 0015 EQ R7 R2 K3
+ 0x781E0001, // 0016 JMPF R7 #0019
+ 0xA8040001, // 0017 EXBLK 1 1
+ 0x80040C00, // 0018 RET 1 R6
+ 0x7001FFF3, // 0019 JMP #000E
+ 0x58140004, // 001A LDCONST R5 K4
+ 0xAC140200, // 001B CATCH R5 1 0
+ 0xB0080000, // 001C RAISE 2 R0 R0
+ 0x80000000, // 001D RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: wire_scan
+********************************************************************/
+be_local_closure(Tasmota_wire_scan, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(i2c_enabled),
+ /* K1 */ be_nested_str(wire1),
+ /* K2 */ be_nested_str(enabled),
+ /* K3 */ be_nested_str(detect),
+ /* K4 */ be_nested_str(wire2),
+ }),
+ &be_const_str_wire_scan,
+ &be_const_str_solidified,
+ ( &(const binstruction[33]) { /* code */
+ 0x4C0C0000, // 0000 LDNIL R3
+ 0x200C0403, // 0001 NE R3 R2 R3
+ 0x780E0005, // 0002 JMPF R3 #0009
+ 0x8C0C0100, // 0003 GETMET R3 R0 K0
+ 0x5C140400, // 0004 MOVE R5 R2
+ 0x7C0C0400, // 0005 CALL R3 2
+ 0x740E0001, // 0006 JMPT R3 #0009
+ 0x4C0C0000, // 0007 LDNIL R3
+ 0x80040600, // 0008 RET 1 R3
+ 0x880C0101, // 0009 GETMBR R3 R0 K1
+ 0x8C0C0702, // 000A GETMET R3 R3 K2
+ 0x7C0C0200, // 000B CALL R3 1
+ 0x780E0006, // 000C JMPF R3 #0014
+ 0x880C0101, // 000D GETMBR R3 R0 K1
+ 0x8C0C0703, // 000E GETMET R3 R3 K3
+ 0x5C140200, // 000F MOVE R5 R1
+ 0x7C0C0400, // 0010 CALL R3 2
+ 0x780E0001, // 0011 JMPF R3 #0014
+ 0x880C0101, // 0012 GETMBR R3 R0 K1
+ 0x80040600, // 0013 RET 1 R3
+ 0x880C0104, // 0014 GETMBR R3 R0 K4
+ 0x8C0C0702, // 0015 GETMET R3 R3 K2
+ 0x7C0C0200, // 0016 CALL R3 1
+ 0x780E0006, // 0017 JMPF R3 #001F
+ 0x880C0104, // 0018 GETMBR R3 R0 K4
+ 0x8C0C0703, // 0019 GETMET R3 R3 K3
+ 0x5C140200, // 001A MOVE R5 R1
+ 0x7C0C0400, // 001B CALL R3 2
+ 0x780E0001, // 001C JMPF R3 #001F
+ 0x880C0104, // 001D GETMBR R3 R0 K4
+ 0x80040600, // 001E RET 1 R3
+ 0x4C0C0000, // 001F LDNIL R3
+ 0x80040600, // 0020 RET 1 R3
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(Tasmota_init, /* name */
+ be_nested_proto(
+ 7, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[15]) { /* constants */
+ /* K0 */ be_nested_str(global),
+ /* K1 */ be_nested_str(ctypes_bytes_dyn),
+ /* K2 */ be_nested_str(_global_addr),
+ /* K3 */ be_nested_str(_global_def),
+ /* K4 */ be_nested_str(introspect),
+ /* K5 */ be_nested_str(_settings_ptr),
+ /* K6 */ be_nested_str(get),
+ /* K7 */ be_const_int(0),
+ /* K8 */ be_nested_str(settings),
+ /* K9 */ be_nested_str(toptr),
+ /* K10 */ be_nested_str(_settings_def),
+ /* K11 */ be_nested_str(wd),
+ /* K12 */ be_nested_str(),
+ /* K13 */ be_nested_str(_debug_present),
+ /* K14 */ be_nested_str(debug),
+ }),
+ &be_const_str_init,
+ &be_const_str_solidified,
+ ( &(const binstruction[36]) { /* code */
+ 0xB8060200, // 0000 GETNGBL R1 K1
+ 0x88080102, // 0001 GETMBR R2 R0 K2
+ 0x880C0103, // 0002 GETMBR R3 R0 K3
+ 0x7C040400, // 0003 CALL R1 2
+ 0x90020001, // 0004 SETMBR R0 K0 R1
+ 0xA4060800, // 0005 IMPORT R1 K4
+ 0x60080015, // 0006 GETGBL R2 G21
+ 0x880C0105, // 0007 GETMBR R3 R0 K5
+ 0x54120003, // 0008 LDINT R4 4
+ 0x7C080400, // 0009 CALL R2 2
+ 0x8C080506, // 000A GETMET R2 R2 K6
+ 0x58100007, // 000B LDCONST R4 K7
+ 0x54160003, // 000C LDINT R5 4
+ 0x7C080600, // 000D CALL R2 3
+ 0x780A0006, // 000E JMPF R2 #0016
+ 0xB80E0200, // 000F GETNGBL R3 K1
+ 0x8C100309, // 0010 GETMET R4 R1 K9
+ 0x5C180400, // 0011 MOVE R6 R2
+ 0x7C100400, // 0012 CALL R4 2
+ 0x8814010A, // 0013 GETMBR R5 R0 K10
+ 0x7C0C0400, // 0014 CALL R3 2
+ 0x90021003, // 0015 SETMBR R0 K8 R3
+ 0x9002170C, // 0016 SETMBR R0 K11 K12
+ 0x500C0000, // 0017 LDBOOL R3 0 0
+ 0x90021A03, // 0018 SETMBR R0 K13 R3
+ 0xA8020004, // 0019 EXBLK 0 #001F
+ 0xA40E1C00, // 001A IMPORT R3 K14
+ 0x50100200, // 001B LDBOOL R4 1 0
+ 0x90021A04, // 001C SETMBR R0 K13 R4
+ 0xA8040001, // 001D EXBLK 1 1
+ 0x70020003, // 001E JMP #0023
+ 0xAC0C0000, // 001F CATCH R3 0 0
+ 0x70020000, // 0020 JMP #0022
+ 0x70020000, // 0021 JMP #0023
+ 0xB0080000, // 0022 RAISE 2 R0 R0
+ 0x80000000, // 0023 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: time_str
+********************************************************************/
+be_local_closure(Tasmota_time_str, /* name */
+ be_nested_proto(
+ 13, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[10]) { /* constants */
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(time_dump),
+ /* K2 */ be_nested_str(format),
+ /* K3 */ be_nested_str(_X2504d_X2D_X2502d_X2D_X2502dT_X2502d_X3A_X2502d_X3A_X2502d),
+ /* K4 */ be_nested_str(year),
+ /* K5 */ be_nested_str(month),
+ /* K6 */ be_nested_str(day),
+ /* K7 */ be_nested_str(hour),
+ /* K8 */ be_nested_str(min),
+ /* K9 */ be_nested_str(sec),
+ }),
+ &be_const_str_time_str,
+ &be_const_str_solidified,
+ ( &(const binstruction[14]) { /* code */
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0x8C0C0101, // 0001 GETMET R3 R0 K1
+ 0x5C140200, // 0002 MOVE R5 R1
+ 0x7C0C0400, // 0003 CALL R3 2
+ 0x8C100502, // 0004 GETMET R4 R2 K2
+ 0x58180003, // 0005 LDCONST R6 K3
+ 0x941C0704, // 0006 GETIDX R7 R3 K4
+ 0x94200705, // 0007 GETIDX R8 R3 K5
+ 0x94240706, // 0008 GETIDX R9 R3 K6
+ 0x94280707, // 0009 GETIDX R10 R3 K7
+ 0x942C0708, // 000A GETIDX R11 R3 K8
+ 0x94300709, // 000B GETIDX R12 R3 K9
+ 0x7C101000, // 000C CALL R4 8
+ 0x80040800, // 000D RET 1 R4
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_rule
+********************************************************************/
+be_local_closure(Tasmota_remove_rule, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(_rules),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(k),
+ /* K3 */ be_nested_str(remove),
+ /* K4 */ be_const_int(1),
+ }),
+ &be_const_str_remove_rule,
+ &be_const_str_solidified,
+ ( &(const binstruction[21]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x780A0011, // 0001 JMPF R2 #0014
+ 0x58080001, // 0002 LDCONST R2 K1
+ 0x600C000C, // 0003 GETGBL R3 G12
+ 0x88100100, // 0004 GETMBR R4 R0 K0
+ 0x7C0C0200, // 0005 CALL R3 1
+ 0x140C0403, // 0006 LT R3 R2 R3
+ 0x780E000B, // 0007 JMPF R3 #0014
+ 0x880C0100, // 0008 GETMBR R3 R0 K0
+ 0x940C0602, // 0009 GETIDX R3 R3 R2
+ 0x880C0702, // 000A GETMBR R3 R3 K2
+ 0x1C0C0601, // 000B EQ R3 R3 R1
+ 0x780E0004, // 000C JMPF R3 #0012
+ 0x880C0100, // 000D GETMBR R3 R0 K0
+ 0x8C0C0703, // 000E GETMET R3 R3 K3
+ 0x5C140400, // 000F MOVE R5 R2
+ 0x7C0C0400, // 0010 CALL R3 2
+ 0x70020000, // 0011 JMP #0013
+ 0x00080504, // 0012 ADD R2 R2 K4
+ 0x7001FFEE, // 0013 JMP #0003
+ 0x80000000, // 0014 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: load
+********************************************************************/
+be_local_closure(Tasmota_load, /* name */
+ be_nested_proto(
+ 21, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 1, /* has sup protos */
+ ( &(const struct bproto*[ 2]) {
+ be_nested_proto(
+ 6, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 4]) { /* constants */
+ /* K0 */ be_nested_str(sys),
+ /* K1 */ be_nested_str(path),
+ /* K2 */ be_nested_str(find),
+ /* K3 */ be_nested_str(push),
+ }),
+ &be_const_str_push_path,
+ &be_const_str_solidified,
+ ( &(const binstruction[13]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0x8C080301, // 0001 GETMET R2 R1 K1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x8C0C0502, // 0003 GETMET R3 R2 K2
+ 0x5C140000, // 0004 MOVE R5 R0
+ 0x7C0C0400, // 0005 CALL R3 2
+ 0x4C100000, // 0006 LDNIL R4
+ 0x1C0C0604, // 0007 EQ R3 R3 R4
+ 0x780E0002, // 0008 JMPF R3 #000C
+ 0x8C0C0503, // 0009 GETMET R3 R2 K3
+ 0x5C140000, // 000A MOVE R5 R0
+ 0x7C0C0400, // 000B CALL R3 2
+ 0x80000000, // 000C RET 0
+ })
+ ),
+ be_nested_proto(
+ 7, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 4]) { /* constants */
+ /* K0 */ be_nested_str(sys),
+ /* K1 */ be_nested_str(path),
+ /* K2 */ be_nested_str(find),
+ /* K3 */ be_nested_str(remove),
+ }),
+ &be_const_str_pop_path,
+ &be_const_str_solidified,
+ ( &(const binstruction[13]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0x8C080301, // 0001 GETMET R2 R1 K1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x8C0C0502, // 0003 GETMET R3 R2 K2
+ 0x5C140000, // 0004 MOVE R5 R0
+ 0x7C0C0400, // 0005 CALL R3 2
+ 0x4C100000, // 0006 LDNIL R4
+ 0x20100604, // 0007 NE R4 R3 R4
+ 0x78120002, // 0008 JMPF R4 #000C
+ 0x8C100503, // 0009 GETMET R4 R2 K3
+ 0x5C180600, // 000A MOVE R6 R3
+ 0x7C100400, // 000B CALL R4 2
+ 0x80000000, // 000C RET 0
+ })
+ ),
+ }),
+ 1, /* has constants */
+ ( &(const bvalue[21]) { /* constants */
+ /* K0 */ be_nested_str(string),
+ /* K1 */ be_nested_str(path),
+ /* K2 */ be_const_int(0),
+ /* K3 */ be_nested_str(_X2F),
+ /* K4 */ be_nested_str(split),
+ /* K5 */ be_nested_str(_X23),
+ /* K6 */ be_const_int(1),
+ /* K7 */ be_nested_str(find),
+ /* K8 */ be_nested_str(_X2E),
+ /* K9 */ be_nested_str(_X2Ebe),
+ /* K10 */ be_nested_str(_X2Ebec),
+ /* K11 */ be_nested_str(io_error),
+ /* K12 */ be_nested_str(file_X20extension_X20is_X20not_X20_X27_X2Ebe_X27_X20or_X20_X27_X2Ebec_X27),
+ /* K13 */ be_nested_str(last_modified),
+ /* K14 */ be_nested_str(c),
+ /* K15 */ be_nested_str(wd),
+ /* K16 */ be_nested_str(),
+ /* K17 */ be_nested_str(file),
+ /* K18 */ be_nested_str(save),
+ /* K19 */ be_nested_str(format),
+ /* K20 */ be_nested_str(BRY_X3A_X20could_X20not_X20save_X20compiled_X20file_X20_X25s_X20_X28_X25s_X29),
+ }),
+ &be_const_str_load,
+ &be_const_str_solidified,
+ ( &(const binstruction[121]) { /* code */
+ 0x84080000, // 0000 CLOSURE R2 P0
+ 0x840C0001, // 0001 CLOSURE R3 P1
+ 0xA4120000, // 0002 IMPORT R4 K0
+ 0xA4160200, // 0003 IMPORT R5 K1
+ 0x6018000C, // 0004 GETGBL R6 G12
+ 0x5C1C0200, // 0005 MOVE R7 R1
+ 0x7C180200, // 0006 CALL R6 1
+ 0x1C180D02, // 0007 EQ R6 R6 K2
+ 0x781A0001, // 0008 JMPF R6 #000B
+ 0x50180000, // 0009 LDBOOL R6 0 0
+ 0x80040C00, // 000A RET 1 R6
+ 0x94180302, // 000B GETIDX R6 R1 K2
+ 0x20180D03, // 000C NE R6 R6 K3
+ 0x781A0000, // 000D JMPF R6 #000F
+ 0x00060601, // 000E ADD R1 K3 R1
+ 0x8C180904, // 000F GETMET R6 R4 K4
+ 0x5C200200, // 0010 MOVE R8 R1
+ 0x58240005, // 0011 LDCONST R9 K5
+ 0x7C180600, // 0012 CALL R6 3
+ 0x941C0D02, // 0013 GETIDX R7 R6 K2
+ 0x5421FFFE, // 0014 LDINT R8 -1
+ 0x94200C08, // 0015 GETIDX R8 R6 R8
+ 0x6024000C, // 0016 GETGBL R9 G12
+ 0x5C280C00, // 0017 MOVE R10 R6
+ 0x7C240200, // 0018 CALL R9 1
+ 0x24241306, // 0019 GT R9 R9 K6
+ 0x8C280907, // 001A GETMET R10 R4 K7
+ 0x5C301000, // 001B MOVE R12 R8
+ 0x58340008, // 001C LDCONST R13 K8
+ 0x7C280600, // 001D CALL R10 3
+ 0x14281502, // 001E LT R10 R10 K2
+ 0x782A0001, // 001F JMPF R10 #0022
+ 0x00040309, // 0020 ADD R1 R1 K9
+ 0x00201109, // 0021 ADD R8 R8 K9
+ 0x5429FFFC, // 0022 LDINT R10 -3
+ 0x542DFFFE, // 0023 LDINT R11 -1
+ 0x4028140B, // 0024 CONNECT R10 R10 R11
+ 0x9428100A, // 0025 GETIDX R10 R8 R10
+ 0x1C281509, // 0026 EQ R10 R10 K9
+ 0x542DFFFB, // 0027 LDINT R11 -4
+ 0x5431FFFE, // 0028 LDINT R12 -1
+ 0x402C160C, // 0029 CONNECT R11 R11 R12
+ 0x942C100B, // 002A GETIDX R11 R8 R11
+ 0x1C2C170A, // 002B EQ R11 R11 K10
+ 0x5C301400, // 002C MOVE R12 R10
+ 0x74320002, // 002D JMPT R12 #0031
+ 0x5C301600, // 002E MOVE R12 R11
+ 0x74320000, // 002F JMPT R12 #0031
+ 0xB006170C, // 0030 RAISE 1 K11 K12
+ 0x8C300B0D, // 0031 GETMET R12 R5 K13
+ 0x5C380E00, // 0032 MOVE R14 R7
+ 0x7C300400, // 0033 CALL R12 2
+ 0x782E0005, // 0034 JMPF R11 #003B
+ 0x4C340000, // 0035 LDNIL R13
+ 0x1C34180D, // 0036 EQ R13 R12 R13
+ 0x78360001, // 0037 JMPF R13 #003A
+ 0x50340000, // 0038 LDBOOL R13 0 0
+ 0x80041A00, // 0039 RET 1 R13
+ 0x70020013, // 003A JMP #004F
+ 0x8C340B0D, // 003B GETMET R13 R5 K13
+ 0x003C030E, // 003C ADD R15 R1 K14
+ 0x7C340400, // 003D CALL R13 2
+ 0x4C380000, // 003E LDNIL R14
+ 0x1C38180E, // 003F EQ R14 R12 R14
+ 0x783A0004, // 0040 JMPF R14 #0046
+ 0x4C380000, // 0041 LDNIL R14
+ 0x1C381A0E, // 0042 EQ R14 R13 R14
+ 0x783A0001, // 0043 JMPF R14 #0046
+ 0x50380000, // 0044 LDBOOL R14 0 0
+ 0x80041C00, // 0045 RET 1 R14
+ 0x4C380000, // 0046 LDNIL R14
+ 0x20381A0E, // 0047 NE R14 R13 R14
+ 0x783A0005, // 0048 JMPF R14 #004F
+ 0x4C380000, // 0049 LDNIL R14
+ 0x1C38180E, // 004A EQ R14 R12 R14
+ 0x743A0001, // 004B JMPT R14 #004E
+ 0x28381A0C, // 004C GE R14 R13 R12
+ 0x783A0000, // 004D JMPF R14 #004F
+ 0x502C0200, // 004E LDBOOL R11 1 0
+ 0x78260005, // 004F JMPF R9 #0056
+ 0x00340F05, // 0050 ADD R13 R7 K5
+ 0x90021E0D, // 0051 SETMBR R0 K15 R13
+ 0x5C340400, // 0052 MOVE R13 R2
+ 0x8838010F, // 0053 GETMBR R14 R0 K15
+ 0x7C340200, // 0054 CALL R13 1
+ 0x70020000, // 0055 JMP #0057
+ 0x90021F10, // 0056 SETMBR R0 K15 K16
+ 0x6034000D, // 0057 GETGBL R13 G13
+ 0x5C380200, // 0058 MOVE R14 R1
+ 0x583C0011, // 0059 LDCONST R15 K17
+ 0x7C340400, // 005A CALL R13 2
+ 0x5C381600, // 005B MOVE R14 R11
+ 0x743A0013, // 005C JMPT R14 #0071
+ 0x5C381200, // 005D MOVE R14 R9
+ 0x743A0011, // 005E JMPT R14 #0071
+ 0xA8020005, // 005F EXBLK 0 #0066
+ 0x8C380112, // 0060 GETMET R14 R0 K18
+ 0x0040030E, // 0061 ADD R16 R1 K14
+ 0x5C441A00, // 0062 MOVE R17 R13
+ 0x7C380600, // 0063 CALL R14 3
+ 0xA8040001, // 0064 EXBLK 1 1
+ 0x7002000A, // 0065 JMP #0071
+ 0xAC380001, // 0066 CATCH R14 0 1
+ 0x70020007, // 0067 JMP #0070
+ 0x603C0001, // 0068 GETGBL R15 G1
+ 0x8C400913, // 0069 GETMET R16 R4 K19
+ 0x58480014, // 006A LDCONST R18 K20
+ 0x004C030E, // 006B ADD R19 R1 K14
+ 0x5C501C00, // 006C MOVE R20 R14
+ 0x7C400800, // 006D CALL R16 4
+ 0x7C3C0200, // 006E CALL R15 1
+ 0x70020000, // 006F JMP #0071
+ 0xB0080000, // 0070 RAISE 2 R0 R0
+ 0x5C381A00, // 0071 MOVE R14 R13
+ 0x7C380000, // 0072 CALL R14 0
+ 0x78260002, // 0073 JMPF R9 #0077
+ 0x5C380600, // 0074 MOVE R14 R3
+ 0x003C0F05, // 0075 ADD R15 R7 K5
+ 0x7C380200, // 0076 CALL R14 1
+ 0x50380200, // 0077 LDBOOL R14 1 0
+ 0x80041C00, // 0078 RET 1 R14
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: chars_in_string
+********************************************************************/
+be_local_closure(Tasmota_chars_in_string, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_const_int(1),
+ }),
+ &be_const_str_chars_in_string,
+ &be_const_str_solidified,
+ ( &(const binstruction[31]) { /* code */
+ 0x780E0001, // 0000 JMPF R3 #0003
+ 0x50100200, // 0001 LDBOOL R4 1 0
+ 0x70020000, // 0002 JMP #0004
+ 0x50100000, // 0003 LDBOOL R4 0 0
+ 0x58140000, // 0004 LDCONST R5 K0
+ 0x6018000C, // 0005 GETGBL R6 G12
+ 0x5C1C0200, // 0006 MOVE R7 R1
+ 0x7C180200, // 0007 CALL R6 1
+ 0x14180A06, // 0008 LT R6 R5 R6
+ 0x781A0012, // 0009 JMPF R6 #001D
+ 0x50180000, // 000A LDBOOL R6 0 0
+ 0x581C0000, // 000B LDCONST R7 K0
+ 0x6020000C, // 000C GETGBL R8 G12
+ 0x5C240400, // 000D MOVE R9 R2
+ 0x7C200200, // 000E CALL R8 1
+ 0x14200E08, // 000F LT R8 R7 R8
+ 0x78220006, // 0010 JMPF R8 #0018
+ 0x94200205, // 0011 GETIDX R8 R1 R5
+ 0x94240407, // 0012 GETIDX R9 R2 R7
+ 0x1C201009, // 0013 EQ R8 R8 R9
+ 0x78220000, // 0014 JMPF R8 #0016
+ 0x50180200, // 0015 LDBOOL R6 1 0
+ 0x001C0F01, // 0016 ADD R7 R7 K1
+ 0x7001FFF3, // 0017 JMP #000C
+ 0x20200806, // 0018 NE R8 R4 R6
+ 0x78220000, // 0019 JMPF R8 #001B
+ 0x80040A00, // 001A RET 1 R5
+ 0x00140B01, // 001B ADD R5 R5 K1
+ 0x7001FFE7, // 001C JMP #0005
+ 0x5419FFFE, // 001D LDINT R6 -1
+ 0x80040C00, // 001E RET 1 R6
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: cmd
+********************************************************************/
+be_local_closure(Tasmota_cmd, /* name */
be_nested_proto(
5, /* nstack */
2, /* argc */
@@ -1805,19 +1402,26 @@ be_local_closure(remove_cmd, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_string("_ccmd", -2131545883, 5),
- /* K1 */ be_nested_string("remove", -611183107, 6),
+ /* K0 */ be_nested_str(cmd_res),
+ /* K1 */ be_nested_str(_cmd),
}),
- (be_nested_const_str("remove_cmd", -462651594, 10)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[ 7]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x780A0003, // 0001 JMPF R2 #0006
- 0x88080100, // 0002 GETMBR R2 R0 K0
- 0x8C080501, // 0003 GETMET R2 R2 K1
- 0x5C100200, // 0004 MOVE R4 R1
- 0x7C080400, // 0005 CALL R2 2
- 0x80000000, // 0006 RET 0
+ &be_const_str_cmd,
+ &be_const_str_solidified,
+ ( &(const binstruction[14]) { /* code */
+ 0x50080200, // 0000 LDBOOL R2 1 0
+ 0x90020002, // 0001 SETMBR R0 K0 R2
+ 0x8C080101, // 0002 GETMET R2 R0 K1
+ 0x5C100200, // 0003 MOVE R4 R1
+ 0x7C080400, // 0004 CALL R2 2
+ 0x4C080000, // 0005 LDNIL R2
+ 0x880C0100, // 0006 GETMBR R3 R0 K0
+ 0x50100200, // 0007 LDBOOL R4 1 0
+ 0x200C0604, // 0008 NE R3 R3 R4
+ 0x780E0000, // 0009 JMPF R3 #000B
+ 0x88080100, // 000A GETMBR R2 R0 K0
+ 0x4C0C0000, // 000B LDNIL R3
+ 0x90020003, // 000C SETMBR R0 K0 R3
+ 0x80040400, // 000D RET 1 R2
})
)
);
@@ -1825,64 +1429,233 @@ be_local_closure(remove_cmd, /* name */
/********************************************************************
-** Solidified function: exec_cmd
+** Solidified function: add_cmd
********************************************************************/
-be_local_closure(exec_cmd, /* name */
+be_local_closure(Tasmota_add_cmd, /* name */
be_nested_proto(
- 12, /* nstack */
- 4, /* argc */
+ 5, /* nstack */
+ 3, /* argc */
0, /* varg */
0, /* has upvals */
NULL, /* no upvals */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_string("_ccmd", -2131545883, 5),
- /* K1 */ be_nested_string("json", 916562499, 4),
- /* K2 */ be_nested_string("load", -435725847, 4),
- /* K3 */ be_nested_string("find_key_i", 850136726, 10),
- /* K4 */ be_nested_string("resolvecmnd", 993361485, 11),
+ ( &(const bvalue[ 4]) { /* constants */
+ /* K0 */ be_nested_str(_ccmd),
+ /* K1 */ be_nested_str(function),
+ /* K2 */ be_nested_str(value_error),
+ /* K3 */ be_nested_str(the_X20second_X20argument_X20is_X20not_X20a_X20function),
}),
- (be_nested_const_str("exec_cmd", 493567399, 8)),
- ((bstring*) &be_const_str_input),
- ( &(const binstruction[27]) { /* code */
- 0x88100100, // 0000 GETMBR R4 R0 K0
- 0x78120016, // 0001 JMPF R4 #0019
- 0xA4120200, // 0002 IMPORT R4 K1
- 0x8C140902, // 0003 GETMET R5 R4 K2
- 0x5C1C0600, // 0004 MOVE R7 R3
- 0x7C140400, // 0005 CALL R5 2
- 0x8C180103, // 0006 GETMET R6 R0 K3
- 0x88200100, // 0007 GETMBR R8 R0 K0
- 0x5C240200, // 0008 MOVE R9 R1
- 0x7C180600, // 0009 CALL R6 3
- 0x4C1C0000, // 000A LDNIL R7
- 0x201C0C07, // 000B NE R7 R6 R7
- 0x781E000B, // 000C JMPF R7 #0019
- 0x8C1C0104, // 000D GETMET R7 R0 K4
- 0x5C240C00, // 000E MOVE R9 R6
- 0x7C1C0400, // 000F CALL R7 2
- 0x881C0100, // 0010 GETMBR R7 R0 K0
- 0x941C0E06, // 0011 GETIDX R7 R7 R6
- 0x5C200C00, // 0012 MOVE R8 R6
- 0x5C240400, // 0013 MOVE R9 R2
- 0x5C280600, // 0014 MOVE R10 R3
- 0x5C2C0A00, // 0015 MOVE R11 R5
- 0x7C1C0800, // 0016 CALL R7 4
- 0x501C0200, // 0017 LDBOOL R7 1 0
- 0x80040E00, // 0018 RET 1 R7
- 0x50100000, // 0019 LDBOOL R4 0 0
- 0x80040800, // 001A RET 1 R4
+ &be_const_str_add_cmd,
+ &be_const_str_solidified,
+ ( &(const binstruction[15]) { /* code */
+ 0x880C0100, // 0000 GETMBR R3 R0 K0
+ 0x740E0002, // 0001 JMPT R3 #0005
+ 0x600C0013, // 0002 GETGBL R3 G19
+ 0x7C0C0000, // 0003 CALL R3 0
+ 0x90020003, // 0004 SETMBR R0 K0 R3
+ 0x600C0004, // 0005 GETGBL R3 G4
+ 0x5C100400, // 0006 MOVE R4 R2
+ 0x7C0C0200, // 0007 CALL R3 1
+ 0x1C0C0701, // 0008 EQ R3 R3 K1
+ 0x780E0002, // 0009 JMPF R3 #000D
+ 0x880C0100, // 000A GETMBR R3 R0 K0
+ 0x980C0202, // 000B SETIDX R3 R1 R2
+ 0x70020000, // 000C JMP #000E
+ 0xB0060503, // 000D RAISE 1 K2 K3
+ 0x80000000, // 000E RET 0
})
)
);
/*******************************************************************/
+
+/********************************************************************
+** Solidified function: add_rule
+********************************************************************/
+be_local_closure(Tasmota_add_rule, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_nested_str(_rules),
+ /* K1 */ be_nested_str(function),
+ /* K2 */ be_nested_str(push),
+ /* K3 */ be_nested_str(kv),
+ /* K4 */ be_nested_str(value_error),
+ /* K5 */ be_nested_str(the_X20second_X20argument_X20is_X20not_X20a_X20function),
+ }),
+ &be_const_str_add_rule,
+ &be_const_str_solidified,
+ ( &(const binstruction[20]) { /* code */
+ 0x880C0100, // 0000 GETMBR R3 R0 K0
+ 0x740E0002, // 0001 JMPT R3 #0005
+ 0x600C0012, // 0002 GETGBL R3 G18
+ 0x7C0C0000, // 0003 CALL R3 0
+ 0x90020003, // 0004 SETMBR R0 K0 R3
+ 0x600C0004, // 0005 GETGBL R3 G4
+ 0x5C100400, // 0006 MOVE R4 R2
+ 0x7C0C0200, // 0007 CALL R3 1
+ 0x1C0C0701, // 0008 EQ R3 R3 K1
+ 0x780E0007, // 0009 JMPF R3 #0012
+ 0x880C0100, // 000A GETMBR R3 R0 K0
+ 0x8C0C0702, // 000B GETMET R3 R3 K2
+ 0x8C140103, // 000C GETMET R5 R0 K3
+ 0x5C1C0200, // 000D MOVE R7 R1
+ 0x5C200400, // 000E MOVE R8 R2
+ 0x7C140600, // 000F CALL R5 3
+ 0x7C0C0400, // 0010 CALL R3 2
+ 0x70020000, // 0011 JMP #0013
+ 0xB0060905, // 0012 RAISE 1 K4 K5
+ 0x80000000, // 0013 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: exec_rules
+********************************************************************/
+be_local_closure(Tasmota_exec_rules, /* name */
+ be_nested_proto(
+ 12, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[12]) { /* constants */
+ /* K0 */ be_nested_str(_rules),
+ /* K1 */ be_nested_str(cmd_res),
+ /* K2 */ be_nested_str(json),
+ /* K3 */ be_nested_str(load),
+ /* K4 */ be_nested_str(log),
+ /* K5 */ be_nested_str(BRY_X3A_X20ERROR_X2C_X20bad_X20json_X3A_X20),
+ /* K6 */ be_const_int(3),
+ /* K7 */ be_const_int(0),
+ /* K8 */ be_nested_str(try_rule),
+ /* K9 */ be_nested_str(k),
+ /* K10 */ be_nested_str(v),
+ /* K11 */ be_const_int(1),
+ }),
+ &be_const_str_exec_rules,
+ &be_const_str_solidified,
+ ( &(const binstruction[48]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x740A0003, // 0001 JMPT R2 #0006
+ 0x88080101, // 0002 GETMBR R2 R0 K1
+ 0x4C0C0000, // 0003 LDNIL R3
+ 0x20080403, // 0004 NE R2 R2 R3
+ 0x780A0027, // 0005 JMPF R2 #002E
+ 0xA40A0400, // 0006 IMPORT R2 K2
+ 0x8C0C0503, // 0007 GETMET R3 R2 K3
+ 0x5C140200, // 0008 MOVE R5 R1
+ 0x7C0C0400, // 0009 CALL R3 2
+ 0x50100000, // 000A LDBOOL R4 0 0
+ 0x4C140000, // 000B LDNIL R5
+ 0x1C140605, // 000C EQ R5 R3 R5
+ 0x78160004, // 000D JMPF R5 #0013
+ 0x8C140104, // 000E GETMET R5 R0 K4
+ 0x001E0A01, // 000F ADD R7 K5 R1
+ 0x58200006, // 0010 LDCONST R8 K6
+ 0x7C140600, // 0011 CALL R5 3
+ 0x5C0C0200, // 0012 MOVE R3 R1
+ 0x88140101, // 0013 GETMBR R5 R0 K1
+ 0x4C180000, // 0014 LDNIL R6
+ 0x20140A06, // 0015 NE R5 R5 R6
+ 0x78160000, // 0016 JMPF R5 #0018
+ 0x90020203, // 0017 SETMBR R0 K1 R3
+ 0x88140100, // 0018 GETMBR R5 R0 K0
+ 0x78160012, // 0019 JMPF R5 #002D
+ 0x58140007, // 001A LDCONST R5 K7
+ 0x6018000C, // 001B GETGBL R6 G12
+ 0x881C0100, // 001C GETMBR R7 R0 K0
+ 0x7C180200, // 001D CALL R6 1
+ 0x14180A06, // 001E LT R6 R5 R6
+ 0x781A000C, // 001F JMPF R6 #002D
+ 0x88180100, // 0020 GETMBR R6 R0 K0
+ 0x94180C05, // 0021 GETIDX R6 R6 R5
+ 0x8C1C0108, // 0022 GETMET R7 R0 K8
+ 0x5C240600, // 0023 MOVE R9 R3
+ 0x88280D09, // 0024 GETMBR R10 R6 K9
+ 0x882C0D0A, // 0025 GETMBR R11 R6 K10
+ 0x7C1C0800, // 0026 CALL R7 4
+ 0x741E0001, // 0027 JMPT R7 #002A
+ 0x74120000, // 0028 JMPT R4 #002A
+ 0x50100001, // 0029 LDBOOL R4 0 1
+ 0x50100200, // 002A LDBOOL R4 1 0
+ 0x00140B0B, // 002B ADD R5 R5 K11
+ 0x7001FFED, // 002C JMP #001B
+ 0x80040800, // 002D RET 1 R4
+ 0x50080000, // 002E LDBOOL R2 0 0
+ 0x80040400, // 002F RET 1 R2
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: cb_dispatch
+********************************************************************/
+be_local_closure(Tasmota_cb_dispatch, /* name */
+ be_nested_proto(
+ 12, /* nstack */
+ 6, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(_cb),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str(find),
+ }),
+ &be_const_str_cb_dispatch,
+ &be_const_str_solidified,
+ ( &(const binstruction[20]) { /* code */
+ 0x88180100, // 0000 GETMBR R6 R0 K0
+ 0x4C1C0000, // 0001 LDNIL R7
+ 0x1C180C07, // 0002 EQ R6 R6 R7
+ 0x781A0000, // 0003 JMPF R6 #0005
+ 0x80060200, // 0004 RET 1 K1
+ 0x88180100, // 0005 GETMBR R6 R0 K0
+ 0x8C180D02, // 0006 GETMET R6 R6 K2
+ 0x5C200200, // 0007 MOVE R8 R1
+ 0x7C180400, // 0008 CALL R6 2
+ 0x4C1C0000, // 0009 LDNIL R7
+ 0x201C0C07, // 000A NE R7 R6 R7
+ 0x781E0006, // 000B JMPF R7 #0013
+ 0x5C1C0C00, // 000C MOVE R7 R6
+ 0x5C200400, // 000D MOVE R8 R2
+ 0x5C240600, // 000E MOVE R9 R3
+ 0x5C280800, // 000F MOVE R10 R4
+ 0x5C2C0A00, // 0010 MOVE R11 R5
+ 0x7C1C0800, // 0011 CALL R7 4
+ 0x80040E00, // 0012 RET 1 R7
+ 0x80060200, // 0013 RET 1 K1
+ })
+ )
+);
+/*******************************************************************/
+
+
/********************************************************************
** Solidified function: hs2rgb
********************************************************************/
-be_local_closure(hs2rgb, /* name */
+be_local_closure(Tasmota_hs2rgb, /* name */
be_nested_proto(
17, /* nstack */
3, /* argc */
@@ -1894,14 +1667,14 @@ be_local_closure(hs2rgb, /* name */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
/* K0 */ be_const_int(0),
- /* K1 */ be_nested_string("tasmota", 424643812, 7),
- /* K2 */ be_nested_string("scale_uint", -1204156202, 10),
+ /* K1 */ be_nested_str(tasmota),
+ /* K2 */ be_nested_str(scale_uint),
/* K3 */ be_const_int(1),
/* K4 */ be_const_int(2),
/* K5 */ be_const_int(3),
}),
- (be_nested_const_str("hs2rgb", 1040816349, 6)),
- ((bstring*) &be_const_str_input),
+ &be_const_str_hs2rgb,
+ &be_const_str_solidified,
( &(const binstruction[68]) { /* code */
0x4C0C0000, // 0000 LDNIL R3
0x1C0C0403, // 0001 EQ R3 R2 R3
@@ -1976,6 +1749,312 @@ be_local_closure(hs2rgb, /* name */
);
/*******************************************************************/
+
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(KV_init, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(k),
+ /* K1 */ be_nested_str(v),
+ }),
+ &be_const_str_init,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 3]) { /* code */
+ 0x90020001, // 0000 SETMBR R0 K0 R1
+ 0x90020202, // 0001 SETMBR R0 K1 R2
+ 0x80000000, // 0002 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified class: KV
+********************************************************************/
+be_local_class(KV,
+ 2,
+ NULL,
+ be_nested_map(3,
+ ( (struct bmapnode*) &(const bmapnode[]) {
+ { be_const_key(k, 2), be_const_var(0) },
+ { be_const_key(v, -1), be_const_var(1) },
+ { be_const_key(init, -1), be_const_closure(KV_init_closure) },
+ })),
+ be_str_literal("KV")
+);
+
+/********************************************************************
+** Solidified function: kv
+********************************************************************/
+be_local_closure(Tasmota_kv, /* name */
+ be_nested_proto(
+ 7, /* nstack */
+ 3, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_const_class(be_class_KV),
+ }),
+ &be_const_str_kv,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 7]) { /* code */
+ 0x580C0000, // 0000 LDCONST R3 K0
+ 0xB4000000, // 0001 CLASS K0
+ 0x5C100600, // 0002 MOVE R4 R3
+ 0x5C140200, // 0003 MOVE R5 R1
+ 0x5C180400, // 0004 MOVE R6 R2
+ 0x7C100400, // 0005 CALL R4 2
+ 0x80040800, // 0006 RET 1 R4
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_cmd
+********************************************************************/
+be_local_closure(Tasmota_remove_cmd, /* name */
+ be_nested_proto(
+ 5, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str(_ccmd),
+ /* K1 */ be_nested_str(remove),
+ }),
+ &be_const_str_remove_cmd,
+ &be_const_str_solidified,
+ ( &(const binstruction[ 7]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x780A0003, // 0001 JMPF R2 #0006
+ 0x88080100, // 0002 GETMBR R2 R0 K0
+ 0x8C080501, // 0003 GETMET R2 R2 K1
+ 0x5C100200, // 0004 MOVE R4 R1
+ 0x7C080400, // 0005 CALL R2 2
+ 0x80000000, // 0006 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: set_timer
+********************************************************************/
+be_local_closure(Tasmota_set_timer, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 4]) { /* constants */
+ /* K0 */ be_nested_str(_timers),
+ /* K1 */ be_nested_str(push),
+ /* K2 */ be_nested_str(Timer),
+ /* K3 */ be_nested_str(millis),
+ }),
+ &be_const_str_set_timer,
+ &be_const_str_solidified,
+ ( &(const binstruction[16]) { /* code */
+ 0x88100100, // 0000 GETMBR R4 R0 K0
+ 0x74120002, // 0001 JMPT R4 #0005
+ 0x60100012, // 0002 GETGBL R4 G18
+ 0x7C100000, // 0003 CALL R4 0
+ 0x90020004, // 0004 SETMBR R0 K0 R4
+ 0x88100100, // 0005 GETMBR R4 R0 K0
+ 0x8C100901, // 0006 GETMET R4 R4 K1
+ 0xB81A0400, // 0007 GETNGBL R6 K2
+ 0x8C1C0103, // 0008 GETMET R7 R0 K3
+ 0x5C240200, // 0009 MOVE R9 R1
+ 0x7C1C0400, // 000A CALL R7 2
+ 0x5C200400, // 000B MOVE R8 R2
+ 0x5C240600, // 000C MOVE R9 R3
+ 0x7C180600, // 000D CALL R6 3
+ 0x7C100400, // 000E CALL R4 2
+ 0x80000000, // 000F RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_timer
+********************************************************************/
+be_local_closure(Tasmota_remove_timer, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 7]) { /* constants */
+ /* K0 */ be_nested_str(tasmota),
+ /* K1 */ be_nested_str(_timers),
+ /* K2 */ be_const_int(0),
+ /* K3 */ be_nested_str(size),
+ /* K4 */ be_nested_str(id),
+ /* K5 */ be_nested_str(remove),
+ /* K6 */ be_const_int(1),
+ }),
+ &be_const_str_remove_timer,
+ &be_const_str_solidified,
+ ( &(const binstruction[23]) { /* code */
+ 0xB80A0000, // 0000 GETNGBL R2 K0
+ 0x88080501, // 0001 GETMBR R2 R2 K1
+ 0x780A0012, // 0002 JMPF R2 #0016
+ 0x58080002, // 0003 LDCONST R2 K2
+ 0xB80E0000, // 0004 GETNGBL R3 K0
+ 0x880C0701, // 0005 GETMBR R3 R3 K1
+ 0x8C0C0703, // 0006 GETMET R3 R3 K3
+ 0x7C0C0200, // 0007 CALL R3 1
+ 0x140C0403, // 0008 LT R3 R2 R3
+ 0x780E000B, // 0009 JMPF R3 #0016
+ 0x880C0101, // 000A GETMBR R3 R0 K1
+ 0x940C0602, // 000B GETIDX R3 R3 R2
+ 0x880C0704, // 000C GETMBR R3 R3 K4
+ 0x1C0C0601, // 000D EQ R3 R3 R1
+ 0x780E0004, // 000E JMPF R3 #0014
+ 0x880C0101, // 000F GETMBR R3 R0 K1
+ 0x8C0C0705, // 0010 GETMET R3 R3 K5
+ 0x5C140400, // 0011 MOVE R5 R2
+ 0x7C0C0400, // 0012 CALL R3 2
+ 0x70020000, // 0013 JMP #0015
+ 0x00080506, // 0014 ADD R2 R2 K6
+ 0x7001FFED, // 0015 JMP #0004
+ 0x80000000, // 0016 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: exec_cmd
+********************************************************************/
+be_local_closure(Tasmota_exec_cmd, /* name */
+ be_nested_proto(
+ 12, /* nstack */
+ 4, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str(_ccmd),
+ /* K1 */ be_nested_str(json),
+ /* K2 */ be_nested_str(load),
+ /* K3 */ be_nested_str(find_key_i),
+ /* K4 */ be_nested_str(resolvecmnd),
+ }),
+ &be_const_str_exec_cmd,
+ &be_const_str_solidified,
+ ( &(const binstruction[27]) { /* code */
+ 0x88100100, // 0000 GETMBR R4 R0 K0
+ 0x78120016, // 0001 JMPF R4 #0019
+ 0xA4120200, // 0002 IMPORT R4 K1
+ 0x8C140902, // 0003 GETMET R5 R4 K2
+ 0x5C1C0600, // 0004 MOVE R7 R3
+ 0x7C140400, // 0005 CALL R5 2
+ 0x8C180103, // 0006 GETMET R6 R0 K3
+ 0x88200100, // 0007 GETMBR R8 R0 K0
+ 0x5C240200, // 0008 MOVE R9 R1
+ 0x7C180600, // 0009 CALL R6 3
+ 0x4C1C0000, // 000A LDNIL R7
+ 0x201C0C07, // 000B NE R7 R6 R7
+ 0x781E000B, // 000C JMPF R7 #0019
+ 0x8C1C0104, // 000D GETMET R7 R0 K4
+ 0x5C240C00, // 000E MOVE R9 R6
+ 0x7C1C0400, // 000F CALL R7 2
+ 0x881C0100, // 0010 GETMBR R7 R0 K0
+ 0x941C0E06, // 0011 GETIDX R7 R7 R6
+ 0x5C200C00, // 0012 MOVE R8 R6
+ 0x5C240400, // 0013 MOVE R9 R2
+ 0x5C280600, // 0014 MOVE R10 R3
+ 0x5C2C0A00, // 0015 MOVE R11 R5
+ 0x7C1C0800, // 0016 CALL R7 4
+ 0x501C0200, // 0017 LDBOOL R7 1 0
+ 0x80040E00, // 0018 RET 1 R7
+ 0x50100000, // 0019 LDBOOL R4 0 0
+ 0x80040800, // 001A RET 1 R4
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_light
+********************************************************************/
+be_local_closure(Tasmota_get_light, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 2, /* argc */
+ 0, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str(tasmota_X2Eget_light_X28_X29_X20is_X20deprecated_X2C_X20use_X20light_X2Eget_X28_X29),
+ /* K1 */ be_nested_str(light),
+ /* K2 */ be_nested_str(get),
+ }),
+ &be_const_str_get_light,
+ &be_const_str_solidified,
+ ( &(const binstruction[16]) { /* code */
+ 0x60080001, // 0000 GETGBL R2 G1
+ 0x580C0000, // 0001 LDCONST R3 K0
+ 0x7C080200, // 0002 CALL R2 1
+ 0xA40A0200, // 0003 IMPORT R2 K1
+ 0x4C0C0000, // 0004 LDNIL R3
+ 0x200C0203, // 0005 NE R3 R1 R3
+ 0x780E0004, // 0006 JMPF R3 #000C
+ 0x8C0C0502, // 0007 GETMET R3 R2 K2
+ 0x5C140200, // 0008 MOVE R5 R1
+ 0x7C0C0400, // 0009 CALL R3 2
+ 0x80040600, // 000A RET 1 R3
+ 0x70020002, // 000B JMP #000F
+ 0x8C0C0502, // 000C GETMET R3 R2 K2
+ 0x7C0C0200, // 000D CALL R3 1
+ 0x80040600, // 000E RET 1 R3
+ 0x80000000, // 000F RET 0
+ })
+ )
+);
+/*******************************************************************/
+
#include "../generate/be_fixed_be_class_tasmota.h"
@@ -2007,8 +2086,8 @@ class be_class_tasmota (scope: global, name: Tasmota) {
_global_addr, comptr(&TasmotaGlobal)
_settings_ptr, comptr(&Settings)
- init, closure(init_closure)
- kv, closure(kv_closure)
+ init, closure(Tasmota_init_closure)
+ kv, closure(Tasmota_kv_closure)
get_free_heap, func(l_getFreeHeap)
arch, func(l_arch)
@@ -2022,6 +2101,7 @@ class be_class_tasmota (scope: global, name: Tasmota) {
rtc, func(l_rtc)
time_dump, func(l_time_dump)
strftime, func(l_strftime)
+ strptime, func(l_strptime)
memory, func(l_memory)
wifi, func(l_wifi)
eth, func(l_eth)
@@ -2050,35 +2130,35 @@ class be_class_tasmota (scope: global, name: Tasmota) {
i2c_enabled, func(l_i2cenabled)
- cmd, closure(cmd_closure)
- chars_in_string, closure(chars_in_string_closure)
- find_key_i, closure(find_key_i_closure)
- find_op, closure(find_op_closure)
- add_rule, closure(add_rule_closure)
- remove_rule, closure(remove_rule_closure)
- try_rule, closure(try_rule_closure)
- exec_rules, closure(exec_rules_closure)
- exec_tele, closure(exec_tele_closure)
- set_timer, closure(set_timer_closure)
- run_deferred, closure(run_deferred_closure)
- remove_timer, closure(remove_timer_closure)
- add_cmd, closure(add_cmd_closure)
- remove_cmd, closure(remove_cmd_closure)
- exec_cmd, closure(exec_cmd_closure)
- gc, closure(gc_closure)
- event, closure(event_closure)
- add_driver, closure(add_driver_closure)
- remove_driver, closure(remove_driver_closure)
- load, closure(load_closure)
- wire_scan, closure(wire_scan_closure)
- time_str, closure(time_str_closure)
+ cmd, closure(Tasmota_cmd_closure)
+ chars_in_string, closure(Tasmota_chars_in_string_closure)
+ find_key_i, closure(Tasmota_find_key_i_closure)
+ find_op, closure(Tasmota_find_op_closure)
+ add_rule, closure(Tasmota_add_rule_closure)
+ remove_rule, closure(Tasmota_remove_rule_closure)
+ try_rule, closure(Tasmota_try_rule_closure)
+ exec_rules, closure(Tasmota_exec_rules_closure)
+ exec_tele, closure(Tasmota_exec_tele_closure)
+ set_timer, closure(Tasmota_set_timer_closure)
+ run_deferred, closure(Tasmota_run_deferred_closure)
+ remove_timer, closure(Tasmota_remove_timer_closure)
+ add_cmd, closure(Tasmota_add_cmd_closure)
+ remove_cmd, closure(Tasmota_remove_cmd_closure)
+ exec_cmd, closure(Tasmota_exec_cmd_closure)
+ gc, closure(Tasmota_gc_closure)
+ event, closure(Tasmota_event_closure)
+ add_driver, closure(Tasmota_add_driver_closure)
+ remove_driver, closure(Tasmota_remove_driver_closure)
+ load, closure(Tasmota_load_closure)
+ wire_scan, closure(Tasmota_wire_scan_closure)
+ time_str, closure(Tasmota_time_str_closure)
- hs2rgb, closure(hs2rgb_closure)
+ hs2rgb, closure(Tasmota_hs2rgb_closure)
- cb_dispatch, closure(cb_dispatch_closure)
- gen_cb, closure(gen_cb_closure)
+ cb_dispatch, closure(Tasmota_cb_dispatch_closure)
+ gen_cb, closure(Tasmota_gen_cb_closure)
- get_light, closure(get_light_closure)
- set_light, closure(set_light_closure)
+ get_light, closure(Tasmota_get_light_closure)
+ set_light, closure(Tasmota_set_light_closure)
}
@const_object_info_end */
diff --git a/lib/libesp32/Berry/default/be_tcpclient_lib.c b/lib/libesp32/Berry/default/be_tcpclient_lib.c
new file mode 100644
index 000000000..b39db458e
--- /dev/null
+++ b/lib/libesp32/Berry/default/be_tcpclient_lib.c
@@ -0,0 +1,48 @@
+/********************************************************************
+ * Webclient mapped to Arduino framework
+ *
+ * To use: `d = webclient()`
+ *
+ *******************************************************************/
+#include "be_constobj.h"
+
+#ifdef USE_WEBCLIENT
+
+extern int wc_tcp_init(bvm *vm);
+extern int wc_tcp_deinit(bvm *vm);
+
+extern int wc_tcp_connect(bvm *vm);
+extern int wc_tcp_connected(bvm *vm);
+extern int wc_tcp_close(bvm *vm);
+extern int wc_tcp_available(bvm *vm);
+
+extern int wc_tcp_write(bvm *vm);
+extern int wc_tcp_read(bvm *vm);
+extern int wc_tcp_readbytes(bvm *vm);
+
+#include "../generate/be_fixed_be_class_tcpclient.h"
+
+void be_load_tcpclient_lib(bvm *vm) {
+ be_pushntvclass(vm, &be_class_tcpclient);
+ be_setglobal(vm, "tcpclient");
+ be_pop(vm, 1);
+}
+/* @const_object_info_begin
+
+class be_class_tcpclient (scope: global, name: tcpclient) {
+ .w, var
+ init, func(wc_tcp_init)
+ deinit, func(wc_tcp_deinit)
+
+ connect, func(wc_tcp_connect)
+ connected, func(wc_tcp_connected)
+ close, func(wc_tcp_close)
+ available, func(wc_tcp_available)
+
+ write, func(wc_tcp_write)
+ read, func(wc_tcp_read)
+ readbytes, func(wc_tcp_readbytes)
+}
+@const_object_info_end */
+
+#endif // USE_WEBCLIENT
diff --git a/lib/libesp32/Berry/default/be_timer_class.c b/lib/libesp32/Berry/default/be_timer_class.c
index 2646fd6b2..6664e408e 100644
--- a/lib/libesp32/Berry/default/be_timer_class.c
+++ b/lib/libesp32/Berry/default/be_timer_class.c
@@ -8,7 +8,7 @@
/********************************************************************
** Solidified function: tostring
********************************************************************/
-be_local_closure(tostring, /* name */
+be_local_closure(Timer_tostring, /* name */
be_nested_proto(
10, /* nstack */
1, /* argc */
@@ -19,35 +19,35 @@ be_local_closure(tostring, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_string("string", 398550328, 6),
- /* K1 */ be_nested_string("format", -1180859054, 6),
- /* K2 */ be_nested_string("= 0
gpio = gpio.pin(gpio.WS2812)
@@ -41,7 +43,7 @@ class Leds : Leds_ntv
end
# initialize the structure
- self.ctor(leds, gpio, type, rmt)
+ self.ctor(self.leds, gpio, type, rmt)
if self._p == nil raise "internal_error", "couldn't not initialize noepixelbus" end
@@ -124,8 +126,176 @@ class Leds : Leds_ntv
b
end
end
+
+ # `segment`
+ # create a new `strip` object that maps a part of the current strip
+ def create_segment(offset, leds)
+ if int(offset) + int(leds) > self.leds || offset < 0 || leds < 0
+ raise "value_error", "out of range"
+ end
+
+ # inner class
+ class Leds_segment
+ var strip
+ var offset, leds
+
+ def init(strip, offset, leds)
+ self.strip = strip
+ self.offset = int(offset)
+ self.leds = int(leds)
+ end
+
+ def clear()
+ self.clear_to(0x000000)
+ self.show()
+ end
+
+ def begin()
+ # do nothing, already being handled by physical strip
+ end
+ def show(force)
+ # don't trigger on segment, you will need to trigger on full strip instead
+ if bool(force) || (self.offset == 0 && self.leds == self.strip.leds)
+ self.strip.show()
+ end
+ end
+ def can_show()
+ return self.strip.can_show()
+ end
+ def is_dirty()
+ return self.strip.is_dirty()
+ end
+ def dirty()
+ self.strip.dirty()
+ end
+ def pixels_buffer()
+ return nil
+ end
+ def pixel_size()
+ return self.strip.pixel_size()
+ end
+ def pixel_count()
+ return self.leds
+ end
+ def clear_to(col, bri)
+ var i = 0
+ while i < self.leds
+ self.strip.set_pixel_color(i + self.offset, col, bri)
+ i += 1
+ end
+ end
+ def set_pixel_color(idx, col, bri)
+ self.strip.set_pixel_color(idx + self.offset, col, bri)
+ end
+ def get_pixel_color(idx)
+ return self.strip.get_pixel_color(idx + self.offseta)
+ end
+ end
+
+ return Leds_segment(self, offset, leds)
+
+ end
+
+ def create_matrix(w, h, offset)
+ offset = int(offset)
+ w = int(w)
+ h = int(h)
+ if offset == nil offset = 0 end
+ if w * h + offset > self.leds || h < 0 || w < 0 || offset < 0
+ raise "value_error", "out of range"
+ end
+
+ # inner class
+ class Leds_matrix
+ var strip
+ var offset
+ var h, w
+ var alternate # are rows in alternate mode (even/odd are reversed)
+
+ def init(strip, w, h, offset)
+ self.strip = strip
+ self.offset = offset
+ self.h = h
+ self.w = w
+ self.alternate = false
+ end
+
+ def clear()
+ self.clear_to(0x000000)
+ self.show()
+ end
+
+ def begin()
+ # do nothing, already being handled by physical strip
+ end
+ def show(force)
+ # don't trigger on segment, you will need to trigger on full strip instead
+ if bool(force) || (self.offset == 0 && self.w * self.h == self.strip.leds)
+ self.strip.show()
+ end
+ end
+ def can_show()
+ return self.strip.can_show()
+ end
+ def is_dirty()
+ return self.strip.is_dirty()
+ end
+ def dirty()
+ self.strip.dirty()
+ end
+ def pixels_buffer()
+ return nil
+ end
+ def pixel_size()
+ return self.strip.pixel_size()
+ end
+ def pixel_count()
+ return self.w * self.h
+ end
+ def clear_to(col, bri)
+ var i = 0
+ while i < self.w * self.h
+ self.strip.set_pixel_color(i + self.offset, col, bri)
+ i += 1
+ end
+ end
+ def set_pixel_color(idx, col, bri)
+ self.strip.set_pixel_color(idx + self.offset, col, bri)
+ end
+ def get_pixel_color(idx)
+ return self.strip.get_pixel_color(idx + self.offseta)
+ end
+
+ # Leds_matrix specific
+ def set_alternate(alt)
+ self.alternate = alt
+ end
+ def get_alternate()
+ return self.alternate
+ end
+
+ def set_matrix_pixel_color(x, y, col, bri)
+ if self.alternate && x % 2
+ # reversed line
+ self.strip.set_pixel_color(x * self.w + self.h - y - 1 + self.offset, col, bri)
+ else
+ self.strip.set_pixel_color(x * self.w + y + self.offset, col, bri)
+ end
+ end
+ end
+
+ return Leds_matrix(self, w, h, offset)
+
+ end
+
+ static def matrix(w, h, gpio, rmt)
+ var strip = Leds(w * h, gpio, rmt)
+ var matrix = strip.create_matrix(w, h, 0)
+ return matrix
+ end
end
+
#-
var s = Leds(25, gpio.pin(gpio.WS2812, 1))
@@ -144,34 +314,6 @@ anim()
-#
-class Leds_matrix : Leds
- var h, w
- var alternate # are rows in alternate mode (even/odd are reversed)
-
- def init(w, h, gpio, rmt)
- self.w = w
- self.h = h
- self.alternate = false
- super(self).init(w * h, gpio, rmt)
- end
-
- def set_alternate(alt)
- self.alternate = alt
- end
- def get_alternate()
- return self.alternate
- end
-
- def set_matrix_pixel_color(x, y, col, bri)
- if self.alternate && x % 2
- # reversed line
- self.set_pixel_color(x * self.w + self.h - y - 1, col, bri)
- else
- self.set_pixel_color(x * self.w + y, col, bri)
- end
- end
-end
-
#-
var s = Leds_matrix(5, 5, gpio.pin(gpio.WS2812, 1))
diff --git a/lib/libesp32/Berry/default/embedded/persist.be b/lib/libesp32/Berry/default/embedded/persist.be
index e0bb8025f..164a1dd7b 100644
--- a/lib/libesp32/Berry/default/embedded/persist.be
+++ b/lib/libesp32/Berry/default/embedded/persist.be
@@ -81,6 +81,8 @@ persist_module.init = def (m)
print("BRY: failed to load _persist.json")
end
self._dirty = false
+ else
+ self.save()
end
# print("Loading")
diff --git a/lib/libesp32/Berry/default/embedded/tapp.be b/lib/libesp32/Berry/default/embedded/tapp.be
index 3c3528e3a..30aa1f740 100644
--- a/lib/libesp32/Berry/default/embedded/tapp.be
+++ b/lib/libesp32/Berry/default/embedded/tapp.be
@@ -19,7 +19,7 @@ tapp_module.init = def (m)
for d: dir
if string.find(d, ".tapp") > 0
- print(string.format("TAP: found Tasmota App '%s'", d))
+ tasmota.log(string.format("TAP: found Tasmota App '%s'", d), 2)
tasmota.load(d + "#autoexec.be")
end
end
diff --git a/lib/libesp32/Berry/generate/be_const_strtab.h b/lib/libesp32/Berry/generate/be_const_strtab.h
index cee6bc29d..9692c8508 100644
--- a/lib/libesp32/Berry/generate/be_const_strtab.h
+++ b/lib/libesp32/Berry/generate/be_const_strtab.h
@@ -1,350 +1,743 @@
-extern const bcstring be_const_str_SERIAL_6N2;
-extern const bcstring be_const_str__begin_transmission;
-extern const bcstring be_const_str_set_light;
-extern const bcstring be_const_str_time_reached;
-extern const bcstring be_const_str_SERIAL_5E2;
-extern const bcstring be_const_str___lower__;
-extern const bcstring be_const_str_SERIAL_7O1;
-extern const bcstring be_const_str_getbits;
-extern const bcstring be_const_str_input;
-extern const bcstring be_const_str_dot_size;
-extern const bcstring be_const_str_publish_result;
-extern const bcstring be_const_str_web_send_decimal;
-extern const bcstring be_const_str_def;
-extern const bcstring be_const_str__cmd;
-extern const bcstring be_const_str_begin;
-extern const bcstring be_const_str_resp_cmnd;
-extern const bcstring be_const_str_assert;
-extern const bcstring be_const_str_set;
-extern const bcstring be_const_str_tag;
-extern const bcstring be_const_str_check_privileged_access;
-extern const bcstring be_const_str_kv;
-extern const bcstring be_const_str_publish;
-extern const bcstring be_const_str_read32;
-extern const bcstring be_const_str_load;
-extern const bcstring be_const_str_read13;
-extern const bcstring be_const_str_search;
-extern const bcstring be_const_str_dac_voltage;
-extern const bcstring be_const_str_finish;
-extern const bcstring be_const_str_hex;
-extern const bcstring be_const_str_isinstance;
-extern const bcstring be_const_str_rand;
-extern const bcstring be_const_str_POST;
-extern const bcstring be_const_str_SERIAL_6E2;
-extern const bcstring be_const_str_classname;
-extern const bcstring be_const_str__global_def;
-extern const bcstring be_const_str_open;
-extern const bcstring be_const_str_redirect;
-extern const bcstring be_const_str_AES_GCM;
-extern const bcstring be_const_str_resp_cmnd_failed;
-extern const bcstring be_const_str_reverse_gamma10;
-extern const bcstring be_const_str_strftime;
-extern const bcstring be_const_str_insert;
-extern const bcstring be_const_str_false;
-extern const bcstring be_const_str_arg_size;
-extern const bcstring be_const_str_serial;
-extern const bcstring be_const_str_OneWire;
-extern const bcstring be_const_str_scale_uint;
-extern const bcstring be_const_str_return;
-extern const bcstring be_const_str_wire;
-extern const bcstring be_const_str_write_bytes;
-extern const bcstring be_const_str__global_addr;
-extern const bcstring be_const_str_exec_tele;
-extern const bcstring be_const_str_target_search;
-extern const bcstring be_const_str_gamma8;
-extern const bcstring be_const_str_pi;
-extern const bcstring be_const_str_state;
-extern const bcstring be_const_str_depower;
-extern const bcstring be_const_str_init;
-extern const bcstring be_const_str_member;
-extern const bcstring be_const_str__end_transmission;
-extern const bcstring be_const_str_digital_read;
-extern const bcstring be_const_str_imin;
-extern const bcstring be_const_str_hs2rgb;
-extern const bcstring be_const_str_keys;
-extern const bcstring be_const_str_real;
-extern const bcstring be_const_str_sin;
-extern const bcstring be_const_str_SERIAL_7N1;
-extern const bcstring be_const_str_ctypes_bytes;
-extern const bcstring be_const_str_ctypes_bytes_dyn;
-extern const bcstring be_const_str_raise;
-extern const bcstring be_const_str_GET;
-extern const bcstring be_const_str__settings_def;
-extern const bcstring be_const_str_read24;
-extern const bcstring be_const_str_cos;
-extern const bcstring be_const_str_remove_driver;
-extern const bcstring be_const_str__settings_ptr;
-extern const bcstring be_const_str_memory;
-extern const bcstring be_const_str_set_auth;
-extern const bcstring be_const_str_content_send_style;
-extern const bcstring be_const_str_class;
-extern const bcstring be_const_str_SERIAL_7E2;
-extern const bcstring be_const_str_shared_key;
-extern const bcstring be_const_str_tanh;
-extern const bcstring be_const_str_nil;
-extern const bcstring be_const_str_get_power;
-extern const bcstring be_const_str_last_modified;
-extern const bcstring be_const_str_resolvecmnd;
-extern const bcstring be_const_str__read;
-extern const bcstring be_const_str_atan;
-extern const bcstring be_const_str_content_button;
-extern const bcstring be_const_str_setbits;
-extern const bcstring be_const_str_upper;
-extern const bcstring be_const_str_contains;
-extern const bcstring be_const_str_time_str;
-extern const bcstring be_const_str_arch;
-extern const bcstring be_const_str_fromptr;
-extern const bcstring be_const_str_push;
-extern const bcstring be_const_str_srand;
-extern const bcstring be_const_str_geti;
-extern const bcstring be_const_str_seti;
-extern const bcstring be_const_str_add_cmd;
-extern const bcstring be_const_str_cmd;
-extern const bcstring be_const_str_get_switch;
-extern const bcstring be_const_str_size;
-extern const bcstring be_const_str_try;
-extern const bcstring be_const_str_web_send;
-extern const bcstring be_const_str_except;
-extern const bcstring be_const_str_SERIAL_5O1;
-extern const bcstring be_const_str_SERIAL_8E2;
-extern const bcstring be_const_str__available;
-extern const bcstring be_const_str_codedump;
-extern const bcstring be_const_str_wire2;
-extern const bcstring be_const_str_dump;
-extern const bcstring be_const_str_exec_cmd;
-extern const bcstring be_const_str_add;
-extern const bcstring be_const_str_exp;
-extern const bcstring be_const_str_isrunning;
-extern const bcstring be_const_str_remove_rule;
-extern const bcstring be_const_str_run_deferred;
-extern const bcstring be_const_str_scan;
-extern const bcstring be_const_str_for;
-extern const bcstring be_const_str_set_timer;
-extern const bcstring be_const_str_url_encode;
-extern const bcstring be_const_str_addr;
-extern const bcstring be_const_str___upper__;
-extern const bcstring be_const_str_loop;
-extern const bcstring be_const_str_AudioGeneratorWAV;
-extern const bcstring be_const_str_chars_in_string;
-extern const bcstring be_const_str_cosh;
-extern const bcstring be_const_str_import;
-extern const bcstring be_const_str_SERIAL_5N2;
-extern const bcstring be_const_str_type;
-extern const bcstring be_const_str_clear;
-extern const bcstring be_const_str_SERIAL_8N1;
-extern const bcstring be_const_str_issubclass;
-extern const bcstring be_const_str_remove_timer;
-extern const bcstring be_const_str_sinh;
-extern const bcstring be_const_str_AudioGeneratorMP3;
-extern const bcstring be_const_str_Wire;
-extern const bcstring be_const_str_get_light;
-extern const bcstring be_const_str_get_option;
-extern const bcstring be_const_str_list;
-extern const bcstring be_const_str_stop;
-extern const bcstring be_const_str_try_rule;
-extern const bcstring be_const_str_webclient;
-extern const bcstring be_const_str_dot_p2;
-extern const bcstring be_const_str_has;
-extern const bcstring be_const_str__request_from;
-extern const bcstring be_const_str_setrange;
-extern const bcstring be_const_str_I2C_Driver;
-extern const bcstring be_const_str_ceil;
-extern const bcstring be_const_str_else;
-extern const bcstring be_const_str_concat;
-extern const bcstring be_const_str_set_power;
-extern const bcstring be_const_str_tomap;
-extern const bcstring be_const_str_resp_cmnd_error;
-extern const bcstring be_const_str_add_header;
-extern const bcstring be_const_str_eth;
-extern const bcstring be_const_str_write_bit;
-extern const bcstring be_const_str_exists;
-extern const bcstring be_const_str_pow;
-extern const bcstring be_const_str_select;
-extern const bcstring be_const_str_allocated;
-extern const bcstring be_const_str_classof;
-extern const bcstring be_const_str_if;
-extern const bcstring be_const_str_SERIAL_5E1;
-extern const bcstring be_const_str_arg;
-extern const bcstring be_const_str_cb_dispatch;
-extern const bcstring be_const_str_response_append;
-extern const bcstring be_const_str_pin_used;
-extern const bcstring be_const_str_write;
-extern const bcstring be_const_str_write8;
-extern const bcstring be_const_str_SERIAL_6O2;
-extern const bcstring be_const_str_log;
-extern const bcstring be_const_str_pin_mode;
-extern const bcstring be_const_str_read12;
-extern const bcstring be_const_str_resp_cmnd_str;
-extern const bcstring be_const_str_abs;
-extern const bcstring be_const_str_digital_write;
-extern const bcstring be_const_str_static;
-extern const bcstring be_const_str_bytes;
-extern const bcstring be_const_str_find_op;
-extern const bcstring be_const_str_call;
-extern const bcstring be_const_str_cmd_res;
-extern const bcstring be_const_str_opt_eq;
-extern const bcstring be_const_str_save;
-extern const bcstring be_const_str_find_key_i;
-extern const bcstring be_const_str__cb;
-extern const bcstring be_const_str_Tasmota;
-extern const bcstring be_const_str_public_key;
-extern const bcstring be_const_str_as;
-extern const bcstring be_const_str_dot_w;
-extern const bcstring be_const_str_SERIAL_8O1;
-extern const bcstring be_const_str_compile;
-extern const bcstring be_const_str_range;
-extern const bcstring be_const_str_add_rule;
-extern const bcstring be_const_str__ptr;
-extern const bcstring be_const_str_delay;
-extern const bcstring be_const_str_pop;
-extern const bcstring be_const_str_reset;
-extern const bcstring be_const_str_wire_scan;
-extern const bcstring be_const_str_reset_search;
-extern const bcstring be_const_str_tolower;
-extern const bcstring be_const_str_SERIAL_7O2;
-extern const bcstring be_const_str_asin;
-extern const bcstring be_const_str_nan;
-extern const bcstring be_const_str_deg;
-extern const bcstring be_const_str_log10;
-extern const bcstring be_const_str_char;
-extern const bcstring be_const_str_get_size;
-extern const bcstring be_const_str_opt_call;
-extern const bcstring be_const_str_end;
-extern const bcstring be_const_str_SERIAL_7N2;
-extern const bcstring be_const_str_time_dump;
-extern const bcstring be_const_str_listdir;
-extern const bcstring be_const_str_wifi;
-extern const bcstring be_const_str_read_bytes;
-extern const bcstring be_const_str_reverse;
-extern const bcstring be_const_str_SERIAL_6E1;
-extern const bcstring be_const_str_SERIAL_5O2;
-extern const bcstring be_const_str_SERIAL_8E1;
-extern const bcstring be_const_str_asstring;
-extern const bcstring be_const_str_deinit;
-extern const bcstring be_const_str_encrypt;
-extern const bcstring be_const_str_iter;
-extern const bcstring be_const_str_millis;
-extern const bcstring be_const_str_AudioOutput;
-extern const bcstring be_const_str_members;
-extern const bcstring be_const_str_rtc;
-extern const bcstring be_const_str_SERIAL_6N1;
-extern const bcstring be_const_str__write;
-extern const bcstring be_const_str_content_start;
-extern const bcstring be_const_str_module;
-extern const bcstring be_const_str_item;
-extern const bcstring be_const_str_remove_cmd;
-extern const bcstring be_const_str_MD5;
-extern const bcstring be_const_str_sqrt;
-extern const bcstring be_const_str_SERIAL_5N1;
-extern const bcstring be_const_str_break;
-extern const bcstring be_const_str_map;
-extern const bcstring be_const_str_setmember;
-extern const bcstring be_const_str_tostring;
-extern const bcstring be_const_str_AudioGenerator;
-extern const bcstring be_const_str_while;
-extern const bcstring be_const_str_event;
-extern const bcstring be_const_str_resp_cmnd_done;
-extern const bcstring be_const_str_AudioOutputI2S;
-extern const bcstring be_const_str_has_arg;
-extern const bcstring be_const_str_floor;
-extern const bcstring be_const_str_read;
-extern const bcstring be_const_str_remove;
-extern const bcstring be_const_str_calldepth;
-extern const bcstring be_const_str_lower;
-extern const bcstring be_const_str_path;
-extern const bcstring be_const_str_gamma10;
-extern const bcstring be_const_str_get;
-extern const bcstring be_const_str_elif;
-extern const bcstring be_const_str__buffer;
-extern const bcstring be_const_str_exec_rules;
-extern const bcstring be_const_str_pin;
-extern const bcstring be_const_str_collect;
-extern const bcstring be_const_str_enabled;
-extern const bcstring be_const_str_global;
-extern const bcstring be_const_str_acos;
-extern const bcstring be_const_str_content_stop;
-extern const bcstring be_const_str_read8;
-extern const bcstring be_const_str_wire1;
-extern const bcstring be_const_str_fromstring;
-extern const bcstring be_const_str_setitem;
-extern const bcstring be_const_str__debug_present;
-extern const bcstring be_const_str_erase;
-extern const bcstring be_const_str_i2c_enabled;
-extern const bcstring be_const_str_resize;
-extern const bcstring be_const_str_decrypt;
-extern const bcstring be_const_str_escape;
-extern const bcstring be_const_str_isnan;
-extern const bcstring be_const_str_skip;
-extern const bcstring be_const_str_var;
-extern const bcstring be_const_str_dot_p;
-extern const bcstring be_const_str_write_file;
-extern const bcstring be_const_str_copy;
-extern const bcstring be_const_str_str;
-extern const bcstring be_const_str_super;
-extern const bcstring be_const_str_update;
-extern const bcstring be_const_str__def;
-extern const bcstring be_const_str__drivers;
-extern const bcstring be_const_str_imax;
-extern const bcstring be_const_str_add_driver;
-extern const bcstring be_const_str_dot_len;
-extern const bcstring be_const_str_SERIAL_6O1;
-extern const bcstring be_const_str_attrdump;
-extern const bcstring be_const_str_on;
-extern const bcstring be_const_str_rad;
-extern const bcstring be_const_str_bus;
-extern const bcstring be_const_str_yield;
-extern const bcstring be_const_str_top;
-extern const bcstring be_const_str_get_string;
-extern const bcstring be_const_str_read_sensors;
-extern const bcstring be_const_str_settings;
-extern const bcstring be_const_str__get_cb;
-extern const bcstring be_const_str_int;
-extern const bcstring be_const_str_opt_neq;
-extern const bcstring be_const_str_gen_cb;
-extern const bcstring be_const_str__timers;
-extern const bcstring be_const_str_continue;
-extern const bcstring be_const_str_SERIAL_7E1;
-extern const bcstring be_const_str_AudioFileSource;
-extern const bcstring be_const_str_format;
-extern const bcstring be_const_str_EC_C25519;
-extern const bcstring be_const_str_close;
-extern const bcstring be_const_str_content_flush;
-extern const bcstring be_const_str_reduce;
-extern const bcstring be_const_str_tr;
-extern const bcstring be_const_str_available;
-extern const bcstring be_const_str_traceback;
-extern const bcstring be_const_str_opt_add;
-extern const bcstring be_const_str_SERIAL_8N2;
-extern const bcstring be_const_str_wd;
-extern const bcstring be_const_str___iterator__;
-extern const bcstring be_const_str_fromb64;
-extern const bcstring be_const_str_number;
-extern const bcstring be_const_str_print;
-extern const bcstring be_const_str_set_useragent;
-extern const bcstring be_const_str_tan;
-extern const bcstring be_const_str_do;
extern const bcstring be_const_str_;
-extern const bcstring be_const_str_opt_connect;
+extern const bcstring be_const_str_AES_GCM;
+extern const bcstring be_const_str_AXP192;
+extern const bcstring be_const_str_Animate_X20pc_X20is_X20out_X20of_X20range;
+extern const bcstring be_const_str_AudioFileSource;
+extern const bcstring be_const_str_AudioFileSourceFS;
+extern const bcstring be_const_str_AudioGenerator;
+extern const bcstring be_const_str_AudioGeneratorMP3;
+extern const bcstring be_const_str_AudioGeneratorWAV;
+extern const bcstring be_const_str_AudioOutput;
+extern const bcstring be_const_str_AudioOutputI2S;
+extern const bcstring be_const_str_Auto_X2Dconfiguration;
+extern const bcstring be_const_str_BRY_X3A_X20ERROR_X2C_X20bad_X20json_X3A_X20;
+extern const bcstring be_const_str_BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s;
+extern const bcstring be_const_str_BRY_X3A_X20could_X20not_X20save_X20compiled_X20file_X20_X25s_X20_X28_X25s_X29;
+extern const bcstring be_const_str_BRY_X3A_X20failed_X20to_X20load_X20_persist_X2Ejson;
+extern const bcstring be_const_str_BUTTON_CONFIGURATION;
+extern const bcstring be_const_str_CFG_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s;
+extern const bcstring be_const_str_CFG_X3A_X20_X27init_X2Ebat_X27_X20done_X2C_X20restarting;
+extern const bcstring be_const_str_CFG_X3A_X20could_X20not_X20run_X20_X25s_X20_X28_X25s_X20_X2D_X20_X25s_X29;
+extern const bcstring be_const_str_CFG_X3A_X20downloading_X20_X27_X25s_X27;
+extern const bcstring be_const_str_CFG_X3A_X20exception_X20_X27_X25s_X27_X20_X2D_X20_X27_X25s_X27;
+extern const bcstring be_const_str_CFG_X3A_X20loaded_X20_X20;
+extern const bcstring be_const_str_CFG_X3A_X20loaded_X20_X27_X25s_X27;
+extern const bcstring be_const_str_CFG_X3A_X20loading_X20;
+extern const bcstring be_const_str_CFG_X3A_X20loading_X20_X27_X25s_X27;
+extern const bcstring be_const_str_CFG_X3A_X20multiple_X20autoconf_X20files_X20found_X2C_X20aborting_X20_X28_X27_X25s_X27_X20_X2B_X20_X27_X25s_X27_X29;
+extern const bcstring be_const_str_CFG_X3A_X20no_X20_X27_X2A_X2Eautoconf_X27_X20file_X20found;
+extern const bcstring be_const_str_CFG_X3A_X20ran_X20_X20;
+extern const bcstring be_const_str_CFG_X3A_X20removed_X20file_X20_X27_X25s_X27;
+extern const bcstring be_const_str_CFG_X3A_X20removing_X20autoconf_X20files;
+extern const bcstring be_const_str_CFG_X3A_X20removing_X20first_X20time_X20marker;
+extern const bcstring be_const_str_CFG_X3A_X20return_code_X3D_X25i;
+extern const bcstring be_const_str_CFG_X3A_X20running_X20;
+extern const bcstring be_const_str_CFG_X3A_X20skipping_X20_X27display_X2Eini_X27_X20because_X20already_X20present_X20in_X20file_X2Dsystem;
+extern const bcstring be_const_str_COLOR_BLACK;
+extern const bcstring be_const_str_COLOR_WHITE;
+extern const bcstring be_const_str_EC_C25519;
+extern const bcstring be_const_str_EVENT_DRAW_MAIN;
+extern const bcstring be_const_str_EVENT_DRAW_PART_BEGIN;
+extern const bcstring be_const_str_EVENT_DRAW_PART_END;
+extern const bcstring be_const_str_False;
+extern const bcstring be_const_str_GET;
+extern const bcstring be_const_str_HTTP_GET;
+extern const bcstring be_const_str_HTTP_POST;
+extern const bcstring be_const_str_I2C_Driver;
+extern const bcstring be_const_str_I2C_X3A;
+extern const bcstring be_const_str_LVG_X3A_X20call_X20to_X20unsupported_X20callback;
+extern const bcstring be_const_str_Leds;
+extern const bcstring be_const_str_MD5;
+extern const bcstring be_const_str_No_X20callback_X20available;
+extern const bcstring be_const_str_None;
+extern const bcstring be_const_str_OPTION_A;
+extern const bcstring be_const_str_OneWire;
+extern const bcstring be_const_str_PART_MAIN;
+extern const bcstring be_const_str_POST;
+extern const bcstring be_const_str_Parameter_X20error;
+extern const bcstring be_const_str_RES_OK;
+extern const bcstring be_const_str_Restart_X201;
+extern const bcstring be_const_str_SERIAL_5E1;
+extern const bcstring be_const_str_SERIAL_5E2;
+extern const bcstring be_const_str_SERIAL_5N1;
+extern const bcstring be_const_str_SERIAL_5N2;
+extern const bcstring be_const_str_SERIAL_5O1;
+extern const bcstring be_const_str_SERIAL_5O2;
+extern const bcstring be_const_str_SERIAL_6E1;
+extern const bcstring be_const_str_SERIAL_6E2;
+extern const bcstring be_const_str_SERIAL_6N1;
+extern const bcstring be_const_str_SERIAL_6N2;
+extern const bcstring be_const_str_SERIAL_6O1;
+extern const bcstring be_const_str_SERIAL_6O2;
+extern const bcstring be_const_str_SERIAL_7E1;
+extern const bcstring be_const_str_SERIAL_7E2;
+extern const bcstring be_const_str_SERIAL_7N1;
+extern const bcstring be_const_str_SERIAL_7N2;
+extern const bcstring be_const_str_SERIAL_7O1;
+extern const bcstring be_const_str_SERIAL_7O2;
+extern const bcstring be_const_str_SERIAL_8E1;
+extern const bcstring be_const_str_SERIAL_8E2;
+extern const bcstring be_const_str_SERIAL_8N1;
+extern const bcstring be_const_str_SERIAL_8N2;
+extern const bcstring be_const_str_SERIAL_8O1;
+extern const bcstring be_const_str_SERIAL_8O2;
+extern const bcstring be_const_str_SK6812_GRBW;
+extern const bcstring be_const_str_STATE_DEFAULT;
+extern const bcstring be_const_str_TAP_X3A_X20found_X20Tasmota_X20App_X20_X27_X25s_X27;
+extern const bcstring be_const_str_Tasmota;
+extern const bcstring be_const_str_Tele;
+extern const bcstring be_const_str_Timer;
+extern const bcstring be_const_str_True;
+extern const bcstring be_const_str_Unknown_X20command;
+extern const bcstring be_const_str_WS2812;
+extern const bcstring be_const_str_WS2812_GRB;
+extern const bcstring be_const_str_Wire;
+extern const bcstring be_const_str__;
+extern const bcstring be_const_str__X0A;
+extern const bcstring be_const_str__X20;
+extern const bcstring be_const_str__X21_X3D;
+extern const bcstring be_const_str__X21_X3D_X3D;
+extern const bcstring be_const_str__X23;
+extern const bcstring be_const_str__X23autoexec_X2Ebat;
+extern const bcstring be_const_str__X23autoexec_X2Ebe;
+extern const bcstring be_const_str__X23display_X2Eini;
+extern const bcstring be_const_str__X23init_X2Ebat;
+extern const bcstring be_const_str__X23preinit_X2Ebe;
+extern const bcstring be_const_str__X2502d_X25s_X2502d;
+extern const bcstring be_const_str__X2504d_X2D_X2502d_X2D_X2502dT_X2502d_X3A_X2502d_X3A_X2502d;
+extern const bcstring be_const_str__X25s_X2Eautoconf;
+extern const bcstring be_const_str__X26lt_X3BError_X3A_X20apply_X20new_X20or_X20remove_X26gt_X3B;
+extern const bcstring be_const_str__X26lt_X3BNone_X26gt_X3B;
+extern const bcstring be_const_str__X28_X29;
+extern const bcstring be_const_str__X2B;
+extern const bcstring be_const_str__X2C;
+extern const bcstring be_const_str__X2D_X2D_X3A_X2D_X2D;
+extern const bcstring be_const_str__X2E;
+extern const bcstring be_const_str__X2E_X2E;
+extern const bcstring be_const_str__X2Eautoconf;
+extern const bcstring be_const_str__X2Ebe;
+extern const bcstring be_const_str__X2Ebec;
+extern const bcstring be_const_str__X2Elen;
+extern const bcstring be_const_str__X2Ep;
+extern const bcstring be_const_str__X2Ep1;
+extern const bcstring be_const_str__X2Ep2;
+extern const bcstring be_const_str__X2Esize;
+extern const bcstring be_const_str__X2Etapp;
+extern const bcstring be_const_str__X2Ew;
+extern const bcstring be_const_str__X2F;
+extern const bcstring be_const_str__X2F_X2Eautoconf;
+extern const bcstring be_const_str__X2F_X3Frst_X3D;
+extern const bcstring be_const_str__X2Fac;
+extern const bcstring be_const_str__X3A;
+extern const bcstring be_const_str__X3C;
+extern const bcstring be_const_str__X3C_X2Fform_X3E_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3C_X2Fselect_X3E_X3Cp_X3E_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3C_X3D;
+extern const bcstring be_const_str__X3Cbutton_X20name_X3D_X27reapply_X27_X20class_X3D_X27button_X20bgrn_X27_X3ERe_X2Dapply_X20current_X20configuration_X3C_X2Fbutton_X3E;
+extern const bcstring be_const_str__X3Cbutton_X20name_X3D_X27zipapply_X27_X20class_X3D_X27button_X20bgrn_X27_X3EApply_X20configuration_X3C_X2Fbutton_X3E;
+extern const bcstring be_const_str__X3Cfieldset_X3E_X3Cstyle_X3E_X2Ebdis_X7Bbackground_X3A_X23888_X3B_X7D_X2Ebdis_X3Ahover_X7Bbackground_X3A_X23888_X3B_X7D_X3C_X2Fstyle_X3E;
+extern const bcstring be_const_str__X3Cinstance_X3A_X20_X25s_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29;
+extern const bcstring be_const_str__X3Clabel_X3EChoose_X20a_X20device_X20configuration_X3A_X3C_X2Flabel_X3E_X3Cbr_X3E;
+extern const bcstring be_const_str__X3Clambda_X3E;
+extern const bcstring be_const_str__X3Clegend_X3E_X3Cb_X20title_X3D_X27Autoconfiguration_X27_X3E_X26nbsp_X3BCurrent_X20auto_X2Dconfiguration_X3C_X2Fb_X3E_X3C_X2Flegend_X3E;
+extern const bcstring be_const_str__X3Clegend_X3E_X3Cb_X20title_X3D_X27New_X20autoconf_X27_X3E_X26nbsp_X3BSelect_X20new_X20auto_X2Dconfiguration_X3C_X2Fb_X3E_X3C_X2Flegend_X3E;
+extern const bcstring be_const_str__X3Coption_X20value_X3D_X27_X25s_X27_X3E_X25s_X3C_X2Foption_X3E;
+extern const bcstring be_const_str__X3Coption_X20value_X3D_X27reset_X27_X3E_X26lt_X3BRemove_X20autoconf_X26gt_X3B_X3C_X2Foption_X3E;
+extern const bcstring be_const_str__X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3Cp_X3ECurrent_X20configuration_X3A_X20_X3C_X2Fp_X3E_X3Cp_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27ac_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E_X26_X23129668_X3B_X20Auto_X2Dconfiguration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3Cp_X3E_X3Cform_X20id_X3Dreapply_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27_X2Fac_X27_X20method_X3D_X27post_X27_X20;
+extern const bcstring be_const_str__X3Cp_X3E_X3Cform_X20id_X3Dzip_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27_X2Fac_X27_X20method_X3D_X27post_X27_X20;
+extern const bcstring be_const_str__X3Cp_X3E_X3Csmall_X3E_X26nbsp_X3B_X28This_X20feature_X20requires_X20an_X20internet_X20connection_X29_X3C_X2Fsmall_X3E_X3C_X2Fp_X3E;
+extern const bcstring be_const_str__X3Cselect_X20name_X3D_X27zip_X27_X3E;
+extern const bcstring be_const_str__X3D;
+extern const bcstring be_const_str__X3D_X3C_X3E_X21;
+extern const bcstring be_const_str__X3D_X3D;
+extern const bcstring be_const_str__X3E;
+extern const bcstring be_const_str__X3E_X3D;
+extern const bcstring be_const_str__X3F;
+extern const bcstring be_const_str__X5B;
+extern const bcstring be_const_str__X5D;
+extern const bcstring be_const_str__X7B;
+extern const bcstring be_const_str__X7B_X7D;
+extern const bcstring be_const_str__X7Bs_X7DBatt_X20Current_X7Bm_X7D_X25_X2E1f_X20mA_X7Be_X7D;
+extern const bcstring be_const_str__X7Bs_X7DBatt_X20Voltage_X7Bm_X7D_X25_X2E3f_X20V_X7Be_X7D;
+extern const bcstring be_const_str__X7Bs_X7DTemp_X20AXP_X7Bm_X7D_X25_X2E1f_X20_XB0C_X7Be_X7D;
+extern const bcstring be_const_str__X7Bs_X7DVBus_X20Current_X7Bm_X7D_X25_X2E1f_X20mA_X7Be_X7D;
+extern const bcstring be_const_str__X7Bs_X7DVBus_X20Voltage_X7Bm_X7D_X25_X2E3f_X20V_X7Be_X7D;
+extern const bcstring be_const_str__X7D;
+extern const bcstring be_const_str___iterator__;
+extern const bcstring be_const_str___lower__;
+extern const bcstring be_const_str___upper__;
+extern const bcstring be_const_str__anonymous_;
+extern const bcstring be_const_str__archive;
+extern const bcstring be_const_str__available;
+extern const bcstring be_const_str__begin_transmission;
+extern const bcstring be_const_str__buffer;
+extern const bcstring be_const_str__cb;
+extern const bcstring be_const_str__ccmd;
+extern const bcstring be_const_str__class;
+extern const bcstring be_const_str__cmd;
+extern const bcstring be_const_str__debug_present;
+extern const bcstring be_const_str__def;
+extern const bcstring be_const_str__dirty;
+extern const bcstring be_const_str__drivers;
+extern const bcstring be_const_str__end_transmission;
+extern const bcstring be_const_str__energy;
+extern const bcstring be_const_str__error;
+extern const bcstring be_const_str__filename;
+extern const bcstring be_const_str__get_cb;
+extern const bcstring be_const_str__global_addr;
+extern const bcstring be_const_str__global_def;
+extern const bcstring be_const_str__lvgl;
+extern const bcstring be_const_str__p;
+extern const bcstring be_const_str__persist_X2Ejson;
+extern const bcstring be_const_str__ptr;
+extern const bcstring be_const_str__read;
+extern const bcstring be_const_str__request_from;
extern const bcstring be_const_str__rules;
-extern const bcstring be_const_str_dot_p1;
-extern const bcstring be_const_str_find;
-extern const bcstring be_const_str_name;
-extern const bcstring be_const_str_toptr;
+extern const bcstring be_const_str__settings_def;
+extern const bcstring be_const_str__settings_ptr;
+extern const bcstring be_const_str__t;
+extern const bcstring be_const_str__timers;
+extern const bcstring be_const_str__write;
+extern const bcstring be_const_str_a;
+extern const bcstring be_const_str_abs;
+extern const bcstring be_const_str_acos;
+extern const bcstring be_const_str_add;
+extern const bcstring be_const_str_add_anim;
+extern const bcstring be_const_str_add_cmd;
+extern const bcstring be_const_str_add_driver;
+extern const bcstring be_const_str_add_header;
+extern const bcstring be_const_str_add_rule;
+extern const bcstring be_const_str_addr;
+extern const bcstring be_const_str_allocated;
+extern const bcstring be_const_str_alternate;
+extern const bcstring be_const_str_animate;
+extern const bcstring be_const_str_animators;
+extern const bcstring be_const_str_arch;
+extern const bcstring be_const_str_area;
+extern const bcstring be_const_str_arg;
+extern const bcstring be_const_str_arg_X20must_X20be_X20a_X20subclass_X20of_X20lv_obj;
extern const bcstring be_const_str_arg_name;
+extern const bcstring be_const_str_arg_size;
+extern const bcstring be_const_str_as;
+extern const bcstring be_const_str_asin;
+extern const bcstring be_const_str_assert;
+extern const bcstring be_const_str_asstring;
+extern const bcstring be_const_str_atan;
+extern const bcstring be_const_str_atan2;
+extern const bcstring be_const_str_atleast1;
+extern const bcstring be_const_str_attrdump;
+extern const bcstring be_const_str_autoexec;
+extern const bcstring be_const_str_autorun;
+extern const bcstring be_const_str_available;
+extern const bcstring be_const_str_b;
+extern const bcstring be_const_str_back_forth;
+extern const bcstring be_const_str_base_class;
+extern const bcstring be_const_str_battery_present;
+extern const bcstring be_const_str_begin;
+extern const bcstring be_const_str_bool;
+extern const bcstring be_const_str_break;
+extern const bcstring be_const_str_bri;
+extern const bcstring be_const_str_bus;
+extern const bcstring be_const_str_button_pressed;
extern const bcstring be_const_str_byte;
-extern const bcstring be_const_str_gc;
+extern const bcstring be_const_str_bytes;
+extern const bcstring be_const_str_c;
+extern const bcstring be_const_str_call;
+extern const bcstring be_const_str_call_native;
+extern const bcstring be_const_str_calldepth;
+extern const bcstring be_const_str_can_show;
+extern const bcstring be_const_str_cb_dispatch;
+extern const bcstring be_const_str_cb_do_nothing;
+extern const bcstring be_const_str_cb_event_closure;
+extern const bcstring be_const_str_cb_obj;
+extern const bcstring be_const_str_ceil;
+extern const bcstring be_const_str_char;
+extern const bcstring be_const_str_chars_in_string;
+extern const bcstring be_const_str_check_privileged_access;
+extern const bcstring be_const_str_class;
+extern const bcstring be_const_str_class_init_obj;
+extern const bcstring be_const_str_classname;
+extern const bcstring be_const_str_classof;
+extern const bcstring be_const_str_clear;
+extern const bcstring be_const_str_clear_first_time;
+extern const bcstring be_const_str_clear_to;
+extern const bcstring be_const_str_close;
+extern const bcstring be_const_str_closure;
+extern const bcstring be_const_str_cmd;
+extern const bcstring be_const_str_cmd_res;
+extern const bcstring be_const_str_code;
+extern const bcstring be_const_str_codedump;
+extern const bcstring be_const_str_collect;
+extern const bcstring be_const_str_color;
+extern const bcstring be_const_str_compile;
+extern const bcstring be_const_str_compress;
+extern const bcstring be_const_str_concat;
+extern const bcstring be_const_str_connect;
+extern const bcstring be_const_str_connected;
+extern const bcstring be_const_str_connection_error;
+extern const bcstring be_const_str_constructor_cb;
+extern const bcstring be_const_str_contains;
+extern const bcstring be_const_str_content_button;
+extern const bcstring be_const_str_content_flush;
+extern const bcstring be_const_str_content_send;
+extern const bcstring be_const_str_content_send_style;
+extern const bcstring be_const_str_content_start;
+extern const bcstring be_const_str_content_stop;
+extern const bcstring be_const_str_continue;
+extern const bcstring be_const_str_copy;
+extern const bcstring be_const_str_cos;
+extern const bcstring be_const_str_cosh;
+extern const bcstring be_const_str_couldn_X27t_X20not_X20initialize_X20noepixelbus;
extern const bcstring be_const_str_count;
extern const bcstring be_const_str_counters;
-extern const bcstring be_const_str_tob64;
-extern const bcstring be_const_str_AudioFileSourceFS;
-extern const bcstring be_const_str_get_free_heap;
-extern const bcstring be_const_str_atan2;
-extern const bcstring be_const_str_set_timeouts;
-extern const bcstring be_const_str_toupper;
-extern const bcstring be_const_str__ccmd;
-extern const bcstring be_const_str_content_send;
-extern const bcstring be_const_str_flush;
-extern const bcstring be_const_str_true;
+extern const bcstring be_const_str_create_custom_widget;
+extern const bcstring be_const_str_create_matrix;
+extern const bcstring be_const_str_create_segment;
+extern const bcstring be_const_str_ctor;
+extern const bcstring be_const_str_ctypes_bytes;
+extern const bcstring be_const_str_ctypes_bytes_dyn;
+extern const bcstring be_const_str_dac_voltage;
+extern const bcstring be_const_str_day;
+extern const bcstring be_const_str_debug;
+extern const bcstring be_const_str_decompress;
+extern const bcstring be_const_str_decrypt;
+extern const bcstring be_const_str_def;
+extern const bcstring be_const_str_deg;
+extern const bcstring be_const_str_deinit;
+extern const bcstring be_const_str_del;
+extern const bcstring be_const_str_delay;
+extern const bcstring be_const_str_delete_all_configs;
+extern const bcstring be_const_str_depower;
+extern const bcstring be_const_str_deregister_obj;
+extern const bcstring be_const_str_destructor_cb;
extern const bcstring be_const_str_detect;
-extern const bcstring be_const_str_SERIAL_8O2;
+extern const bcstring be_const_str_detected_X20on_X20bus;
+extern const bcstring be_const_str_digital_read;
+extern const bcstring be_const_str_digital_write;
+extern const bcstring be_const_str_dirty;
+extern const bcstring be_const_str_display;
+extern const bcstring be_const_str_display_X2Eini;
+extern const bcstring be_const_str_do;
+extern const bcstring be_const_str_draw_arc;
+extern const bcstring be_const_str_draw_line;
+extern const bcstring be_const_str_draw_line_dsc;
+extern const bcstring be_const_str_draw_line_dsc_init;
+extern const bcstring be_const_str_due;
+extern const bcstring be_const_str_dump;
+extern const bcstring be_const_str_duration;
+extern const bcstring be_const_str_editable;
+extern const bcstring be_const_str_elif;
+extern const bcstring be_const_str_else;
+extern const bcstring be_const_str_enabled;
+extern const bcstring be_const_str_encrypt;
+extern const bcstring be_const_str_end;
+extern const bcstring be_const_str_energy_struct;
+extern const bcstring be_const_str_engine;
+extern const bcstring be_const_str_erase;
+extern const bcstring be_const_str_escape;
+extern const bcstring be_const_str_eth;
+extern const bcstring be_const_str_event;
+extern const bcstring be_const_str_event_cb;
+extern const bcstring be_const_str_event_send;
+extern const bcstring be_const_str_every_100ms;
+extern const bcstring be_const_str_every_50ms;
+extern const bcstring be_const_str_every_second;
+extern const bcstring be_const_str_except;
+extern const bcstring be_const_str_exec_cmd;
+extern const bcstring be_const_str_exec_rules;
+extern const bcstring be_const_str_exec_tele;
+extern const bcstring be_const_str_exists;
+extern const bcstring be_const_str_exp;
+extern const bcstring be_const_str_f;
+extern const bcstring be_const_str_false;
+extern const bcstring be_const_str_file;
+extern const bcstring be_const_str_file_X20extension_X20is_X20not_X20_X27_X2Ebe_X27_X20or_X20_X27_X2Ebec_X27;
+extern const bcstring be_const_str_files;
+extern const bcstring be_const_str_find;
+extern const bcstring be_const_str_find_key_i;
+extern const bcstring be_const_str_find_op;
+extern const bcstring be_const_str_finish;
+extern const bcstring be_const_str_floor;
+extern const bcstring be_const_str_flush;
+extern const bcstring be_const_str_for;
+extern const bcstring be_const_str_format;
+extern const bcstring be_const_str_from_to;
+extern const bcstring be_const_str_fromb64;
+extern const bcstring be_const_str_fromptr;
+extern const bcstring be_const_str_fromstring;
+extern const bcstring be_const_str_function;
+extern const bcstring be_const_str_gamma;
+extern const bcstring be_const_str_gamma10;
+extern const bcstring be_const_str_gamma8;
+extern const bcstring be_const_str_gc;
+extern const bcstring be_const_str_gen_cb;
+extern const bcstring be_const_str_get;
+extern const bcstring be_const_str_get_alternate;
+extern const bcstring be_const_str_get_aps_voltage;
+extern const bcstring be_const_str_get_bat_charge_current;
+extern const bcstring be_const_str_get_bat_current;
+extern const bcstring be_const_str_get_bat_power;
+extern const bcstring be_const_str_get_bat_voltage;
+extern const bcstring be_const_str_get_battery_chargin_status;
+extern const bcstring be_const_str_get_bri;
+extern const bcstring be_const_str_get_coords;
+extern const bcstring be_const_str_get_current_module_name;
+extern const bcstring be_const_str_get_current_module_path;
+extern const bcstring be_const_str_get_free_heap;
+extern const bcstring be_const_str_get_height;
+extern const bcstring be_const_str_get_input_power_status;
+extern const bcstring be_const_str_get_light;
+extern const bcstring be_const_str_get_object_from_ptr;
+extern const bcstring be_const_str_get_option;
+extern const bcstring be_const_str_get_percentage;
+extern const bcstring be_const_str_get_pixel_color;
+extern const bcstring be_const_str_get_power;
+extern const bcstring be_const_str_get_size;
+extern const bcstring be_const_str_get_string;
+extern const bcstring be_const_str_get_style_bg_color;
+extern const bcstring be_const_str_get_style_line_color;
+extern const bcstring be_const_str_get_style_pad_right;
+extern const bcstring be_const_str_get_switch;
+extern const bcstring be_const_str_get_tasmota;
+extern const bcstring be_const_str_get_temp;
+extern const bcstring be_const_str_get_vbus_current;
+extern const bcstring be_const_str_get_vbus_voltage;
+extern const bcstring be_const_str_get_warning_level;
+extern const bcstring be_const_str_get_width;
+extern const bcstring be_const_str_getbits;
+extern const bcstring be_const_str_geti;
+extern const bcstring be_const_str_global;
+extern const bcstring be_const_str_gpio;
+extern const bcstring be_const_str_group_def;
+extern const bcstring be_const_str_h;
+extern const bcstring be_const_str_has;
+extern const bcstring be_const_str_has_arg;
+extern const bcstring be_const_str_height_def;
+extern const bcstring be_const_str_hex;
+extern const bcstring be_const_str_hour;
+extern const bcstring be_const_str_hs2rgb;
+extern const bcstring be_const_str_https_X3A_X2F_X2Fraw_X2Egithubusercontent_X2Ecom_X2Ftasmota_X2Fautoconf_X2Fmain_X2F_X25s_X2F_X25s_X2Eautoconf;
+extern const bcstring be_const_str_https_X3A_X2F_X2Fraw_X2Egithubusercontent_X2Ecom_X2Ftasmota_X2Fautoconf_X2Fmain_X2F_X25s_manifest_X2Ejson;
+extern const bcstring be_const_str_i2c_enabled;
+extern const bcstring be_const_str_id;
+extern const bcstring be_const_str_if;
+extern const bcstring be_const_str_imax;
+extern const bcstring be_const_str_imin;
+extern const bcstring be_const_str_import;
+extern const bcstring be_const_str_init;
+extern const bcstring be_const_str_init_draw_line_dsc;
+extern const bcstring be_const_str_input;
+extern const bcstring be_const_str_ins_goto;
+extern const bcstring be_const_str_ins_ramp;
+extern const bcstring be_const_str_ins_time;
+extern const bcstring be_const_str_insert;
+extern const bcstring be_const_str_instance;
+extern const bcstring be_const_str_instance_size;
+extern const bcstring be_const_str_int;
+extern const bcstring be_const_str_internal_error;
+extern const bcstring be_const_str_introspect;
+extern const bcstring be_const_str_invalidate;
+extern const bcstring be_const_str_io_error;
+extern const bcstring be_const_str_ip;
+extern const bcstring be_const_str_is_dirty;
+extern const bcstring be_const_str_is_first_time;
+extern const bcstring be_const_str_is_running;
+extern const bcstring be_const_str_isinstance;
+extern const bcstring be_const_str_isnan;
+extern const bcstring be_const_str_isrunning;
+extern const bcstring be_const_str_issubclass;
+extern const bcstring be_const_str_item;
+extern const bcstring be_const_str_iter;
+extern const bcstring be_const_str_json;
+extern const bcstring be_const_str_json_append;
+extern const bcstring be_const_str_json_fdump;
+extern const bcstring be_const_str_json_fdump_any;
+extern const bcstring be_const_str_json_fdump_list;
+extern const bcstring be_const_str_json_fdump_map;
+extern const bcstring be_const_str_k;
+extern const bcstring be_const_str_keys;
+extern const bcstring be_const_str_kv;
+extern const bcstring be_const_str_last_modified;
+extern const bcstring be_const_str_leds;
+extern const bcstring be_const_str_length_X20in_X20bits_X20must_X20be_X20between_X200_X20and_X2032;
+extern const bcstring be_const_str_light;
+extern const bcstring be_const_str_line_dsc;
+extern const bcstring be_const_str_list;
+extern const bcstring be_const_str_listdir;
+extern const bcstring be_const_str_load;
+extern const bcstring be_const_str_load_templates;
+extern const bcstring be_const_str_local;
+extern const bcstring be_const_str_log;
+extern const bcstring be_const_str_log10;
+extern const bcstring be_const_str_loop;
+extern const bcstring be_const_str_lower;
+extern const bcstring be_const_str_lv;
+extern const bcstring be_const_str_lv_event;
+extern const bcstring be_const_str_lv_event_cb;
+extern const bcstring be_const_str_lv_obj;
+extern const bcstring be_const_str_lv_obj_class;
+extern const bcstring be_const_str_lvgl_event_dispatch;
+extern const bcstring be_const_str_map;
+extern const bcstring be_const_str_math;
+extern const bcstring be_const_str_matrix;
+extern const bcstring be_const_str_member;
+extern const bcstring be_const_str_members;
+extern const bcstring be_const_str_memory;
+extern const bcstring be_const_str_millis;
+extern const bcstring be_const_str_min;
+extern const bcstring be_const_str_minute;
+extern const bcstring be_const_str_module;
+extern const bcstring be_const_str_month;
+extern const bcstring be_const_str_name;
+extern const bcstring be_const_str_nan;
+extern const bcstring be_const_str_nil;
+extern const bcstring be_const_str_no_X20GPIO_X20specified_X20for_X20neopixelbus;
+extern const bcstring be_const_str_null_cb;
+extern const bcstring be_const_str_number;
+extern const bcstring be_const_str_obj_class_create_obj;
+extern const bcstring be_const_str_obj_event_base;
+extern const bcstring be_const_str_offset;
+extern const bcstring be_const_str_offseta;
+extern const bcstring be_const_str_on;
+extern const bcstring be_const_str_onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E;
+extern const bcstring be_const_str_onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20change_X20the_X20current_X20configuration_X20and_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E;
+extern const bcstring be_const_str_open;
+extern const bcstring be_const_str_out_X20of_X20range;
+extern const bcstring be_const_str_p1;
+extern const bcstring be_const_str_p2;
+extern const bcstring be_const_str_page_autoconf_ctl;
+extern const bcstring be_const_str_page_autoconf_mgr;
+extern const bcstring be_const_str_param;
+extern const bcstring be_const_str_path;
+extern const bcstring be_const_str_pc;
+extern const bcstring be_const_str_pc_abs;
+extern const bcstring be_const_str_pc_rel;
+extern const bcstring be_const_str_percentage;
+extern const bcstring be_const_str_persist;
+extern const bcstring be_const_str_persist_X2E_p_X20is_X20not_X20a_X20map;
+extern const bcstring be_const_str_pi;
+extern const bcstring be_const_str_pin;
+extern const bcstring be_const_str_pin_mode;
+extern const bcstring be_const_str_pin_used;
+extern const bcstring be_const_str_pixel_count;
+extern const bcstring be_const_str_pixel_size;
+extern const bcstring be_const_str_pixels_buffer;
+extern const bcstring be_const_str_point;
+extern const bcstring be_const_str_pop;
+extern const bcstring be_const_str_pop_path;
+extern const bcstring be_const_str_pow;
+extern const bcstring be_const_str_preinit;
+extern const bcstring be_const_str_print;
+extern const bcstring be_const_str_public_key;
+extern const bcstring be_const_str_publish;
+extern const bcstring be_const_str_publish_result;
+extern const bcstring be_const_str_push;
+extern const bcstring be_const_str_push_path;
+extern const bcstring be_const_str_quality;
+extern const bcstring be_const_str_r;
+extern const bcstring be_const_str_rad;
+extern const bcstring be_const_str_raise;
+extern const bcstring be_const_str_rand;
+extern const bcstring be_const_str_range;
+extern const bcstring be_const_str_read;
+extern const bcstring be_const_str_read12;
+extern const bcstring be_const_str_read13;
+extern const bcstring be_const_str_read24;
+extern const bcstring be_const_str_read32;
+extern const bcstring be_const_str_read8;
+extern const bcstring be_const_str_read_bytes;
+extern const bcstring be_const_str_read_sensors;
+extern const bcstring be_const_str_readbytes;
+extern const bcstring be_const_str_readline;
+extern const bcstring be_const_str_real;
+extern const bcstring be_const_str_reapply;
+extern const bcstring be_const_str_redirect;
+extern const bcstring be_const_str_reduce;
+extern const bcstring be_const_str_refr_size;
+extern const bcstring be_const_str_register_obj;
+extern const bcstring be_const_str_remove;
+extern const bcstring be_const_str_remove_cmd;
+extern const bcstring be_const_str_remove_driver;
+extern const bcstring be_const_str_remove_rule;
+extern const bcstring be_const_str_remove_timer;
+extern const bcstring be_const_str_reset;
+extern const bcstring be_const_str_reset_search;
+extern const bcstring be_const_str_resize;
+extern const bcstring be_const_str_resolvecmnd;
+extern const bcstring be_const_str_resp_cmnd;
+extern const bcstring be_const_str_resp_cmnd_done;
+extern const bcstring be_const_str_resp_cmnd_error;
+extern const bcstring be_const_str_resp_cmnd_failed;
+extern const bcstring be_const_str_resp_cmnd_str;
+extern const bcstring be_const_str_response_append;
+extern const bcstring be_const_str_return;
+extern const bcstring be_const_str_return_X20code_X3D_X25i;
+extern const bcstring be_const_str_reverse;
+extern const bcstring be_const_str_reverse_gamma10;
+extern const bcstring be_const_str_rotate;
+extern const bcstring be_const_str_round_end;
+extern const bcstring be_const_str_round_start;
+extern const bcstring be_const_str_rtc;
+extern const bcstring be_const_str_rule;
+extern const bcstring be_const_str_run;
+extern const bcstring be_const_str_run_bat;
+extern const bcstring be_const_str_run_deferred;
+extern const bcstring be_const_str_running;
+extern const bcstring be_const_str_save;
+extern const bcstring be_const_str_save_before_restart;
+extern const bcstring be_const_str_scale_uint;
+extern const bcstring be_const_str_scan;
+extern const bcstring be_const_str_search;
+extern const bcstring be_const_str_sec;
+extern const bcstring be_const_str_seg7_font;
+extern const bcstring be_const_str_select;
+extern const bcstring be_const_str_serial;
+extern const bcstring be_const_str_set;
+extern const bcstring be_const_str_set_alternate;
+extern const bcstring be_const_str_set_auth;
+extern const bcstring be_const_str_set_bri;
+extern const bcstring be_const_str_set_chg_current;
+extern const bcstring be_const_str_set_dc_voltage;
+extern const bcstring be_const_str_set_dcdc_enable;
+extern const bcstring be_const_str_set_first_time;
+extern const bcstring be_const_str_set_height;
+extern const bcstring be_const_str_set_ldo_enable;
+extern const bcstring be_const_str_set_ldo_voltage;
+extern const bcstring be_const_str_set_light;
+extern const bcstring be_const_str_set_matrix_pixel_color;
+extern const bcstring be_const_str_set_percentage;
+extern const bcstring be_const_str_set_pixel_color;
+extern const bcstring be_const_str_set_power;
+extern const bcstring be_const_str_set_style_bg_color;
+extern const bcstring be_const_str_set_style_line_color;
+extern const bcstring be_const_str_set_style_pad_right;
+extern const bcstring be_const_str_set_style_text_font;
+extern const bcstring be_const_str_set_text;
+extern const bcstring be_const_str_set_time;
+extern const bcstring be_const_str_set_timeouts;
+extern const bcstring be_const_str_set_timer;
+extern const bcstring be_const_str_set_useragent;
+extern const bcstring be_const_str_set_width;
+extern const bcstring be_const_str_set_x;
+extern const bcstring be_const_str_set_y;
+extern const bcstring be_const_str_setbits;
+extern const bcstring be_const_str_seti;
+extern const bcstring be_const_str_setitem;
+extern const bcstring be_const_str_setmember;
+extern const bcstring be_const_str_setrange;
+extern const bcstring be_const_str_settings;
+extern const bcstring be_const_str_shared_key;
+extern const bcstring be_const_str_show;
+extern const bcstring be_const_str_sin;
+extern const bcstring be_const_str_sinh;
+extern const bcstring be_const_str_size;
+extern const bcstring be_const_str_skip;
+extern const bcstring be_const_str_solidified;
extern const bcstring be_const_str_split;
+extern const bcstring be_const_str_sqrt;
+extern const bcstring be_const_str_srand;
+extern const bcstring be_const_str_start;
+extern const bcstring be_const_str_state;
+extern const bcstring be_const_str_static;
+extern const bcstring be_const_str_stop;
+extern const bcstring be_const_str_stop_iteration;
+extern const bcstring be_const_str_str;
+extern const bcstring be_const_str_strftime;
+extern const bcstring be_const_str_string;
+extern const bcstring be_const_str_strip;
+extern const bcstring be_const_str_strptime;
+extern const bcstring be_const_str_super;
+extern const bcstring be_const_str_sys;
+extern const bcstring be_const_str_tag;
+extern const bcstring be_const_str_tan;
+extern const bcstring be_const_str_tanh;
+extern const bcstring be_const_str_target;
+extern const bcstring be_const_str_target_search;
+extern const bcstring be_const_str_tasmota;
+extern const bcstring be_const_str_tasmota_X2Eget_light_X28_X29_X20is_X20deprecated_X2C_X20use_X20light_X2Eget_X28_X29;
+extern const bcstring be_const_str_tasmota_X2Eset_light_X28_X29_X20is_X20deprecated_X2C_X20use_X20light_X2Eset_X28_X29;
+extern const bcstring be_const_str_tcpclient;
+extern const bcstring be_const_str_tele;
+extern const bcstring be_const_str_the_X20second_X20argument_X20is_X20not_X20a_X20function;
+extern const bcstring be_const_str_time_dump;
+extern const bcstring be_const_str_time_reached;
+extern const bcstring be_const_str_time_str;
+extern const bcstring be_const_str_to_gamma;
+extern const bcstring be_const_str_tob64;
+extern const bcstring be_const_str_tolower;
+extern const bcstring be_const_str_tomap;
+extern const bcstring be_const_str_top;
+extern const bcstring be_const_str_toptr;
+extern const bcstring be_const_str_tostring;
+extern const bcstring be_const_str_toupper;
+extern const bcstring be_const_str_tr;
+extern const bcstring be_const_str_traceback;
+extern const bcstring be_const_str_true;
+extern const bcstring be_const_str_try;
+extern const bcstring be_const_str_try_rule;
+extern const bcstring be_const_str_type;
+extern const bcstring be_const_str_unknown_X20instruction;
+extern const bcstring be_const_str_update;
+extern const bcstring be_const_str_upper;
+extern const bcstring be_const_str_url_encode;
+extern const bcstring be_const_str_v;
+extern const bcstring be_const_str_value;
+extern const bcstring be_const_str_value_error;
+extern const bcstring be_const_str_valuer_error;
+extern const bcstring be_const_str_var;
+extern const bcstring be_const_str_w;
+extern const bcstring be_const_str_wd;
+extern const bcstring be_const_str_web_add_button;
+extern const bcstring be_const_str_web_add_config_button;
+extern const bcstring be_const_str_web_add_console_button;
+extern const bcstring be_const_str_web_add_handler;
+extern const bcstring be_const_str_web_add_main_button;
+extern const bcstring be_const_str_web_add_management_button;
+extern const bcstring be_const_str_web_send;
+extern const bcstring be_const_str_web_send_decimal;
+extern const bcstring be_const_str_web_sensor;
+extern const bcstring be_const_str_webclient;
+extern const bcstring be_const_str_webserver;
+extern const bcstring be_const_str_while;
+extern const bcstring be_const_str_widget_cb;
+extern const bcstring be_const_str_widget_constructor;
+extern const bcstring be_const_str_widget_ctor_cb;
+extern const bcstring be_const_str_widget_ctor_impl;
+extern const bcstring be_const_str_widget_destructor;
+extern const bcstring be_const_str_widget_dtor_cb;
+extern const bcstring be_const_str_widget_dtor_impl;
+extern const bcstring be_const_str_widget_editable;
+extern const bcstring be_const_str_widget_event;
+extern const bcstring be_const_str_widget_event_cb;
+extern const bcstring be_const_str_widget_event_impl;
+extern const bcstring be_const_str_widget_group_def;
+extern const bcstring be_const_str_widget_height_def;
+extern const bcstring be_const_str_widget_instance_size;
+extern const bcstring be_const_str_widget_struct_by_class;
+extern const bcstring be_const_str_widget_struct_default;
+extern const bcstring be_const_str_widget_width_def;
+extern const bcstring be_const_str_width;
+extern const bcstring be_const_str_width_def;
+extern const bcstring be_const_str_wifi;
+extern const bcstring be_const_str_wire;
+extern const bcstring be_const_str_wire1;
+extern const bcstring be_const_str_wire2;
+extern const bcstring be_const_str_wire_scan;
+extern const bcstring be_const_str_write;
+extern const bcstring be_const_str_write8;
+extern const bcstring be_const_str_write_bit;
+extern const bcstring be_const_str_write_bytes;
+extern const bcstring be_const_str_write_file;
+extern const bcstring be_const_str_write_gpio;
+extern const bcstring be_const_str_x;
+extern const bcstring be_const_str_x1;
+extern const bcstring be_const_str_y;
+extern const bcstring be_const_str_y1;
+extern const bcstring be_const_str_year;
+extern const bcstring be_const_str_yield;
+extern const bcstring be_const_str_zero;
+extern const bcstring be_const_str_zip;
diff --git a/lib/libesp32/Berry/generate/be_const_strtab_def.h b/lib/libesp32/Berry/generate/be_const_strtab_def.h
index 16488ae94..44676a35e 100644
--- a/lib/libesp32/Berry/generate/be_const_strtab_def.h
+++ b/lib/libesp32/Berry/generate/be_const_strtab_def.h
@@ -1,523 +1,1112 @@
-be_define_const_str(SERIAL_6N2, "SERIAL_6N2", 148562844u, 0, 10, &be_const_str__begin_transmission);
-be_define_const_str(_begin_transmission, "_begin_transmission", 2779461176u, 0, 19, &be_const_str_set_light);
-be_define_const_str(set_light, "set_light", 3176076152u, 0, 9, NULL);
-be_define_const_str(time_reached, "time_reached", 2075136773u, 0, 12, NULL);
-be_define_const_str(SERIAL_5E2, "SERIAL_5E2", 1180552854u, 0, 10, &be_const_str___lower__);
-be_define_const_str(__lower__, "__lower__", 123855590u, 0, 9, NULL);
-be_define_const_str(SERIAL_7O1, "SERIAL_7O1", 1823802675u, 0, 10, &be_const_str_getbits);
-be_define_const_str(getbits, "getbits", 3094168979u, 0, 7, &be_const_str_input);
-be_define_const_str(input, "input", 4191711099u, 0, 5, NULL);
-be_define_const_str(dot_size, ".size", 1965188224u, 0, 5, &be_const_str_publish_result);
-be_define_const_str(publish_result, "publish_result", 2013351252u, 0, 14, &be_const_str_web_send_decimal);
-be_define_const_str(web_send_decimal, "web_send_decimal", 1407210204u, 0, 16, &be_const_str_def);
-be_define_const_str(def, "def", 3310976652u, 55, 3, NULL);
-be_define_const_str(_cmd, "_cmd", 3419822142u, 0, 4, &be_const_str_begin);
-be_define_const_str(begin, "begin", 1748273790u, 0, 5, &be_const_str_resp_cmnd);
-be_define_const_str(resp_cmnd, "resp_cmnd", 2869459626u, 0, 9, NULL);
-be_define_const_str(assert, "assert", 2774883451u, 0, 6, &be_const_str_set);
-be_define_const_str(set, "set", 3324446467u, 0, 3, &be_const_str_tag);
-be_define_const_str(tag, "tag", 2516003219u, 0, 3, NULL);
-be_define_const_str(check_privileged_access, "check_privileged_access", 3692933968u, 0, 23, &be_const_str_kv);
-be_define_const_str(kv, "kv", 1497177492u, 0, 2, &be_const_str_publish);
-be_define_const_str(publish, "publish", 264247304u, 0, 7, &be_const_str_read32);
-be_define_const_str(read32, "read32", 1741276240u, 0, 6, NULL);
-be_define_const_str(load, "load", 3859241449u, 0, 4, &be_const_str_read13);
-be_define_const_str(read13, "read13", 12887293u, 0, 6, &be_const_str_search);
-be_define_const_str(search, "search", 2150836393u, 0, 6, NULL);
-be_define_const_str(dac_voltage, "dac_voltage", 1552257222u, 0, 11, &be_const_str_finish);
-be_define_const_str(finish, "finish", 1494643858u, 0, 6, &be_const_str_hex);
-be_define_const_str(hex, "hex", 4273249610u, 0, 3, &be_const_str_isinstance);
-be_define_const_str(isinstance, "isinstance", 3669352738u, 0, 10, &be_const_str_rand);
-be_define_const_str(rand, "rand", 2711325910u, 0, 4, NULL);
-be_define_const_str(POST, "POST", 1929554311u, 0, 4, &be_const_str_SERIAL_6E2);
-be_define_const_str(SERIAL_6E2, "SERIAL_6E2", 317471867u, 0, 10, NULL);
-be_define_const_str(classname, "classname", 1998589948u, 0, 9, NULL);
-be_define_const_str(_global_def, "_global_def", 646007001u, 0, 11, &be_const_str_open);
-be_define_const_str(open, "open", 3546203337u, 0, 4, &be_const_str_redirect);
-be_define_const_str(redirect, "redirect", 389758641u, 0, 8, NULL);
-be_define_const_str(AES_GCM, "AES_GCM", 3832208678u, 0, 7, &be_const_str_resp_cmnd_failed);
-be_define_const_str(resp_cmnd_failed, "resp_cmnd_failed", 2136281562u, 0, 16, &be_const_str_reverse_gamma10);
-be_define_const_str(reverse_gamma10, "reverse_gamma10", 739112262u, 0, 15, NULL);
-be_define_const_str(strftime, "strftime", 187738851u, 0, 8, NULL);
-be_define_const_str(insert, "insert", 3332609576u, 0, 6, &be_const_str_false);
-be_define_const_str(false, "false", 184981848u, 62, 5, NULL);
-be_define_const_str(arg_size, "arg_size", 3310243257u, 0, 8, &be_const_str_serial);
-be_define_const_str(serial, "serial", 3687697785u, 0, 6, NULL);
-be_define_const_str(OneWire, "OneWire", 2298990722u, 0, 7, &be_const_str_scale_uint);
-be_define_const_str(scale_uint, "scale_uint", 3090811094u, 0, 10, NULL);
-be_define_const_str(return, "return", 2246981567u, 60, 6, NULL);
-be_define_const_str(wire, "wire", 4082753944u, 0, 4, &be_const_str_write_bytes);
-be_define_const_str(write_bytes, "write_bytes", 1227543792u, 0, 11, NULL);
-be_define_const_str(_global_addr, "_global_addr", 533766721u, 0, 12, &be_const_str_exec_tele);
-be_define_const_str(exec_tele, "exec_tele", 1020751601u, 0, 9, &be_const_str_target_search);
-be_define_const_str(target_search, "target_search", 1947846553u, 0, 13, NULL);
-be_define_const_str(gamma8, "gamma8", 3802843830u, 0, 6, &be_const_str_pi);
-be_define_const_str(pi, "pi", 1213090802u, 0, 2, &be_const_str_state);
-be_define_const_str(state, "state", 2016490230u, 0, 5, NULL);
-be_define_const_str(depower, "depower", 3563819571u, 0, 7, &be_const_str_init);
-be_define_const_str(init, "init", 380752755u, 0, 4, &be_const_str_member);
-be_define_const_str(member, "member", 719708611u, 0, 6, NULL);
-be_define_const_str(_end_transmission, "_end_transmission", 3237480400u, 0, 17, &be_const_str_digital_read);
-be_define_const_str(digital_read, "digital_read", 3585496928u, 0, 12, &be_const_str_imin);
-be_define_const_str(imin, "imin", 2714127864u, 0, 4, NULL);
-be_define_const_str(hs2rgb, "hs2rgb", 1040816349u, 0, 6, &be_const_str_keys);
-be_define_const_str(keys, "keys", 4182378701u, 0, 4, &be_const_str_real);
-be_define_const_str(real, "real", 3604983901u, 0, 4, &be_const_str_sin);
-be_define_const_str(sin, "sin", 3761252941u, 0, 3, NULL);
-be_define_const_str(SERIAL_7N1, "SERIAL_7N1", 1891060246u, 0, 10, NULL);
-be_define_const_str(ctypes_bytes, "ctypes_bytes", 3879019703u, 0, 12, &be_const_str_ctypes_bytes_dyn);
-be_define_const_str(ctypes_bytes_dyn, "ctypes_bytes_dyn", 915205307u, 0, 16, &be_const_str_raise);
-be_define_const_str(raise, "raise", 1593437475u, 70, 5, NULL);
-be_define_const_str(GET, "GET", 2531704439u, 0, 3, &be_const_str__settings_def);
-be_define_const_str(_settings_def, "_settings_def", 3775560307u, 0, 13, &be_const_str_read24);
-be_define_const_str(read24, "read24", 1808533811u, 0, 6, NULL);
-be_define_const_str(cos, "cos", 4220379804u, 0, 3, &be_const_str_remove_driver);
-be_define_const_str(remove_driver, "remove_driver", 1030243768u, 0, 13, NULL);
-be_define_const_str(_settings_ptr, "_settings_ptr", 1825772182u, 0, 13, &be_const_str_memory);
-be_define_const_str(memory, "memory", 2229924270u, 0, 6, &be_const_str_set_auth);
-be_define_const_str(set_auth, "set_auth", 1057170930u, 0, 8, NULL);
-be_define_const_str(content_send_style, "content_send_style", 1087907647u, 0, 18, &be_const_str_class);
-be_define_const_str(class, "class", 2872970239u, 57, 5, NULL);
-be_define_const_str(SERIAL_7E2, "SERIAL_7E2", 97385204u, 0, 10, &be_const_str_shared_key);
-be_define_const_str(shared_key, "shared_key", 2200833624u, 0, 10, &be_const_str_tanh);
-be_define_const_str(tanh, "tanh", 153638352u, 0, 4, &be_const_str_nil);
-be_define_const_str(nil, "nil", 228849900u, 63, 3, NULL);
-be_define_const_str(get_power, "get_power", 3009799377u, 0, 9, &be_const_str_last_modified);
-be_define_const_str(last_modified, "last_modified", 772177145u, 0, 13, &be_const_str_resolvecmnd);
-be_define_const_str(resolvecmnd, "resolvecmnd", 993361485u, 0, 11, NULL);
-be_define_const_str(_read, "_read", 346717030u, 0, 5, NULL);
-be_define_const_str(atan, "atan", 108579519u, 0, 4, &be_const_str_content_button);
-be_define_const_str(content_button, "content_button", 1956476087u, 0, 14, &be_const_str_setbits);
-be_define_const_str(setbits, "setbits", 2762408167u, 0, 7, &be_const_str_upper);
-be_define_const_str(upper, "upper", 176974407u, 0, 5, NULL);
-be_define_const_str(contains, "contains", 1825239352u, 0, 8, &be_const_str_time_str);
-be_define_const_str(time_str, "time_str", 2613827612u, 0, 8, NULL);
-be_define_const_str(arch, "arch", 2952804297u, 0, 4, &be_const_str_fromptr);
-be_define_const_str(fromptr, "fromptr", 666189689u, 0, 7, &be_const_str_push);
-be_define_const_str(push, "push", 2272264157u, 0, 4, &be_const_str_srand);
-be_define_const_str(srand, "srand", 465518633u, 0, 5, NULL);
-be_define_const_str(geti, "geti", 2381006490u, 0, 4, &be_const_str_seti);
-be_define_const_str(seti, "seti", 1500556254u, 0, 4, NULL);
-be_define_const_str(add_cmd, "add_cmd", 3361630879u, 0, 7, &be_const_str_cmd);
-be_define_const_str(cmd, "cmd", 4136785899u, 0, 3, NULL);
-be_define_const_str(get_switch, "get_switch", 164821028u, 0, 10, &be_const_str_size);
-be_define_const_str(size, "size", 597743964u, 0, 4, NULL);
-be_define_const_str(try, "try", 2887626766u, 68, 3, NULL);
-be_define_const_str(web_send, "web_send", 2989941448u, 0, 8, &be_const_str_except);
-be_define_const_str(except, "except", 950914032u, 69, 6, NULL);
-be_define_const_str(SERIAL_5O1, "SERIAL_5O1", 3782657917u, 0, 10, &be_const_str_SERIAL_8E2);
-be_define_const_str(SERIAL_8E2, "SERIAL_8E2", 2421454473u, 0, 10, &be_const_str__available);
-be_define_const_str(_available, "_available", 1306196581u, 0, 10, NULL);
-be_define_const_str(codedump, "codedump", 1786337906u, 0, 8, &be_const_str_wire2);
-be_define_const_str(wire2, "wire2", 3229499038u, 0, 5, NULL);
-be_define_const_str(dump, "dump", 3663001223u, 0, 4, &be_const_str_exec_cmd);
-be_define_const_str(exec_cmd, "exec_cmd", 493567399u, 0, 8, NULL);
-be_define_const_str(add, "add", 993596020u, 0, 3, &be_const_str_exp);
-be_define_const_str(exp, "exp", 1923516200u, 0, 3, &be_const_str_isrunning);
-be_define_const_str(isrunning, "isrunning", 1688182268u, 0, 9, &be_const_str_remove_rule);
-be_define_const_str(remove_rule, "remove_rule", 3456211328u, 0, 11, &be_const_str_run_deferred);
-be_define_const_str(run_deferred, "run_deferred", 371594696u, 0, 12, &be_const_str_scan);
-be_define_const_str(scan, "scan", 3974641896u, 0, 4, &be_const_str_for);
-be_define_const_str(for, "for", 2901640080u, 54, 3, NULL);
-be_define_const_str(set_timer, "set_timer", 2135414533u, 0, 9, &be_const_str_url_encode);
-be_define_const_str(url_encode, "url_encode", 528392145u, 0, 10, NULL);
-be_define_const_str(addr, "addr", 1087856498u, 0, 4, NULL);
-be_define_const_str(__upper__, "__upper__", 3612202883u, 0, 9, &be_const_str_loop);
-be_define_const_str(loop, "loop", 3723446379u, 0, 4, NULL);
-be_define_const_str(AudioGeneratorWAV, "AudioGeneratorWAV", 2746509368u, 0, 17, &be_const_str_chars_in_string);
-be_define_const_str(chars_in_string, "chars_in_string", 3148785132u, 0, 15, &be_const_str_cosh);
-be_define_const_str(cosh, "cosh", 4099687964u, 0, 4, &be_const_str_import);
-be_define_const_str(import, "import", 288002260u, 66, 6, NULL);
-be_define_const_str(SERIAL_5N2, "SERIAL_5N2", 3363364537u, 0, 10, &be_const_str_type);
-be_define_const_str(type, "type", 1361572173u, 0, 4, NULL);
-be_define_const_str(clear, "clear", 1550717474u, 0, 5, NULL);
-be_define_const_str(SERIAL_8N1, "SERIAL_8N1", 2369297235u, 0, 10, &be_const_str_issubclass);
-be_define_const_str(issubclass, "issubclass", 4078395519u, 0, 10, &be_const_str_remove_timer);
-be_define_const_str(remove_timer, "remove_timer", 4141472215u, 0, 12, &be_const_str_sinh);
-be_define_const_str(sinh, "sinh", 282220607u, 0, 4, NULL);
-be_define_const_str(AudioGeneratorMP3, "AudioGeneratorMP3", 2199818488u, 0, 17, &be_const_str_Wire);
-be_define_const_str(Wire, "Wire", 1938276536u, 0, 4, &be_const_str_get_light);
-be_define_const_str(get_light, "get_light", 381930476u, 0, 9, NULL);
-be_define_const_str(get_option, "get_option", 2123730033u, 0, 10, &be_const_str_list);
-be_define_const_str(list, "list", 217798785u, 0, 4, &be_const_str_stop);
-be_define_const_str(stop, "stop", 3411225317u, 0, 4, &be_const_str_try_rule);
-be_define_const_str(try_rule, "try_rule", 1986449405u, 0, 8, NULL);
-be_define_const_str(webclient, "webclient", 4076389146u, 0, 9, NULL);
-be_define_const_str(dot_p2, ".p2", 232398067u, 0, 3, &be_const_str_has);
-be_define_const_str(has, "has", 3988721635u, 0, 3, NULL);
-be_define_const_str(_request_from, "_request_from", 3965148604u, 0, 13, &be_const_str_setrange);
-be_define_const_str(setrange, "setrange", 3794019032u, 0, 8, NULL);
-be_define_const_str(I2C_Driver, "I2C_Driver", 1714501658u, 0, 10, NULL);
-be_define_const_str(ceil, "ceil", 1659167240u, 0, 4, &be_const_str_else);
-be_define_const_str(else, "else", 3183434736u, 52, 4, NULL);
-be_define_const_str(concat, "concat", 4124019837u, 0, 6, &be_const_str_set_power);
-be_define_const_str(set_power, "set_power", 549820893u, 0, 9, NULL);
-be_define_const_str(tomap, "tomap", 612167626u, 0, 5, NULL);
-be_define_const_str(resp_cmnd_error, "resp_cmnd_error", 2404088863u, 0, 15, NULL);
-be_define_const_str(add_header, "add_header", 927130612u, 0, 10, &be_const_str_eth);
-be_define_const_str(eth, "eth", 2191266556u, 0, 3, &be_const_str_write_bit);
-be_define_const_str(write_bit, "write_bit", 2660990436u, 0, 9, NULL);
-be_define_const_str(exists, "exists", 1002329533u, 0, 6, &be_const_str_pow);
-be_define_const_str(pow, "pow", 1479764693u, 0, 3, &be_const_str_select);
-be_define_const_str(select, "select", 297952813u, 0, 6, NULL);
-be_define_const_str(allocated, "allocated", 429986098u, 0, 9, &be_const_str_classof);
-be_define_const_str(classof, "classof", 1796577762u, 0, 7, &be_const_str_if);
-be_define_const_str(if, "if", 959999494u, 50, 2, NULL);
-be_define_const_str(SERIAL_5E1, "SERIAL_5E1", 1163775235u, 0, 10, &be_const_str_arg);
-be_define_const_str(arg, "arg", 1047474471u, 0, 3, &be_const_str_cb_dispatch);
-be_define_const_str(cb_dispatch, "cb_dispatch", 1741510499u, 0, 11, &be_const_str_response_append);
-be_define_const_str(response_append, "response_append", 450346371u, 0, 15, NULL);
-be_define_const_str(pin_used, "pin_used", 4033854612u, 0, 8, &be_const_str_write);
-be_define_const_str(write, "write", 3190202204u, 0, 5, &be_const_str_write8);
-be_define_const_str(write8, "write8", 3133991532u, 0, 6, NULL);
-be_define_const_str(SERIAL_6O2, "SERIAL_6O2", 316486129u, 0, 10, &be_const_str_log);
-be_define_const_str(log, "log", 1062293841u, 0, 3, NULL);
-be_define_const_str(pin_mode, "pin_mode", 3258314030u, 0, 8, &be_const_str_read12);
-be_define_const_str(read12, "read12", 4291076970u, 0, 6, &be_const_str_resp_cmnd_str);
-be_define_const_str(resp_cmnd_str, "resp_cmnd_str", 737845590u, 0, 13, NULL);
-be_define_const_str(abs, "abs", 709362235u, 0, 3, &be_const_str_digital_write);
-be_define_const_str(digital_write, "digital_write", 3435877979u, 0, 13, &be_const_str_static);
-be_define_const_str(static, "static", 3532702267u, 71, 6, NULL);
-be_define_const_str(bytes, "bytes", 1706151940u, 0, 5, &be_const_str_find_op);
-be_define_const_str(find_op, "find_op", 3766713376u, 0, 7, NULL);
-be_define_const_str(call, "call", 3018949801u, 0, 4, NULL);
-be_define_const_str(cmd_res, "cmd_res", 921166762u, 0, 7, NULL);
-be_define_const_str(opt_eq, "==", 2431966415u, 0, 2, NULL);
-be_define_const_str(save, "save", 3439296072u, 0, 4, NULL);
-be_define_const_str(find_key_i, "find_key_i", 850136726u, 0, 10, NULL);
-be_define_const_str(_cb, "_cb", 4043300367u, 0, 3, NULL);
-be_define_const_str(Tasmota, "Tasmota", 4047617668u, 0, 7, &be_const_str_public_key);
-be_define_const_str(public_key, "public_key", 4169142980u, 0, 10, NULL);
-be_define_const_str(as, "as", 1579491469u, 67, 2, NULL);
-be_define_const_str(dot_w, ".w", 1255414514u, 0, 2, &be_const_str_SERIAL_8O1);
-be_define_const_str(SERIAL_8O1, "SERIAL_8O1", 289122742u, 0, 10, &be_const_str_compile);
-be_define_const_str(compile, "compile", 1000265118u, 0, 7, &be_const_str_range);
-be_define_const_str(range, "range", 4208725202u, 0, 5, NULL);
-be_define_const_str(add_rule, "add_rule", 596540743u, 0, 8, NULL);
-be_define_const_str(_ptr, "_ptr", 306235816u, 0, 4, &be_const_str_delay);
-be_define_const_str(delay, "delay", 1322381784u, 0, 5, &be_const_str_pop);
-be_define_const_str(pop, "pop", 1362321360u, 0, 3, &be_const_str_reset);
-be_define_const_str(reset, "reset", 1695364032u, 0, 5, &be_const_str_wire_scan);
-be_define_const_str(wire_scan, "wire_scan", 2671275880u, 0, 9, NULL);
-be_define_const_str(reset_search, "reset_search", 1350414305u, 0, 12, &be_const_str_tolower);
-be_define_const_str(tolower, "tolower", 1042520049u, 0, 7, NULL);
-be_define_const_str(SERIAL_7O2, "SERIAL_7O2", 1840580294u, 0, 10, &be_const_str_asin);
-be_define_const_str(asin, "asin", 4272848550u, 0, 4, &be_const_str_nan);
-be_define_const_str(nan, "nan", 797905850u, 0, 3, NULL);
-be_define_const_str(deg, "deg", 3327754271u, 0, 3, NULL);
-be_define_const_str(log10, "log10", 2346846000u, 0, 5, NULL);
-be_define_const_str(char, "char", 2823553821u, 0, 4, &be_const_str_get_size);
-be_define_const_str(get_size, "get_size", 2803644713u, 0, 8, NULL);
-be_define_const_str(opt_call, "()", 685372826u, 0, 2, &be_const_str_end);
-be_define_const_str(end, "end", 1787721130u, 56, 3, NULL);
-be_define_const_str(SERIAL_7N2, "SERIAL_7N2", 1874282627u, 0, 10, &be_const_str_time_dump);
-be_define_const_str(time_dump, "time_dump", 3330410747u, 0, 9, NULL);
-be_define_const_str(listdir, "listdir", 2005220720u, 0, 7, &be_const_str_wifi);
-be_define_const_str(wifi, "wifi", 120087624u, 0, 4, NULL);
-be_define_const_str(read_bytes, "read_bytes", 3576733173u, 0, 10, &be_const_str_reverse);
-be_define_const_str(reverse, "reverse", 558918661u, 0, 7, NULL);
+be_define_const_str(, "", 2166136261u, 0, 0, &be_const_str_True);
+be_define_const_str(_X0A, "\n", 252472541u, 0, 1, &be_const_str_i2c_enabled);
+be_define_const_str(_X20, " ", 621580159u, 0, 1, &be_const_str_add_cmd);
+be_define_const_str(_X21_X3D, "!=", 2428715011u, 0, 2, &be_const_str__X23autoexec_X2Ebe);
+be_define_const_str(_X21_X3D_X3D, "!==", 559817114u, 0, 3, &be_const_str__X2Ew);
+be_define_const_str(_X23, "#", 638357778u, 0, 1, &be_const_str_No_X20callback_X20available);
+be_define_const_str(_X23autoexec_X2Ebat, "#autoexec.bat", 3382890497u, 0, 13, NULL);
+be_define_const_str(_X23autoexec_X2Ebe, "#autoexec.be", 1181757091u, 0, 12, &be_const_str_assert);
+be_define_const_str(_X23display_X2Eini, "#display.ini", 182218220u, 0, 12, &be_const_str_code);
+be_define_const_str(_X23init_X2Ebat, "#init.bat", 3297595077u, 0, 9, &be_const_str__X2502d_X25s_X2502d);
+be_define_const_str(_X23preinit_X2Ebe, "#preinit.be", 687035716u, 0, 11, &be_const_str__timers);
+be_define_const_str(_X2502d_X25s_X2502d, "%02d%s%02d", 1587999717u, 0, 10, &be_const_str__X3D_X3C_X3E_X21);
+be_define_const_str(_X2504d_X2D_X2502d_X2D_X2502dT_X2502d_X3A_X2502d_X3A_X2502d, "%04d-%02d-%02dT%02d:%02d:%02d", 3425528601u, 0, 29, &be_const_str_get_object_from_ptr);
+be_define_const_str(_X25s_X2Eautoconf, "%s.autoconf", 3560383524u, 0, 11, &be_const_str_RES_OK);
+be_define_const_str(_X26lt_X3BError_X3A_X20apply_X20new_X20or_X20remove_X26gt_X3B, "<Error: apply new or remove>", 2855507949u, 0, 34, &be_const_str_hs2rgb);
+be_define_const_str(_X26lt_X3BNone_X26gt_X3B, "<None>", 2602165498u, 0, 12, &be_const_str__X2Fac);
+be_define_const_str(_X28_X29, "()", 685372826u, 0, 2, NULL);
+be_define_const_str(_X2B, "+", 772578730u, 0, 1, &be_const_str_lower);
+be_define_const_str(_X2C, ",", 688690635u, 0, 1, &be_const_str_SERIAL_7O1);
+be_define_const_str(_X2D_X2D_X3A_X2D_X2D, "--:--", 1370615441u, 0, 5, &be_const_str__X3Cp_X3ECurrent_X20configuration_X3A_X20_X3C_X2Fp_X3E_X3Cp_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E);
+be_define_const_str(_X2E, ".", 722245873u, 0, 1, &be_const_str_search);
+be_define_const_str(_X2E_X2E, "..", 2748622605u, 0, 2, &be_const_str__debug_present);
+be_define_const_str(_X2Eautoconf, ".autoconf", 2524679088u, 0, 9, &be_const_str_false);
+be_define_const_str(_X2Ebe, ".be", 1325797348u, 0, 3, &be_const_str_Tasmota);
+be_define_const_str(_X2Ebec, ".bec", 3985273221u, 0, 4, &be_const_str_CFG_X3A_X20downloading_X20_X27_X25s_X27);
+be_define_const_str(_X2Elen, ".len", 850842136u, 0, 4, &be_const_str__X3Cselect_X20name_X3D_X27zip_X27_X3E);
+be_define_const_str(_X2Ep, ".p", 1171526419u, 0, 2, NULL);
+be_define_const_str(_X2Ep1, ".p1", 249175686u, 0, 3, &be_const_str__t);
+be_define_const_str(_X2Ep2, ".p2", 232398067u, 0, 3, &be_const_str_BRY_X3A_X20could_X20not_X20save_X20compiled_X20file_X20_X25s_X20_X28_X25s_X29);
+be_define_const_str(_X2Esize, ".size", 1965188224u, 0, 5, &be_const_str_is_first_time);
+be_define_const_str(_X2Etapp, ".tapp", 1363391594u, 0, 5, &be_const_str__X7B);
+be_define_const_str(_X2Ew, ".w", 1255414514u, 0, 2, &be_const_str_clear);
+be_define_const_str(_X2F, "/", 705468254u, 0, 1, &be_const_str_SERIAL_7O2);
+be_define_const_str(_X2F_X2Eautoconf, "/.autoconf", 2212074393u, 0, 10, &be_const_str_CFG_X3A_X20exception_X20_X27_X25s_X27_X20_X2D_X20_X27_X25s_X27);
+be_define_const_str(_X2F_X3Frst_X3D, "/?rst=", 580074707u, 0, 6, &be_const_str_SERIAL_7N2);
+be_define_const_str(_X2Fac, "/ac", 3904651978u, 0, 3, &be_const_str_WS2812);
+be_define_const_str(_X3A, ":", 1057798253u, 0, 1, &be_const_str_AudioFileSourceFS);
+be_define_const_str(_X3C, "<", 957132539u, 0, 1, &be_const_str_digital_write);
+be_define_const_str(_X3C_X2Fform_X3E_X3C_X2Fp_X3E, "", 3546571739u, 0, 11, &be_const_str_LVG_X3A_X20call_X20to_X20unsupported_X20callback);
+be_define_const_str(_X3C_X2Fselect_X3E_X3Cp_X3E_X3C_X2Fp_X3E, "", 1863865923u, 0, 16, &be_const_str_rule);
+be_define_const_str(_X3C_X3D, "<=", 2499223986u, 0, 2, &be_const_str_set_chg_current);
+be_define_const_str(_X3Cbutton_X20name_X3D_X27reapply_X27_X20class_X3D_X27button_X20bgrn_X27_X3ERe_X2Dapply_X20current_X20configuration_X3C_X2Fbutton_X3E, "", 3147934216u, 0, 82, &be_const_str_find_op);
+be_define_const_str(_X3Cbutton_X20name_X3D_X27zipapply_X27_X20class_X3D_X27button_X20bgrn_X27_X3EApply_X20configuration_X3C_X2Fbutton_X3E, "", 1205771629u, 0, 72, NULL);
+be_define_const_str(_X3Cfieldset_X3E_X3Cstyle_X3E_X2Ebdis_X7Bbackground_X3A_X23888_X3B_X7D_X2Ebdis_X3Ahover_X7Bbackground_X3A_X23888_X3B_X7D_X3C_X2Fstyle_X3E, "", 2052843416u, 0, 25, &be_const_str_button_pressed);
+be_define_const_str(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27ac_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E_X26_X23129668_X3B_X20Auto_X2Dconfiguration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E, "", 452285201u, 0, 120, NULL);
+be_define_const_str(_X3Cp_X3E_X3Cform_X20id_X3Dreapply_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27_X2Fac_X27_X20method_X3D_X27post_X27_X20, "