1.5 APP Actuator Widgets

  1. Create a new controller and add the following widgets.


  2. Run 1.5_ws_actuator.py.


    • Open the 1.5_ws_actuator.py file under the path of euler-kit/esp8266 or copy this code into Thonny, then click “Run Current Script” or simply press F5 to run it.

    • Don’t forget to click on the “MicroPython (Raspberry Pi Pico)” interpreter in the bottom right corner.

  3. Each time you rerun the code, you need to connect your device’s Wi-Fi to my_esp8266, then turn on SunFounder Controller and reconnect.

  4. After clicking the Run/Stop button, you can try to toggle these widgets and you can see the corresponding value changes in the Thonny shell.

Widget List