GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - selectgithub/NeuroSkyUnityThinkGearPlugins: A plugins for Unity to create Android and iOS app and communicate with NeuroSky MindWave Device

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
Assets
Assets
 
 
ProjectSettings
ProjectSettings
 
 
UnityThinkGear2User4Android
UnityThinkGear2User4Android
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

#This project will not be updated, please go to https://github.com/selectgithub/NeuroSkyThinkGearBLE #这个工程不会被更新了,请到 https://github.com/selectgithub/NeuroSkyThinkGearBLE

NeuroSkyUnityThinkGearPlugins

A plugins for Unity to create Android and iOS app and communicate with NeuroSky MindWave Device

The folder "UnityThinkGear2User4Android" is the Eclipse project that generated "UnityThinkGear.jar".

NeuroSkyUnityThinkGear For iOS & Android Version 1.1.2

Instructions For iOS:

Run the Demo:

1.Drag the ThinkGear prefab from Project view to Hierarchy view

2.Drag the DisplayDataDemo prefab from Project view to Hierarchy view

3.Build project to Xcode project.

4.Open the Xcode project.

5.Navigate to your project settings.

6.Select Build Phases.

7.Expand Link Binary with Libraries

8.Click on + and select ExternalAccessory.framework and Accelerate.framework

9.Open Info.plist

10.Right Click and "Add Row",select "Support external accessory protocols"

11.Add "com.neurosky.thinkgear" for the value of protocol.

12.Build and Run Xcode project.

Run your own project:

1.Drag the ThinkGear prefab from Project view to Hierarchy view

2.At the place you want to use Attention,Meditation,EEG and so on,add code like following

void Start() {

	controller = GameObject.Find("ThinkGear").GetComponent<ThinkGearController>();
	
	controller.UpdatePoorSignalEvent += OnUpdatePoorSignal;
	controller.UpdateAttentionEvent += OnUpdateAttention;
	controller.UpdateMeditationEvent += OnUpdateMeditation;
	
	controller.UpdateDeltaEvent += OnUpdateDelta;
	
}

3.Implement every function above

......

......

......

4.Build project to Xcode project.

5.Open the Xcode project.

6.Navigate to your project settings.

7.Select Build Phases.

8.Expand Link Binary with Libraries

9.Click on + and select ExternalAccessory.framework and Accelerate.framework

10.Open Info.plist

11.Right Click and "Add Row",select "Support external accessory protocols"

12.Add "com.neurosky.thinkgear" for the value of protocol.

13.Build and Run Xcode project.

Instructions For Android:

Run the Demo:

1.Drag the ThinkGear prefab from Project view to Hierarchy view

2.Drag the DisplayDataDemo prefab from Project view to Hierarchy view

3.Build project to an apk file.

4.Install apk to Android device.

5.Click "Connect1" to try to connect headset

Run your own project:

1.Drag the ThinkGear prefab from Project view to Hierarchy view

2.At the place you want to use Attention,Meditation,EEG and so on,add following code

void Start() {

	controller = GameObject.Find("ThinkGear").GetComponent<TGDeviceController>();
	
	controller.UpdatePoorSignal1Event += OnUpdatePoorSignal;
	controller.UpdateAttention1Event += OnUpdateAttention;
	controller.UpdateMeditation1Event += OnUpdateMeditation;
	
	controller.UpdateDelta1Event += OnUpdateDelta;
	
}

3.Implement every function above

4.Call Connect() function of TGCConnectionController to connect

5.Call disconnect() function of TGCConnectionController to disconnect

Note:

Before building,you must fill Bundle Identifier in Other Settings with "com.yourcompany.yourappname", and must modify Plugins/Android/AndroidManifest.xml,like package="com.yourcompany.yourappname".

Any question/issues,contact [email protected]

About

A plugins for Unity to create Android and iOS app and communicate with NeuroSky MindWave Device

Resources

Readme
Activity

Stars

18 stars

Watchers

5 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.