Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import board | |
import neopixel | |
pixel_pin = board.D10 | |
except NotImplementedError: | |
pass | |
try: | |
import ulab as np | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In 2019, I plan to wrap up the _pixelbuf work to accelerate operations on Dotstar and Neopixel strips and matrices. | |
Once that work is done, I plan to add support to it to help work with grids by adding C level pixel order remapping | |
support as well as c-level column/row helpers. Ideally I would also be able to make these work with other display | |
libraries so that we can use these as low-resolution displays. | |
Beyond that, I hope to work on more networking-oriented stuff in CircuitPython as i'd like to replace all my custom | |
smart home internet things with CircuitPython powered devices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Metro IO demo | |
# Welcome to CircuitPython 2.2.0 :) | |
import board | |
import time | |
import neopixel | |
from digitalio import DigitalInOut, Direction, Pull | |
from analogio import AnalogIn | |
import audioio | |
import touchio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch: | |
platform: mock | |
switches: | |
LR Autolight: on | |
automation: | |
- alias: Turn on LR lights | |
trigger: | |
platform: state |