Introduction
April 28, 2022 ยท View on GitHub
This is a port of adafruit_esp32spi/adafruit_esp32spi_wsgiserver.py to ESP32-S2.
- copy
wsgiserver.pyand all the files inexamples/wsgi_simpletestto the board. - create the usual secrets.py (
see here <https://learn.adafruit.com/pyportal-titano-weather-station/code-walkthrough-secrets-py>) - install the requirements of the demo with circup or manually
adafruit_wsgifor the web server application helperadafruit_dotstarorneopixelfor the LED demo
- rename
wsgiserver_simpletest.pytocode.py
Test by going to http://IP_ADDRESS/led_on/255/255/0 and http://IP_ADDRESS/led_off
Dependencies
This driver depends on:
Adafruit CircuitPython <https://github.com/adafruit/circuitpython>_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
the Adafruit library and driver bundle <https://circuitpython.org/libraries>_
or individual libraries can be installed using
circup <https://github.com/adafruit/circup>_.
Installing to a Connected CircuitPython Device with Circup
Make sure that you have circup installed in your Python environment.
Install it with the following command if necessary:
.. code-block:: shell
pip3 install circup
With circup installed and your CircuitPython device connected use the
following command to install:
.. code-block:: shell
circup install wsgiserver
Or the following command to update an existing version:
.. code-block:: shell
circup update
Contributing
Contributions are welcome! Please read our Code of Conduct <https://github.com/Neradoc/CircuitPython_wsgiserver/blob/HEAD/CODE_OF_CONDUCT.md>_
before contributing to help this project stay welcoming.