Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plasmad and plasmactl for new library
Switch plasma to use /etc/plasma/plasma.conf for LED configuration, instead of editing the systemd unit. A couple of bugfixes and tweaks to the plasma library make this work smoothly: 1. Allow "auto" to accept a config file path 2. Squash errors related to pruning config options before initialising a device 3. Support regular list/dict in set_sequence
- Loading branch information
Showing
12 changed files
with
228 additions
and
42 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pixels: 40 | ||
devices: | ||
picade_hat: | ||
type: APA102 | ||
pixels: 40 | ||
offset: 0 | ||
gpio_data: 14 | ||
gpio_clock: 15 | ||
picade_player_x: | ||
type: serial | ||
port: /dev/ttyACM0 | ||
pixels: 40 | ||
offset: 0 | ||
enabled: False |
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
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
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
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
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,18 @@ | ||
import pytest | ||
|
||
|
||
def test_fx_cycle(argv, GPIO): | ||
"""Test that set_sequence supports the output of a PlasmaFX Sequence""" | ||
from plasma import auto | ||
from plasma.apa102 import PlasmaAPA102 | ||
from plasmafx import Sequence | ||
from plasmafx.plugins import FXCycle | ||
|
||
sequence = Sequence(10) | ||
sequence.set_plugin(0, FXCycle()) | ||
|
||
plasma = auto("APA102:14:15:pixel_count=10") | ||
|
||
plasma.set_sequence(sequence.get_pixels()) | ||
|
||
assert isinstance(plasma, PlasmaAPA102) |
Oops, something went wrong.