diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-06 22:08:35 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-06 22:08:35 +0300 |
commit | 8f068e84eedd90146b66b9ffd8193e2e37a24b4d (patch) | |
tree | b7d770ec9a15680d15d61bce6588511238f952b1 /examples/hwapi/hwconfig_esp8266_esp12.py | |
parent | 5c3d75c937c1e7d220dcb8fb4230dd8280b1453f (diff) | |
download | micropython-8f068e84eedd90146b66b9ffd8193e2e37a24b4d.tar.gz micropython-8f068e84eedd90146b66b9ffd8193e2e37a24b4d.zip |
examples/hwapi: Example showing best practices for HW API usage in apps.
Showing and providing detailed instructions and motivation.
Diffstat (limited to 'examples/hwapi/hwconfig_esp8266_esp12.py')
-rw-r--r-- | examples/hwapi/hwconfig_esp8266_esp12.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/hwapi/hwconfig_esp8266_esp12.py b/examples/hwapi/hwconfig_esp8266_esp12.py new file mode 100644 index 0000000000..e8cf2d12e1 --- /dev/null +++ b/examples/hwapi/hwconfig_esp8266_esp12.py @@ -0,0 +1,5 @@ +from machine import Pin + +# ESP12 module as used by many boards +# Blue LED on pin 2 +LED = Pin(2, Pin.OUT) |