Compiling and uploading the software part is probably easier than the assembly though there are still some caveats. We provide a compiled version of the software as a release, which you can upload as described in Upload release. If you still want to compile and upload yourself you need to make sure that you comply with the requirements as described in Compiling. If you already uploaded any release before you can follow the OTA section.
Uploading a pre-built binary aka release is probably the easiest option. There are two ways of doing so: The first installation needs to be done using USB. If you want to update the software you can upload it wirelessly as described in the OTA section.
- Download and unzip ESPEasyFlasher
- Download the latest release
- Place
code.ino.bin
inside theESPEasyFlasher
folder - Using a USB cable plug in the Christmas Tree to your PC
- Start/Execute ESPEasyFlasher
- Select the COM-Port of your ESP
- Select the firmware
.\code.ino.bin
- Press
Flash
- Enjoy your Christmas Tree
Alternatively (for example on Linux) you can use the esptool directly using python from the commandline. For this use the command:
python3 esptool.py --chip esp8266 --port <your port> --baud 460800 --before default_reset --after hard_reset write_flash 0x0 code.ino.bin
- Download the latest release
- Activate the AP mode of the Christmas Tree by holding down the button until the lowest/largest ring lights up (~3 seconds)
- Connect your phone/tablet/pc with the wifi network of the Christmas Tree
- The Christmas Tree will show up as
LED Christmas Tree AC12B35D67EF
(the last part will differ for you as it is the MAC address)
- The Christmas Tree will show up as
- Once connected your phone/tablet/pc should ask you to sign in (captive portal). On Android you will need to click on the popup on other devices (iOS, MacOS) the captive portal will open automatically. Once opened you are greeted with the OTA GUI.
- If the page for whatever reason does not open, open a webbrowser and enter
4.3.2.1/ota
- Press
Select file
and select the downloadedcode.ino.bin
. - Press
Upload
and wait until the browser displayscannot load webpage
- Enjoy your new Christmas Tree Features
Compiling the software yourself now uses PlatformIO to install and manage the required libraries automatically.
- Install PlatformIO IDE or PlatformIO Core, depending on your preference
- Download or Clone the repository
- To clone run
git clone [email protected]:enwi/LED-Christmas-Tree.git
orgit clone https://github.com/enwi/LED-Christmas-Tree.git
- To update the submodule run
git submodule update --init
- To clone run
- Open the project in the PlatformIO IDE or your command line
- Using a USB cable plug in the Christmas Tree to your PC
- Press the upload button with the default environment (esp8266_d1_mini) or execute
pio run --target upload
- The build process will install all required libraries and flash the controller
- Enjoy your Christmas Tree