by Brian Peek via BrianPeek.com on 3/8/2010 8:06:00 PM
I have written and posted a new library that allows .NET developers to easily connect to and use the Neurosky MindSet headset from any .NET application. You can find the source code and a binary of the library at CodePlex. Usage is very simple and may seem familiar to those that have used my .NET Wiimote LIbrary; set a reference to the library and you can connect to a headset as follows:
private ThinkGearWrapper _thinkGearWrapper = new ThinkGearWrapper();
private void Connect()
{
_thinkGearWrapper = new ThinkGearWrapper();
// setup the event
_thinkGearWrapper.ThinkGearChanged += _thinkGearWrapper_ThinkGearChanged;
// connect to the device on the specified COM port at 57600 baud
_thinkGearWrapper.Connect("COM4", 57600, true);
}
void _thinkGearWrapper_ThinkGearChanged(object sender, ThinkGearChangedEventArgs e)
// write out one of the many properties
Debug.WriteLine("Attention: " + e.ThinkGearState.Attention;
The download includes a test application with source code that shows how to use the library in any .NET application. You can see a more advanced usage example by taking a look at my MindBlaster article or reading through its source code.
Links
Questions welcome. Enjoy!
Original Post: ThinkGearNET Library
The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.