change comment
This commit is contained in:
parent
e39f1f9bed
commit
38d83acfa7
1 changed files with 25 additions and 26 deletions
|
|
@ -4,33 +4,32 @@
|
||||||
|
|
||||||
# pylint: disable=import-error
|
# pylint: disable=import-error
|
||||||
|
|
||||||
"""
|
|
||||||
NeoPixel goggles code for CircuitPython
|
|
||||||
|
|
||||||
With a rotary encoder attached (pins are declred in the "Initialize
|
# NeoPixel goggles code for CircuitPython
|
||||||
hardware" section of the code), you can select animation modes and
|
#
|
||||||
configurable attributes (color, brightness, etc.). TAP the encoder
|
# With a rotary encoder attached (pins are declred in the "Initialize
|
||||||
button to switch between modes/settings, HOLD the encoder button to
|
# hardware" section of the code), you can select animation modes and
|
||||||
toggle between PLAY and CONFIGURE states.
|
# configurable attributes (color, brightness, etc.). TAP the encoder
|
||||||
|
# button to switch between modes/settings, HOLD the encoder button to
|
||||||
With no rotary encoder attached, you can select an animation mode
|
# toggle between PLAY and CONFIGURE states.
|
||||||
and configure attributes in the "Configurable defaults" section
|
#
|
||||||
(including an option to auto-cycle through the animation modes).
|
# With no rotary encoder attached, you can select an animation mode
|
||||||
|
# and configure attributes in the "Configurable defaults" section
|
||||||
Things to Know:
|
# (including an option to auto-cycle through the animation modes).
|
||||||
- FancyLED library is NOT used here because it's a bit too much for the
|
#
|
||||||
Trinket M0 to handle (animation was very slow).
|
# Things to Know:
|
||||||
- Animation modes are all monochromatic (single color, varying only in
|
# - FancyLED library is NOT used here because it's a bit too much for the
|
||||||
brightness). More a design decision than a technical one...of course
|
# Trinket M0 to handle (animation was very slow).
|
||||||
NeoPixels can be individual colors, but folks like customizing and the
|
# - Animation modes are all monochromatic (single color, varying only in
|
||||||
monochromatic approach makes it easier to select a color. Also keeps the
|
# brightness). More a design decision than a technical one...of course
|
||||||
code a bit simpler, since Trinket space & performance is limited.
|
# NeoPixels can be individual colors, but folks like customizing and the
|
||||||
- Animation is monotonic time driven; there are no sleep() calls. This
|
# monochromatic approach makes it easier to select a color. Also keeps the
|
||||||
ensures that animation is constant-time regardless of the hardware or
|
# code a bit simpler, since Trinket space & performance is limited.
|
||||||
CircuitPython performance over time, or other goings on (e.g. garbage
|
# - Animation is monotonic time driven; there are no sleep() calls. This
|
||||||
collection), only the frame rate (smoothness) varies; overall timing
|
# ensures that animation is constant-time regardless of the hardware or
|
||||||
remains consistent.
|
# CircuitPython performance over time, or other goings on (e.g. garbage
|
||||||
"""
|
# collection), only the frame rate (smoothness) varies; overall timing
|
||||||
|
# remains consistent.
|
||||||
|
|
||||||
from math import modf, pi, sin
|
from math import modf, pi, sin
|
||||||
from random import getrandbits
|
from random import getrandbits
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue