-
Notifications
You must be signed in to change notification settings - Fork 17
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
Exception is thrown when using .NET Core #2
Comments
As stated here , your code works because there's a bug on mono (how ironic is that right?). Later I'll try the given solution and report back here |
I've got it working. Basically I've done what they suggested, removed the array and set 2 fields |
@DanielSSilva I'm coming in late to this, but are you saying you changed [StructLayout(LayoutKind.Sequential)]
internal struct ws2811_t
{
public long render_wait_time;
public IntPtr device;
public IntPtr rpi_hw;
public uint freq;
public int dmanum;
public ws2811_channel_t channel_0;
public ws2811_channel_t channel_1;
} I did that and got past the blittable error and am now into some invalid GPIO pin errors, but that may just mean me having to work through required changes based on the above. Just wanted to make sure I'm on the right track. |
Hello @tillig. IIRC what I've done was something like that yes. |
@DanielSSilva Awesome, thanks! I'm going to continue muscling through and will ping you if needed - I appreciate that offer. |
Changes definitions per PR 4 to address rpi-ws281x#2.
As reported in issue #1, the library throws following System.ArgumentException when using .NET Core.
The text was updated successfully, but these errors were encountered: