Skip to content

oksbwn/Picroft-Respeaker-2-HAT-LED-Effects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quality Gate Status Code Smells Lines of Code

Picroft Respeaker 2 HAT LED Effects

Python files to make LED effects on Respeaker 2 HAT from SeedStudio. Forked from here

Dependencies

$ mycroft-pip install spidev
$ mycroft-pip install mycroft-messagebus-client

Run as a service.

Find out the path to python bin folder inside the virtual env., use command echo $VIRTUAL_ENV, in my case it is /home/pi/mycroft-core/.venv/

Create a file pixels.service inside /etc/systemd/system/

$ sudo touch /etc/systemd/system/pixels.service
$ sudo nano /etc/systemd/system/pixels.service

and paste the following contents, make sure to change the Working Directory and path.

[Unit]
Description=Respeaker HAT pixels service
After=multi-user.target

[Service]
Type=idle
WorkingDirectory=/home/pi/Picroft-Respeaker-2-HAT-LED-Effects
ExecStart=/home/pi/mycroft-core/.venv/bin/python pixels.py
Restart=always
[Install]
WantedBy=multi-user.target

Now you need to enable the service,

$ sudo systemctl daemon-reload
$ sudo systemctl start pixels
$ sudo systemctl enable pixels

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages