-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Licensing #1
Comments
Hi Daniel, The C# solution consists of 2 projects:
Fabi |
Hello again. Thank you for your answer. Yesterday I was messing around with your repo and was able to compile it for core. Although when I ran it i had an exception on the ws281x_t ctor (if i recall correctly). It was this exception https://stackoverflow.com/questions/15544818/non-blittable-error-on-a-blittable-type?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa |
Oh and it would be a really good help if you/we could make this a nuget package in order to be easier to manage dependencies. |
Hi, |
Hi, no problem. I'm using the native library yes. Unhandled Exception: System.ArgumentException: Object contains non-primitive or non-blittable data.
at System.Runtime.InteropServices.GCHandle.InternalAlloc(Object value, GCHandleType type)
at System.Runtime.InteropServices.GCHandle.Alloc(Object value, GCHandleType type)
at rpi_ws281x.WS281x..ctor(Settings settings) in /home/daniel/Documents/RPI/rpi-ws281x-csharp/src/rpi_ws281x/WS281x.cs:line 28
at TestAppCore.ColorWipe.Execute(AbortRequest request) in /home/daniel/Documents/RPI/rpi-ws281x-csharp/src/TestAppCore/ColorWipe.cs:line 27
at TestAppCore.Program.Main(String[] args) in /home/daniel/Documents/RPI/rpi-ws281x-csharp/src/TestAppCore/Program.cs:line 38 This leads to the line where you pin the object into memory _ws2811Handle = GCHandle.Alloc(_ws2811, GCHandleType.Pinned); and it complains about this struct [MarshalAs(UnmanagedType.ByValArray, SizeConst = PInvoke.RPI_PWM_CHANNELS)]
public ws2811_channel_t[] channel; |
Since my current raspberry does not support armv7 instructions, I am not able to install .NET Core to reproduce the exception. I have just ordered a new model which will be delivered the next days. |
Hello there! Really glad that I've found this project :) As I've mentioned in the other issue (on the organization) I want to develop a module for PowerShell. I don't know if you are familiar with it, but PowerShell uses .Net Framework. This means that I can possibly use your module for the development. Although, there are 2 issues:
System.Drawing
. PowerShell Core uses the .Net core, which doesn't have that library.Would you be interested in trying to collaborate and migrate to .NET Core? If you don't want to, can I migrate your project (keep the credits) and migrate it to .NET Core?
Do you have any Slack or gitter that we can talk? (Or maybe twitter)
Thanks!
The text was updated successfully, but these errors were encountered: