Skip to content

rpi-ws281x/rpi-ws281x-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-ws281x-powershell

This project is based on the rpi-ws281x-csharp and allows the usage of PowerShell Core to interact with this type of LEDs!

Since this wraps another library (a C library - ws2811.so), we need to set this .so file where the P/Invoke search. In order to do so:

  1. Clone this repo
  2. Follow this installation

New to PowerShell?

Check here how to install it

Examples

This will properly documented in a near future.

In the folder that you've just cloned, enter on PowerShell with sudo pwsh

Explosion

Import-Module ./bin/Debug/netcoreapp2.0/linux-arm/publish/ws281xPowerShell.dll
$explosionSettings = [PSCustomObject]@{
  NumberOfLeds = 21
  Brightness = 5
  LeftSideColor = [System.Drawing.Color]::Blue
  RightSideColor = [System.Drawing.Color]::Green
  Speed = "Slow"
}
$explosionSettings | Set-Explosion

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published