diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3e21c9c..78b46d7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,15 +1,19 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/ws281xPowerShell.csproj" - ], - "problemMatcher": "$msCompile" - } - ] + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/ws281xPowerShell.csproj" + ], + "problemMatcher": "$msCompile", + "group": { + "kind": "build", + "isDefault": true + } + } + ] } \ No newline at end of file diff --git a/src/CmdLets/Set/BreathingLedCmdLet.cs b/src/CmdLets/Set/BreathingLedCmdLet.cs index 5f9c231..a091435 100644 --- a/src/CmdLets/Set/BreathingLedCmdLet.cs +++ b/src/CmdLets/Set/BreathingLedCmdLet.cs @@ -5,7 +5,7 @@ namespace WS281x.CmdLets { - + [Cmdlet(VerbsCommon.Set, "BreathingLed")] public class BreathingLed : Cmdlet { @@ -28,7 +28,7 @@ public BreathingLed() { Invert = false; GpioPin = 18; - + } protected override void BeginProcessing() @@ -46,7 +46,7 @@ protected override void ProcessRecord() int i = 0; while(true) { - settings.Channel = new Channel(30, GpioPin, (byte)_brightness, Invert, StripType.WS2812_STRIP); + settings.Channel = new Channel(30, GpioPin, (byte)_brightness, Invert, StripType.WS2811_STRIP_GRB); using(WS281x controller = new WS281x(settings)) { //controller.SetLEDColor(this.LedId, this.Color); @@ -74,7 +74,7 @@ protected override void ProcessRecord() } else { - _brightness -=1; + _brightness -=1; } i+=1; Console.WriteLine($"index = {i} / Brightness = {_brightness} / BreathingAsc = {breathingAsc}"); @@ -87,4 +87,4 @@ protected override void ProcessRecord() // _Controller.Dispose(); // } } -} \ No newline at end of file +} diff --git a/src/CmdLets/Set/ExplosionCmdLet.cs b/src/CmdLets/Set/ExplosionCmdLet.cs index e8ad9bb..71aba43 100644 --- a/src/CmdLets/Set/ExplosionCmdLet.cs +++ b/src/CmdLets/Set/ExplosionCmdLet.cs @@ -6,7 +6,7 @@ namespace WS281x.CmdLets { - + [Cmdlet(VerbsCommon.Set, "Explosion")] public class Explosion : Cmdlet { @@ -42,7 +42,7 @@ public Explosion() { Invert = false; GpioPin = 18; - + } protected override void BeginProcessing() @@ -65,18 +65,18 @@ protected override void ProcessRecord() Speed = "Medium"; Settings settings = Settings.CreateDefaultSettings(); - settings.Channel = new Channel(NumberOfLeds, GpioPin, Brightness, Invert, StripType.WS2812_STRIP); + settings.Channel = new Channel(NumberOfLeds, GpioPin, Brightness, Invert, StripType.WS2811_STRIP_GRB); WS281x controller = new WS281x(settings); int leftSideIterations = NumberOfLeds / 2; // If it's even, both sides will have the same amount of iterations, otherwise make right side have one more - int rightSideIterations = (NumberOfLeds % 2 == 0) ? leftSideIterations : leftSideIterations+1; + int rightSideIterations = (NumberOfLeds % 2 == 0) ? leftSideIterations : leftSideIterations+1; int totalIterations = 0, leftSide = 0, rightSide = NumberOfLeds-1; for(; totalIterations < rightSideIterations ; ++totalIterations) { - - controller.SetLEDColor(leftSide++,LeftSideColor); + + controller.SetLEDColor(leftSide++,LeftSideColor); controller.SetLEDColor(rightSide--,RightSideColor); controller.Render(); Thread.Sleep(_speedTranslation[Speed]); @@ -84,7 +84,7 @@ protected override void ProcessRecord() for(; totalIterations >= 0 ; --totalIterations) { - controller.SetLEDColor(leftSide--,ExplosionColor); + controller.SetLEDColor(leftSide--,ExplosionColor); controller.SetLEDColor(rightSide++,ExplosionColor); controller.Render(); Thread.Sleep(10); @@ -98,4 +98,4 @@ protected override void ProcessRecord() controller.Dispose(); } } -} \ No newline at end of file +} diff --git a/src/CmdLets/Set/LedAccrossStripCmdLet.cs b/src/CmdLets/Set/LedAccrossStripCmdLet.cs index 1bddbd6..3620b87 100644 --- a/src/CmdLets/Set/LedAccrossStripCmdLet.cs +++ b/src/CmdLets/Set/LedAccrossStripCmdLet.cs @@ -6,7 +6,7 @@ namespace WS281x.CmdLets { - + [Cmdlet(VerbsCommon.Set, "LedAccrossStrip")] public class LedAccrossStrip : Cmdlet { @@ -35,7 +35,7 @@ public LedAccrossStrip() { Invert = false; GpioPin = 18; - + } protected override void BeginProcessing() @@ -51,25 +51,25 @@ protected override void BeginProcessing() protected override void ProcessRecord() { Settings settings = Settings.CreateDefaultSettings(); - settings.Channel = new Channel(NumberOfLeds, GpioPin, Brightness, Invert, StripType.WS2812_STRIP); + settings.Channel = new Channel(NumberOfLeds, GpioPin, Brightness, Invert, StripType.WS2811_STRIP_GRB); WS281x controller = new WS281x(settings); - + for(int i = 0 ; i < NumberOfLeds ; ++i) { for(int j = 0 ; j < i ; ++j) { controller.SetLEDColor(j, Color.Empty); } - controller.SetLEDColor(i,Color); + controller.SetLEDColor(i,Color); controller.Render(); Thread.Sleep(_speedTranslation[Speed]); } - //"hack". turn the last led off + //"hack". turn the last led off controller.SetLEDColor(NumberOfLeds-1,Color.Empty); controller.Render(); //for some reason it has to be explicitly disposed controller.Dispose(); } } -} \ No newline at end of file +} diff --git a/src/CmdLets/Set/RainbowCycleCmdLet.cs b/src/CmdLets/Set/RainbowCycleCmdLet.cs index f22bfb1..ad9e893 100644 --- a/src/CmdLets/Set/RainbowCycleCmdLet.cs +++ b/src/CmdLets/Set/RainbowCycleCmdLet.cs @@ -6,7 +6,7 @@ namespace WS281x.CmdLets { - + [Cmdlet(VerbsCommon.Set, "RainbowCycle")] public class RainbowCycle : Cmdlet { @@ -20,21 +20,21 @@ public class RainbowCycle : Cmdlet [Parameter(Mandatory = false)] public SwitchParameter Invert { get; set; } - + [Parameter(Mandatory = false, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, Position = 2)] public int NumberOfCycles { get; set ;} public int GpioPin {get; set;} private bool shouldAbort; - + //private WS281x _controller; public RainbowCycle() { Invert = false; GpioPin = 18; - + } protected override void BeginProcessing() @@ -50,7 +50,7 @@ protected override void ProcessRecord() } Settings settings = Settings.CreateDefaultSettings(); - settings.Channel = new Channel(NumberOfLeds, GpioPin, Brightness, Invert, StripType.WS2812_STRIP); + settings.Channel = new Channel(NumberOfLeds, GpioPin, Brightness, Invert, StripType.WS2811_STRIP_GRB); WS281x controller = new WS281x(settings); List colors = GetColors(); @@ -64,7 +64,7 @@ protected override void ProcessRecord() //Iterate over all LEDs and display the current color controller.SetLEDColor(i,currentColor); controller.Render(); - Thread.Sleep(25); + Thread.Sleep(25); } } } @@ -82,4 +82,4 @@ protected override void ProcessRecord() Color.Blue }; } -} \ No newline at end of file +} diff --git a/src/CmdLets/Set/SetLedCmdLet.cs b/src/CmdLets/Set/SetLedCmdLet.cs index afb96ba..60a3c11 100644 --- a/src/CmdLets/Set/SetLedCmdLet.cs +++ b/src/CmdLets/Set/SetLedCmdLet.cs @@ -3,7 +3,7 @@ using System.Management.Automation; // PowerShell namespace. namespace WS281x.CmdLets { - + [Cmdlet(VerbsCommon.Set, "SingleLedColor")] public class SetSingleLedColor : Cmdlet , IDisposable { @@ -27,13 +27,13 @@ public SetSingleLedColor() { Invert = false; GpioPin = 18; - + } protected override void BeginProcessing() { Settings settings = Settings.CreateDefaultSettings(); - settings.Channel = new Channel(30, GpioPin, Brightness, Invert, StripType.WS2812_STRIP); + settings.Channel = new Channel(30, GpioPin, Brightness, Invert, StripType.WS2811_STRIP_GRB); _Controller = new WS281x(settings); } @@ -48,4 +48,4 @@ public void Dispose() _Controller.Dispose(); } } -} \ No newline at end of file +} diff --git a/src/Native/PInvoke.cs b/src/Native/PInvoke.cs index 999d1a4..2eaa2fe 100644 --- a/src/Native/PInvoke.cs +++ b/src/Native/PInvoke.cs @@ -1,24 +1,28 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace WS281x.Native { internal class PInvoke { - public const int RPI_PWM_CHANNELS = 2; - + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] [DllImport("ws2811.so")] - public static extern ws2811_return_t ws2811_init(ref ws2811_t ws2811); - + public static extern ws2811_return_t ws2811_init(IntPtr ws2811); + + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] [DllImport("ws2811.so")] - public static extern ws2811_return_t ws2811_render(ref ws2811_t ws2811); + public static extern ws2811_return_t ws2811_render(IntPtr ws2811); + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] [DllImport("ws2811.so")] - public static extern ws2811_return_t ws2811_wait(ref ws2811_t ws2811); - + public static extern ws2811_return_t ws2811_wait(IntPtr ws2811); + + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] [DllImport("ws2811.so")] - public static extern void ws2811_fini(ref ws2811_t ws2811); + public static extern void ws2811_fini(IntPtr ws2811); + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] [DllImport("ws2811.so")] public static extern IntPtr ws2811_get_return_t_str(int state); } diff --git a/src/Native/ws2811_channel_t.cs b/src/Native/ws2811_channel_t.cs index bb8c38c..845d452 100644 --- a/src/Native/ws2811_channel_t.cs +++ b/src/Native/ws2811_channel_t.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Runtime.InteropServices; using System.Text; @@ -8,6 +9,7 @@ namespace WS281x.Native { [StructLayout(LayoutKind.Sequential)] + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] internal struct ws2811_channel_t { public int gpionum; diff --git a/src/Native/ws2811_return_t.cs b/src/Native/ws2811_return_t.cs index 1ea8b33..b1d1b61 100644 --- a/src/Native/ws2811_return_t.cs +++ b/src/Native/ws2811_return_t.cs @@ -1,5 +1,8 @@ +using System.Diagnostics.CodeAnalysis; + namespace WS281x.Native { + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] internal enum ws2811_return_t { WS2811_SUCCESS = 0, @@ -18,4 +21,4 @@ internal enum ws2811_return_t WS2811_ERROR_SPI_SETUP = -13, WS2811_ERROR_SPI_TRANSFER = -14 } -} \ No newline at end of file +} diff --git a/src/Native/ws2811_t.cs b/src/Native/ws2811_t.cs index 817135b..07f2cdd 100644 --- a/src/Native/ws2811_t.cs +++ b/src/Native/ws2811_t.cs @@ -1,8 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace WS281x.Native { + [SuppressMessage("IDE1006", "IDE1006", Justification = "Native methods have different naming conventions.")] [StructLayout(LayoutKind.Sequential)] internal struct ws2811_t { @@ -11,9 +13,7 @@ internal struct ws2811_t public IntPtr rpi_hw; public uint freq; public int dmanum; - // [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.CustomMarshaler, SizeConst = PInvoke.RPI_PWM_CHANNELS)] - // public ws2811_channel_t[] channel; - public ws2811_channel_t channel1; - public ws2811_channel_t channel2; + public ws2811_channel_t channel_1; + public ws2811_channel_t channel_2; } } diff --git a/src/Program.cs b/src/Program.cs index b8c88a3..a6352be 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -12,7 +12,7 @@ static void Main(string[] args) byte brightness = 255; bool invert = false; Settings settings = Settings.CreateDefaultSettings(); - settings.Channel = new Channel(ledCount, gpioPin, brightness, invert, StripType.WS2812_STRIP); + settings.Channel = new Channel(ledCount, gpioPin, brightness, invert, StripType.WS2811_STRIP_GRB); using (WS281x controller = new WS281x(settings)) { controller.SetLEDColor(0, Color.Brown); diff --git a/src/StripType.cs b/src/StripType.cs index 748a822..80dea68 100644 --- a/src/StripType.cs +++ b/src/StripType.cs @@ -8,9 +8,71 @@ namespace WS281x /// The type of the LED strip defines the ordering of the colors (e. g. RGB, GRB, ...). /// Maybe the RGBValue property of the LED class needs to be changed if there are other strip types. /// - public enum StripType - { + public enum StripType + { + /// + /// Unknown / unset. + /// Unknown = 0, - WS2812_STRIP = 0x00081000 + + /// + /// SK6812_STRIP_RGBW + /// + SK6812_STRIP_RGBW = 0x18100800, + + /// + /// SK6812_STRIP_RBGW + /// + SK6812_STRIP_RBGW = 0x18100008, + + /// + /// SK6812_STRIP_GRBW + /// + SK6812_STRIP_GRBW = 0x18081000, + + /// + /// SK6812_STRIP_GBRW + /// + SK6812_STRIP_GBRW = 0x18080010, + + /// + /// SK6812_STRIP_BRGW + /// + SK6812_STRIP_BRGW = 0x18001008, + + /// + /// SK6812_STRIP_BGRW + /// + SK6812_STRIP_BGRW = 0x18000810, + + /// + /// WS2811_STRIP_RGB + /// + WS2811_STRIP_RGB = 0x00100800, + + /// + /// WS2811_STRIP_RBG + /// + WS2811_STRIP_RBG = 0x00100008, + + /// + /// WS2811_STRIP_GRB + /// + WS2811_STRIP_GRB = 0x00081000, + + /// + /// WS2811_STRIP_GBR + /// + WS2811_STRIP_GBR = 0x00080010, + + /// + /// WS2811_STRIP_BRG + /// + WS2811_STRIP_BRG = 0x00001008, + + /// + /// WS2811_STRIP_BGR + /// + WS2811_STRIP_BGR = 0x00000810, } } diff --git a/src/WS281x.cs b/src/WS281x.cs index cb32b78..00dae1e 100644 --- a/src/WS281x.cs +++ b/src/WS281x.cs @@ -21,33 +21,23 @@ public class WS281x : IDisposable /// Settings used for initialization public WS281x(Settings settings) { - //_ws2811Handle = GCHandle.Alloc(_ws2811, GCHandleType.Pinned); _ws2811 = new ws2811_t(); - //Pin the object in memory. Otherwise GC will probably move the object to another memory location. - //This would cause errors because the native library has a pointer on the memory location of the object. _ws2811Handle = GCHandle.Alloc(_ws2811, GCHandleType.Pinned); _ws2811.dmanum = settings.DMAChannel; _ws2811.freq = settings.Frequency; - _ws2811.channel1 = new ws2811_channel_t(); - InitChannel(settings.Channel); - // for(int i=0; i< _ws2811.channel.Length; i++) - // { - // if(settings.Channels[i] != null) - // { - // InitChannel(i, settings.Channels[i]); - // } - // } + _ws2811.channel_1 = default; + InitChannel(ref _ws2811.channel_1, settings.Channel); Settings = settings; - var initResult = PInvoke.ws2811_init(ref _ws2811); + var initResult = PInvoke.ws2811_init(_ws2811Handle.AddrOfPinnedObject()); if (initResult != ws2811_return_t.WS2811_SUCCESS) { var returnMessage = GetMessageForStatusCode(initResult); throw new Exception(String.Format("Error while initializing.{0}Error code: {1}{0}Message: {2}", Environment.NewLine, initResult.ToString(), returnMessage)); - } - + } + //Disposing is only allowed if the init was successfull. //Otherwise the native cleanUp function throws an error. _isDisposingAllowed = true; @@ -58,17 +48,9 @@ public WS281x(Settings settings) /// public void Render() { - // for(int i=0; i< Settings.Channels.Length; i++) - // { - // if (Settings.Channels[i] != null) - // { - // var ledColor = Settings.Channels[i].Leds.Select(x => x.RGBValue).ToArray(); - // Marshal.Copy(ledColor, 0, _ws2811.channel[i].leds, ledColor.Count()); - // } - // } var ledColor = Settings.Channel.Leds.Select(x => x.RGBValue).ToArray(); - Marshal.Copy(ledColor, 0, _ws2811.channel1.leds, ledColor.Count()); - var result = PInvoke.ws2811_render(ref _ws2811); + Marshal.Copy(ledColor, 0, _ws2811.channel_1.leds, ledColor.Count()); + var result = PInvoke.ws2811_render(_ws2811Handle.AddrOfPinnedObject()); if (result != ws2811_return_t.WS2811_SUCCESS) { var returnMessage = GetMessageForStatusCode(result); @@ -101,22 +83,20 @@ public void SetColorOnAllLEDs(Color color) public Settings Settings { get; private set; } /// - /// Initialize the channel properties + /// Initialize the channel properties. /// - /// Index of the channel to initialize - /// Settings for the channel - private void InitChannel(Channel channelSettings) + /// Channel to initialize. + /// Settings for the channel. + private void InitChannel(ref ws2811_channel_t channel, Channel channelSettings) { - _ws2811.channel1.count = channelSettings.Leds.Count; - _ws2811.channel1.gpionum = channelSettings.GPIOPin; - _ws2811.channel1.brightness = channelSettings.Brightness; - _ws2811.channel1.invert = Convert.ToInt32(channelSettings.Invert); + channel.count = channelSettings.LEDCount; + channel.gpionum = channelSettings.GPIOPin; + channel.brightness = channelSettings.Brightness; + channel.invert = Convert.ToInt32(channelSettings.Invert); - if(channelSettings.StripType != StripType.Unknown) + if (channelSettings.StripType != StripType.Unknown) { - //Strip type is set by the native assembly if not explicitly set. - //This type defines the ordering of the colors e. g. RGB or GRB, ... - _ws2811.channel1.strip_type = (int)channelSettings.StripType; + channel.strip_type = (int)channelSettings.StripType; } } @@ -131,7 +111,6 @@ private string GetMessageForStatusCode(ws2811_return_t statusCode) return Marshal.PtrToStringAuto(strPointer); } - #region IDisposable Support private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) @@ -148,31 +127,29 @@ protected virtual void Dispose(bool disposing) if(_isDisposingAllowed) { - PInvoke.ws2811_fini(ref _ws2811); - _ws2811Handle.Free(); //until I find a way to successfully allocate the resource, this will throw exception - + PInvoke.ws2811_fini(_ws2811Handle.AddrOfPinnedObject()); + if(_ws2811Handle.IsAllocated) + { + _ws2811Handle.Free(); + } + _isDisposingAllowed = false; } - + disposedValue = true; } } - // TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources. ~WS281x() { - // Do not change this code. Put cleanup code in Dispose(bool disposing) above. + // Do not change this code. Put cleanup code in Dispose(bool disposing) above. Dispose(false); } - // This code added to correctly implement the disposable pattern. public void Dispose() { - // Do not change this code. Put cleanup code in Dispose(bool disposing) above. Dispose(true); - // TODO: uncomment the following line if the finalizer is overridden above. - // GC.SuppressFinalize(this); + GC.SuppressFinalize(this); } - #endregion } } diff --git a/src/bin/Debug/netcoreapp2.0/WS281x.psd1 b/src/bin/Debug/netcoreapp2.0/WS281x.psd1 deleted file mode 100644 index 6b40cfc..0000000 --- a/src/bin/Debug/netcoreapp2.0/WS281x.psd1 +++ /dev/null @@ -1,123 +0,0 @@ -# -# Module manifest for module 'WS281x' -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = 'ws281xPowerShell.dll' - -# Version number of this module. -ModuleVersion = '0.1.0' - -# Supported PSEditions -CompatiblePSEditions = @( 'Core' ) - -# ID used to uniquely identify this module -GUID = '4faec395-922b-4811-bd4d-610f95b55a22' - -# Author of this module -Author = 'rpi-ws281x' - -# Company or vendor of this module -# CompanyName = 'rpi-ws281x' - -# Copyright statement for this module -# Copyright = '(c) rpi-ws281x. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'PowerShell wrapper for the rpi-ws281x library' - -# Minimum version of the PowerShell engine required by this module -# PowerShellVersion = '' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# DotNetFrameworkVersion = '' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# CLRVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -# RequiredModules = @() - -# Assemblies that must be loaded prior to importing this module -# RequiredAssemblies = @() - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -ScriptsToProcess = @( 'init.ps1' ) - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -# FormatsToProcess = @() - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport= @( 'Set-SingleLedColor', - 'Set-BreathingLed', - 'Set-Explosion', - 'Set-LedAccrossStrip', - 'Set-RainbowCycle' ) - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = @() - -# Variables to export from this module -VariablesToExport = '*' - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = @() - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - - PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = @('IoT') - - # A URL to the license for this module. - # LicenseUri = '' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/rpi-ws281x/rpi-ws281x-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - # ReleaseNotes = '' - - } # End of PSData hashtable - -} # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - -} - diff --git a/src/bin/Debug/netcoreapp2.0/init.ps1 b/src/bin/Debug/netcoreapp2.0/init.ps1 deleted file mode 100644 index 8c562f0..0000000 --- a/src/bin/Debug/netcoreapp2.0/init.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -# Script to run that will copy the needed dependency into /usr/bin -if (-not (Test-Path "/usr/bin/ws2811.so")) { - Write-Host "copying 'ws2811.so' to '/usr/bin' for initial setup." - Copy-Item "$PSScriptRoot/ws2811.so" /usr/bin -} \ No newline at end of file diff --git a/src/bin/Debug/netcoreapp2.0/lib/ws2811.so b/src/bin/Debug/netcoreapp2.0/lib/ws2811.so deleted file mode 100644 index 4f4374a..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/lib/ws2811.so and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Collections.Concurrent.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Collections.Concurrent.dll deleted file mode 100755 index d20096e..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Collections.Concurrent.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Collections.Immutable.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Collections.Immutable.dll deleted file mode 100755 index cbf7621..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Collections.Immutable.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.NameResolution.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.NameResolution.dll deleted file mode 100755 index c996d97..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.NameResolution.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.Ping.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.Ping.dll deleted file mode 100755 index 494f61e..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.Ping.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.Requests.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.Requests.dll deleted file mode 100755 index 047278d..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.Requests.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.WebClient.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.WebClient.dll deleted file mode 100755 index 5e55c93..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Net.WebClient.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Numerics.Vectors.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Numerics.Vectors.dll deleted file mode 100755 index 5da8555..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Numerics.Vectors.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Private.Xml.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Private.Xml.dll deleted file mode 100755 index 92dd941..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Private.Xml.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Reflection.TypeExtensions.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Reflection.TypeExtensions.dll deleted file mode 100755 index c0d43df..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Reflection.TypeExtensions.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Resources.Reader.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Resources.Reader.dll deleted file mode 100755 index 3e949dd..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Resources.Reader.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Resources.ResourceManager.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Resources.ResourceManager.dll deleted file mode 100755 index d2d5fe6..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Resources.ResourceManager.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Runtime.Serialization.Formatters.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Runtime.Serialization.Formatters.dll deleted file mode 100755 index a9e5341..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Runtime.Serialization.Formatters.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Runtime.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Runtime.dll deleted file mode 100755 index 1de4dde..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Runtime.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.AccessControl.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.AccessControl.dll deleted file mode 100755 index d17ac64..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.AccessControl.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.Cryptography.Algorithms.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.Cryptography.Algorithms.dll deleted file mode 100755 index 10e28b2..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.Cryptography.Algorithms.dll and /dev/null differ diff --git a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.dll b/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.dll deleted file mode 100755 index 7eaf087..0000000 Binary files a/src/bin/Debug/netcoreapp2.0/linux-arm/publish/System.Security.dll and /dev/null differ diff --git a/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.assets.cache b/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.assets.cache deleted file mode 100644 index d744761..0000000 Binary files a/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.assets.cache and /dev/null differ diff --git a/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csproj.FileListAbsolute.txt b/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csproj.FileListAbsolute.txt deleted file mode 100644 index ef40583..0000000 --- a/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,33 +0,0 @@ -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/libhostpolicy.so -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/libhostfxr.so -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/lib/ws2811.so -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/WS281x.psd1 -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/init.ps1 -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.deps.json -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.runtimeconfig.json -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.runtimeconfig.dev.json -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.dll -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/bin/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.pdb -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csproj.CoreCompileInputs.cache -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.AssemblyInfoInputs.cache -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.AssemblyInfo.cs -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.dll -/home/daniel/Documents/RPI/rpi-ws281x-powershell/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.pdb -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\WS281x.psd1 -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\libhostpolicy.so -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\libhostfxr.so -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\lib\ws2811.so -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\init.ps1 -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.deps.json -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.runtimeconfig.json -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.runtimeconfig.dev.json -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.dll -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.pdb -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.csprojAssemblyReference.cache -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.csproj.CoreCompileInputs.cache -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.AssemblyInfoInputs.cache -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.AssemblyInfo.cs -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.dll -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\linux-arm\ws281xPowerShell.pdb diff --git a/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csprojAssemblyReference.cache b/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csprojAssemblyReference.cache deleted file mode 100644 index 3ba1ff0..0000000 Binary files a/src/obj/Debug/netcoreapp2.0/linux-arm/ws281xPowerShell.csprojAssemblyReference.cache and /dev/null differ diff --git a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.assets.cache b/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.assets.cache deleted file mode 100644 index 1bbbcfb..0000000 Binary files a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.assets.cache and /dev/null differ diff --git a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.csproj.FileListAbsolute.txt b/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.csproj.FileListAbsolute.txt deleted file mode 100644 index f5217a1..0000000 --- a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,14 +0,0 @@ -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\lib\ws2811.so -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\WS281x.psd1 -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\init.ps1 -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\ws281xPowerShell.deps.json -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\ws281xPowerShell.runtimeconfig.json -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\ws281xPowerShell.runtimeconfig.dev.json -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\ws281xPowerShell.dll -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\bin\Debug\netcoreapp2.0\ws281xPowerShell.pdb -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\ws281xPowerShell.csprojAssemblyReference.cache -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\ws281xPowerShell.csproj.CoreCompileInputs.cache -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\ws281xPowerShell.AssemblyInfoInputs.cache -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\ws281xPowerShell.AssemblyInfo.cs -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\ws281xPowerShell.dll -F:\Projects\RaspberryPi\rpi-ws281x-powershell\src\obj\Debug\netcoreapp2.0\ws281xPowerShell.pdb diff --git a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.csprojAssemblyReference.cache b/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.csprojAssemblyReference.cache deleted file mode 100644 index f80036b..0000000 Binary files a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.csprojAssemblyReference.cache and /dev/null differ diff --git a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.dll b/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.dll deleted file mode 100644 index 4ad7c03..0000000 Binary files a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.dll and /dev/null differ diff --git a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.pdb b/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.pdb deleted file mode 100644 index ad11001..0000000 Binary files a/src/obj/Debug/netcoreapp2.0/ws281xPowerShell.pdb and /dev/null differ diff --git a/src/ws2811.so b/src/ws2811.so deleted file mode 100644 index 775dba9..0000000 Binary files a/src/ws2811.so and /dev/null differ diff --git a/src/ws281xPowerShell.csproj b/src/ws281xPowerShell.csproj index f855681..7185ee4 100644 --- a/src/ws281xPowerShell.csproj +++ b/src/ws281xPowerShell.csproj @@ -2,11 +2,11 @@ Exe - netcoreapp2.0 + netcoreapp2.1 - +