Skip to content
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

Fix segmentation fault by passing IntPtr to pinned memory #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tillig
Copy link
Contributor

@tillig tillig commented Jun 6, 2019

This PR includes:

  • Update to PInvoke calls to pass the pinned memory location around rather than a ref variable.
  • Complete set of enum values for all the supported RGB strip types.
  • Clean up of build output that snuck back in.

It builds and looks like the code that I got working, however... I admit I haven't been able to do the due diligence of installing PowerShell Core on an RPi that has the strip connected to it and actually verify the functionality. Given some unfortunate events that have recently occurred in my personal life, I will not be able to take that all the way to completion, and I apologize ahead of time for that.

I'll note that the code in this repo has a .NET Core console app that I have absolutely verified as working on an RPi with the lights. Should the updates I made not be fully compatible, it may be interesting to just pull from that repo and wrap the PowerShell around that instead of trying to diff-and-apply changes in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant