DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today

Trending

  • Part 3 of My OCP Journey: Practical Tips and Examples
  • Tech Hiring: Trends, Predictions, and Strategies for Success
  • Mastering Time Series Analysis: Techniques, Models, and Strategies
  • Never Use Credentials in a CI/CD Pipeline Again

Trending

  • Part 3 of My OCP Journey: Practical Tips and Examples
  • Tech Hiring: Trends, Predictions, and Strategies for Success
  • Mastering Time Series Analysis: Techniques, Models, and Strategies
  • Never Use Credentials in a CI/CD Pipeline Again

ThinkGearNET Library

Brian Peek user avatar by
Brian Peek
·
Mar. 09, 10 · News
Like (0)
Save
Tweet
Share
3.99K Views

Join the DZone community and get the full member experience.

Join For Free

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

  • Library Source/Binary
  • MindBlaster
  • Support Forum

Questions welcome.  Enjoy!

 

Library

Published at DZone with permission of Brian Peek, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Part 3 of My OCP Journey: Practical Tips and Examples
  • Tech Hiring: Trends, Predictions, and Strategies for Success
  • Mastering Time Series Analysis: Techniques, Models, and Strategies
  • Never Use Credentials in a CI/CD Pipeline Again

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: