Commit graph

80 commits

Author SHA1 Message Date
Scott Shawcroft
15f2a45a5d
Use secrets import from other examples 2020-07-06 15:12:19 -07:00
Scott Shawcroft
93b17712e7
lint 2020-07-03 13:43:18 -07:00
Scott Shawcroft
dbe91f0f7f
Merge branch 'master' into tannewt-patch-2 2020-07-02 15:45:08 -07:00
Diego Elio Pettenò
f70ac1ad67 Add a pre-commit hook configuration to check YAML and whitespace.
These are minor, but avoids those coming up during reviews at all.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.com>
2020-05-30 10:36:49 +01:00
Diego Elio Pettenò
dd7b4fffc4 Apply SPDX copyright and license headers in compliance with REUSE.
The REUSE specifications[1] are meant to make it explicit and easier to
apply code licensing information for a project. The provided lint tool
makes it easy to ensure all the content (code and not code) is tagged.

Important notes:

 * All the code (and documentation) that otherwise didn't have an explicit
   license headers have been tagged with ladyada's copyright as per the
   LICENSE file.
 * favicon.ico and CODE_OF_CONDUCT.md have been synced from the
   source-of-truth repositories.
 * All configuration files have been tagged with ladyada's copyright and
   Unlicense[2]. The current REUSE recommendation is to use CC0-1.0, but
   that has… side effects. There's some discussion in [3] about the
   recommendation for likely-uncopyrightable files (such as configuration
   files).

[1]: https://reuse.software/
[2]: https://unlicense.org/
[3]: https://github.com/fsfe/reuse-docs/issues/62
2020-05-30 10:36:49 +01:00
brentru
b9154b55d6 add airlift shield, reflect featherwing 2020-05-05 10:29:44 -04:00
Brent Rubell
3cf7b8a2a8
Merge pull request #89 from anecdata/gpio
Example using ESP32 GPIO pins from CircuitPython
2020-04-21 14:08:24 -04:00
anecdata
5e5a5a526c removed unnecessary code 2020-04-21 11:31:05 -05:00
anecdata
4d5f884f52 fix pylint 2020-04-21 10:37:13 -05:00
anecdata
bfdac54d8a fix pylint 2020-04-21 10:23:26 -05:00
anecdata
8a9ed1ae9e locally black'd output file 2020-04-21 10:13:20 -05:00
anecdata
bbbd5f79d2 Fix black error(s) 2020-04-21 09:51:52 -05:00
anecdata
64528f50a9 Minor comment edits 2020-04-20 23:13:52 -05:00
dherrada
d387561329 Ran black, updated to pylint 2.x 2020-03-16 15:56:34 -04:00
FoamyGuy
4965fcc04f trying single line comments for pylint 2020-02-28 13:07:16 -06:00
foamyguy
fbbe97788e
Merge pull request #66 from mytechnotalent/ESP32-MAC-order-library-fix
Fixed MAC reverse byte order issue within the ESP32SPI library as it …
2020-02-27 21:43:24 -06:00
anecdata
f6c3e5e9c9 simplified print output 2020-02-21 10:00:00 -06:00
anecdata
927476a3b4 improve comments 2020-02-21 09:37:57 -06:00
anecdata
0d0da219ce Fix PyLint issue 2020-02-21 09:30:49 -06:00
anecdata
f3c18ef140 Fix Pylint issues 2020-02-21 09:19:04 -06:00
anecdata
a25513a228 Example of using ESP32 pins as GPIO 2020-02-21 09:00:54 -06:00
Scott Shawcroft
d22f1a4025
Use secrets.py for ssid and password. 2020-01-30 19:48:12 -08:00
Scott Shawcroft
68e140fb8a
Add pins for Itsy M4 AirLift 2020-01-30 19:41:37 -08:00
mytechnotalent
da9f67fef2 Fixed MAC reverse byte order by adding new function to the ESP32SPI library calling the actual MAC address and providing a usage of the function in the webserver code within WSGISERVER. This time with line breaks at end to not break Travis. 2019-08-22 04:49:36 -04:00
mytechnotalent
3fd6a12118 Fixed MAC reverse byte order by adding new function to the ESP32SPI library calling the actual MAC address and providing a usage of the function in the webserver code within WSGISERVER. 2019-08-22 04:46:51 -04:00
mytechnotalent
ec97d6b068 Fixedblank line issus at EOF so Travis can run. 2019-08-21 07:30:07 -04:00
mytechnotalent
87095f617e Fixed MAC reverse byte order issue within the ESP32SPI library as it was originally echoing the MAC address in reverse byte order. Added portable MAC function call within WSGISERVER.PY example to properly echo MAC address when running example. 2019-08-21 07:03:15 -04:00
Brent Rubell
ea860b2993
Merge pull request #57 from mscosti/ap_mode
Add Access point mode
2019-08-19 11:03:33 -04:00
Matt Costi
bea04e4b46 make example web app not depend on externally hosted assets, to support AP without internet 2019-08-11 17:54:44 -04:00
Matt Costi
a349bac38c add protected and unprotected AP code snippets to wsgi server demo 2019-08-11 17:53:07 -04:00
brentru
50b7a014b9 add ent simpletest with new requests api 2019-07-29 11:44:45 -04:00
brentru
db246edfa6 update to _requests 2019-07-29 11:43:08 -04:00
Matt Costi
8dbeef0212 move all server example assets into examples/server 2019-07-23 19:01:43 -04:00
Matt Costi
a5d59f8fb4 fix linting 2019-07-22 22:30:10 -04:00
Matt Costi
a93c0998a9 Address PR comments 2019-07-22 21:48:32 -04:00
Matt Costi
e6bfd362a3 remove wifimanager debug arg
- Already in ap_mode branch
2019-07-21 22:31:54 -04:00
Matt Costi
fc97dacf82 fix linting of example file 2019-07-21 14:36:55 -04:00
Matt Costi
d1fe7774ad fix led_on to pass rgb tuple 2019-07-21 13:54:56 -04:00
Matt Costi
6af7675053 Merge branch 'master' of https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI into server 2019-07-21 13:44:33 -04:00
Matt Costi
92d0c6669f new example script for using WsgiServer
Includes an simple example of a wsgi complient application class
2019-07-21 13:34:06 -04:00
Matt Costi
f6d9415103 fix spacing 2019-07-14 18:07:00 -04:00
Matt Costi
83d15258a4 add in example static asset serving with ajax call LED color changing 2019-07-14 18:03:35 -04:00
Matt Costi
b8fd02eaec more linting 2019-07-14 12:03:21 -04:00
Matt Costi
faf031acd7 add simple request method handling
- can register callbacks on specific HTTP methods and paths
- Can call update_poll in event loop to check for new incoming requests
- update server example script
2019-07-13 20:54:48 -04:00
Dustin Mollo
cbc790133d merged conflicts 2019-07-13 11:56:19 -07:00
Dustin Mollo
bce6bfa28b merged conflicts 2019-07-13 11:55:01 -07:00
Matt Costi
5e09b7b867 Add server class to handle server start and get connected clients 2019-07-13 12:52:20 -04:00
Matt Costi
5b281189d5 separate server code from AP code 2019-07-13 09:45:47 -04:00
brentru
d21b70993a add an externally defined rgbled status_led to _wifimanager 2019-06-11 10:32:35 -04:00
brentru
24b566be28 update to use # comments instead of block comments 2019-04-25 12:52:32 -04:00