Giter Club home page Giter Club logo

Comments (5)

kuba2k2 avatar kuba2k2 commented on May 29, 2024 1

base - that's the word I needed

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 29, 2024 1

Let me crosspost the message I posted today on our Discord server:


Testers needed for the new structure-refactor branch 🙂
I think I've changed everything (or most) of what I wanted to change - what's left now (except for a few cosmetic changes) is testing. I've been testing for compilation errors, and if it boots (but roughly). That being said, there shouldn't be any difference in stability or compilation issues (compared to the current LibreTuya master branch, after GCC updates).

If you'd like to help testing the new version:

  • get a device to which you have easy UART access - just in case something goes wrong in the OTA process. The OTA format is changed a bit (under the hood); it is backwards compatible (meaning you can update old devices), but you can't revert to LT v0.12.6 or older
  • install LT v1.0.0 (alpha) - platformio platform install -f https://github.com/kuba2k2/libretuya#structure-refactor
  • clone updated ESPHome - git clone https://github.com/kuba2k2/libretuya-esphome -b platform/lt-refactor
  • compile your YAMLs, as usual - make sure to uninstall old esphome (or install the new one, using pip install - see the docs)

Let me know about any problems/questions in the thread here. Happy testing!

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 29, 2024

Currently proposed project structure:

Click to expand
cores/
├── common/
│   ├── arduino/
│   │   ├── libraries/
│   │   │   ├── api/
│   │   │   │   ├── LT/
│   │   │   │   │   ├── LT.cpp
│   │   │   │   │   └── LT.h
│   │   │   │   ├── SoftwareSerial/
│   │   │   │   │   ├── SoftwareSerial.cpp
│   │   │   │   │   └── SoftwareSerial.h
│   │   │   │   ├── OTA/
│   │   │   │   │   ├── OTA.cpp
│   │   │   │   │   └── OTA.h
│   │   │   │   └── WiFi/
│   │   │   │       ├── WiFi.cpp
│   │   │   │       ├── WiFi.h
│   │   │   │       ├── WiFiAP.cpp
│   │   │   │       ├── ...
│   │   │   │       └── WiFiType.h
│   │   │   ├── common/
│   │   │   │   ├── Flash/
│   │   │   │   │   ├── Flash.cpp
│   │   │   │   │   └── Flash.h
│   │   │   │   ├── IPv6Address/
│   │   │   │   │   ├── IPv6Address.cpp
│   │   │   │   │   └── IPv6Address.h
│   │   │   │   ├── MD5/
│   │   │   │   │   ├── MD5.h
│   │   │   │   │   ├── MD5MbedTLSImpl.cpp
│   │   │   │   │   ├── MD5MbedTLSImpl.h
│   │   │   │   │   └── ...
│   │   │   │   ├── mDNS/
│   │   │   │   │   ├── LwIPmDNS.cpp
│   │   │   │   │   ├── mDNS.cpp
│   │   │   │   │   └── mDNS.h
│   │   │   │   ├── Update/
│   │   │   │   │   ├── Update.cpp
│   │   │   │   │   └── Update.h
│   │   │   │   ├── WiFiClient/
│   │   │   │   │   ├── LwIPClient.cpp
│   │   │   │   │   ├── ...
│   │   │   │   │   └── WiFiClient.h
│   │   │   │   └── WiFiServer/
│   │   │   │       ├── LwIPServer.cpp
│   │   │   │       ├── ...
│   │   │   │       └── WiFiServer.h
│   │   │   └── ext/
│   │   │       ├── base64/
│   │   │       ├── cbuf/
│   │   │       ├── HTTPClient/
│   │   │       ├── StreamString/
│   │   │       ├── WebServer/
│   │   │       └── WiFiMulti/
│   │   └── src/
│   │       ├── common/
│   │       │   ├── abi.cpp
│   │       │   ├── ...
│   │       │   └── WMath.cpp
│   │       ├── compat/
│   │       │   ├── FS.h
│   │       │   ├── pgmspace.h
│   │       │   └── ...
│   │       ├── posix/
│   │       │   └── time.c
│   │       ├── Arduino.h
│   │       ├── HardwareI2C.h
│   │       ├── LibreTuyaAPI.cpp
│   │       ├── LibreTuyaAPI.h
│   │       ├── main.cpp
│   │       ├── wiring_custom.c
│   │       └── wiring_custom.h
│   └── base/
│       ├── compat/
│       │   ├── libretuya.h -> ../lt_api.h
│       │   ├── certs.h
│       │   ├── netif.h
│       │   ├── sockets.h
│       │   └── ...
│       ├── config/
│       │   ├── lwipopts.h
│       │   ├── printf_config.h
│       │   ├── fal_cfg.h
│       │   └── fdb_cfg.h
│       ├── fixups/
│       │   ├── lwip/
│       │   │   └── errno.h
│       │   └── errno.h
│       ├── posix/
│       │   ├── strcasecmp.c
│       │   ├── strdup.c
│       │   └── strptime.c
│       ├── wraps/
│       │   ├── putchar.c
│       │   └── puts.c
│       ├── lt_api.c
│       ├── lt_api.h
│       ├── lt_chip.h
│       ├── lt_config.h
│       ├── lt_logger.c
│       ├── lt_logger.h
│       ├── lt_main.c
│       └── lt_posix_api.h
├── beken-72xx/
│   ├── arduino/
│   │   ├── libraries/
│   │   │   ├── Serial/
│   │   │   │   ├── SerialClass.h
│   │   │   │   └── SerialClass.cpp
│   │   │   ├── SoftwareSerial/
│   │   │   │   └── SoftwareSerial.cpp
│   │   │   ├── WiFi/
│   │   │   │   ├── WiFi.cpp
│   │   │   │   ├── ... (no other headers)
│   │   │   │   └── WiFiPrivate.h
│   │   │   └── Wire/
│   │   │       ├── Wire.cpp
│   │   │       └── Wire.h
│   │   └── src/
│   │       ├── ArduinoFamily.h
│   │       ├── main.cpp
│   │       ├── wiring_analog.c
│   │       ├── wiring_digital.c
│   │       ├── wiring_irq.c
│   │       └── wiring.c
│   ├── base/
│   │   ├── config/
│   │   │   └── lwipopts.h
│   │   ├── fixups/
│   │   │   ├── param_config.h
│   │   │   └── uart_pub.h
│   │   ├── fixups/
│   │   │   ├── arch_main.c
│   │   │   ├── ate_app.c
│   │   │   ├── ...
│   │   │   └── intc.c
│   │   ├── port/
│   │   │   ├── fal_flash_bk72xx_port.c
│   │   │   ├── printf_port.h
│   │   │   └── printf.c
│   │   ├── wraps/
│   │   │   ├── BkDriverFlash.c
│   │   │   └── wlan_ui.c
│   │   ├── lt_defs.h
│   │   └── sdk_private.h
│   └── misc/
│       ├── bk7231_bsp.ld
│       ├── bk7231n_bsp.ld
│       └── bk72xx.cfg
├── beken-7231n/
│   └── base/
│       ├── config/
│       │   └── sys_config.h
│       └── fixups/
│           └── temp_detect.c
├── beken-7231u/
│   └── base/
│       ├── config/
│       │   └── sys_config.h
│       └── fixups/
│           └── boot_handlers_105_bk7231s.S
├── beken-7251/
│   └── base/
│       └── config/
│           └── sys_config.h
├── realtek-amb/
│   └── ...
├── realtek-ambz/
│   ├── ...
│   └── misc/
│       ├── boot_all_77F7.bin
│       └── ...
└── realtek-ambz2/
    ├── ...
    └── misc/
        ├── bootloader.axf
        └── ...

Generated here.

from libretiny.

kuba2k2 avatar kuba2k2 commented on May 29, 2024

Moving all non-Arduino sources to a platform/sdk/libretuya subdirectory, to align it better with arduino.

from libretiny.

lonerzzz avatar lonerzzz commented on May 29, 2024

How is the refactor coming along? I want to contribute for the Beken chips once you have a layout defined.

from libretiny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.