Firmware is created with ESPHome - it is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
I am not going to explain in details the configuration yaml file. If you want to modify it, you need to get familiar with esphome. The config file is fairly complicated compared with the usual esphome configurations, so there is some steeper learning curve, especially if you never programmed an MCU before. However by using esphome, you can build very complex logic without writing a single line of code, as the whole instruction is in the yaml config file. It's amazing how much time it saves!
iaq_board.yaml
- this is the configuration for esphomeiaq_board.bin
- this is the binary file of the compiled firmware and can be directly uploaded in the MCU
- Download the bin file on your PC.
- Install esphome-flasher.
- Connect the MCU board with mini USB cable not yet connecting it on PCB.
- Start esphome-flasher, select the correct COM port which is the MCU as explained here and flash it.
That's it! Connect the MCU on the board, then power it on and it should work.
If you want to go deeper, follow the instructions how to build the binary file from the yaml and upload it to the MCU from command line.
- update esphome to 1.16.2
- default brightness correction set to +15%