Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/examples/hwapi/hwconfig_esp8266_esp12.py

6 lines
157 B
Python
Raw Normal View History

examples/hwapi: Use Signal for inverted LED on ESP-12.
2017-01-01 20:05:35 +03:00
from machine import Pin, Signal
examples/hwapi: Example showing best practices for HW API usage in apps. Showing and providing detailed instructions and motivation.
2016-11-06 22:08:35 +03:00
# ESP12 module as used by many boards
examples/hwapi: Use Signal for inverted LED on ESP-12.
2017-01-01 20:05:35 +03:00
# Blue LED on pin 2, active low (inverted)
extmod/machine_signal: Rename "inverted" arg to "invert", it's shorter. A shorter name takes less code size, less room in scripts and is faster to type at the REPL. Tests and HW-API examples are updated to reflect the change.
2017-04-12 13:00:40 +10:00
LED = Signal(Pin(2, Pin.OUT), invert=True)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 38ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API