MicroPython RGBWW Smart Bulb code for MQTT

subDesTagesMitExtraKaese 78a19dda51 updated readme 3 gadi atpakaļ
.vscode 8e3c5d1531 init 3 gadi atpakaļ
W60X_MicroPython_1.10_B1.3_IMG 78a19dda51 updated readme 3 gadi atpakaļ
.gitignore 8e3c5d1531 init 3 gadi atpakaļ
README.md 78a19dda51 updated readme 3 gadi atpakaļ
boot.py 8e3c5d1531 init 3 gadi atpakaļ
config.py 70d9fb9936 added leds class 3 gadi atpakaļ
dev-requirements.txt 8e3c5d1531 init 3 gadi atpakaļ
leds.py 911d3222f2 bugfix 3 gadi atpakaļ
main.py 2bf9eb08cd fixed error recovery 3 gadi atpakaļ
micropy.json 8e3c5d1531 init 3 gadi atpakaļ
requirements.txt 8e3c5d1531 init 3 gadi atpakaļ
umqttsimple.py 8e3c5d1531 init 3 gadi atpakaļ

README.md

MicroPython RGBWW Smart Bulb

tested on a Tuya WinnerMicro W600 Smart Bulb

VS Code Development guide

Installation

  1. Flash MicroPython onto the WM W600 chip. Binaries
  2. Copy python files to the board.
  3. Reset the uC

How to upload code remotely (WM uPython SDK)

  1. Create wifi_config.py with following content:

    WIFI_SSID="<SSID>"
    WIFI_PASSWD="<PASSWORD>"
    
  2. Reboot the M600 and connect to bulb via FTP without username and password