- Make sure python is installed on your computer
- Install esptool
pip3 install esptool
- Install ampy
pip3 install ampy
- Check in Device Manager under "Ports (COM & LPT)" for the serial converter of the ESP8266 (typically CH340)
- Run
ls /dev/cu.*
- Connect textclock to computer.
- Run
ls /dev/cu.*
again and look for the newly created device, this is a serial port to the textclock.
Read Installing micropython for details
- Download firmware for ESP8266 with 2MiB+ flash
esptool.py -p <PORT> erase_flash
esptool.py -p <PORT> write_flash -flash_size=detect 0 esp8266-20220117-v1.18.bin
- Edit
upload.bat
and set AMPY_PORT to the correct device from "Find out which port the clock is connected do" - Run
upload.bat
- Edit
upload.sh
and set AMPY_PORT to the correct device from "Find out which port the clock is connected do" - Run
./upload.sh
- Create a file called
wifi.dat
, containing:
SSID-Name;WifiPassword
replace SSID-Name with your wifis SSID and WifiPassword with the password for it. Make sure there's only a \n
line-ending or none at all.
2. Run ampy -d 1 -p /dev/cu.<name_of_the_device_from_prerequisites_step_5> put wifi.dat
3. Restart the clock by pressing reset, or turning it off and on again
4. Clock should now get the time through your wifi.