PlatformIO development platform for IoT modules
open sourceMITfree
LibreTiny (formerly LibreTuya) is a PlatformIO development platform for the Beken BK72xx, Realtek RTL8710/RTL8720 and Lightning LN882H Wi-Fi chips found in many Tuya-based smart devices. Besides packaging the vendors' SDKs as PlatformIO cores, it provides Arduino-compatible cores modelled on Espressif's ESP32 core, so existing ESP code can be ported to these chips. ESPHome supports it natively since 2023.9.0 for building firmware for BK72xx, RTL87xx and LN882H devices. Its docs cover flashing with ltchiptool, dumping stock firmware and converting devices with tuya-cloudcutter, and list the supported boards and modules.
Problems it solves
- write Arduino code for the Beken chip inside my Tuya smart plug
- run ESPHome on a smart device that has a BK7231 instead of an ESP chip
- port my ESP32 project to a Realtek RTL8720 module
- build custom firmware for cheap Tuya Wi-Fi modules with PlatformIO
- flash a device with a Beken or Realtek chip and keep a backup of the stock firmware
Features
- PlatformIO platform for BK72xx, RTL8710BN/BX, RTL8720CF/CM and LN882x chips
- Arduino-compatible cores modelled on the ESP32 core
- vendor SDKs as PlatformIO cores
- native ESPHome support since 2023.9.0
- C and C++ APIs
- flashing and dumping guide with ltchiptool
- list of supported boards and Tuya modules