mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
examples/hwapi: Example showing best practices for HW API usage in apps.
Showing and providing detailed instructions and motivation.
This commit is contained in:
5
examples/hwapi/hwconfig_esp8266_esp12.py
Normal file
5
examples/hwapi/hwconfig_esp8266_esp12.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user