Figure 1 – Installing the ampy module.If you prefer, you can check here the original installation instructions from Adafruit, which are very detailed.
Figure 2 – Output of the script, running both on the ESP8266 and on the ESP32.Important: In the versions of the tools I’m using, the first execution of any script upon connecting the devices results in an error similar to the one shown in figure 3. It happens both on the ESP8266 and on the ESP32. Nevertheless, after this first error, subsequent executions of scripts work fine. I haven’t yet found the reason for this, but I’ll share here if I find out.
Figure 3 – Error on first attempt of executing a script.