-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from EAGrahamJr/fade_52
Return from fade on "None"
- Loading branch information
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ _build | |
# Virtual environment-specific files | ||
.env | ||
.venv | ||
venv | ||
|
||
# MacOS-specific files | ||
*.DS_Store | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: 2023 E. A. Graham, Jr. | ||
# SPDX-License-Identifier: MIT | ||
|
||
import time | ||
import board | ||
import busio | ||
from adafruit_is31fl3731.led_shim import LedShim as Display | ||
|
||
i2c = busio.I2C(board.SCL, board.SDA) | ||
|
||
# initial display if you are using Pimoroni LED SHIM | ||
display = Display(i2c) | ||
|
||
y = 1 | ||
for x in range(28): | ||
display.pixel(x, y, 255) | ||
|
||
display.fade(fade_in=104, pause=250) | ||
|
||
try: | ||
while True: | ||
time.sleep(10) | ||
except KeyboardInterrupt: | ||
display.sleep(True) |