neurosky

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2025 License: Apache-2.0, Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtendedEvent   = "extended"
	SignalEvent     = "signal"
	AttentionEvent  = "attention"
	MeditationEvent = "meditation"
	BlinkEvent      = "blink"
	WaveEvent       = "wave"
	EEGEvent        = "eeg"
	ErrorEvent      = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MindWaveDriver

type MindWaveDriver struct {
	*serial.Driver
	gobot.Eventer
}

MindWaveDriver is the Gobot driver for the Neurosky MindWave Sensor

func NewMindWaveDriver

func NewMindWaveDriver(a mindWaveSerialAdaptor, opts ...serial.OptionApplier) *MindWaveDriver

NewMindWaveDriver creates a driver for Neurosky MindWave and adds the following events:

extended - user's current extended level
signal - shows signal strength
attention - user's current attention level
meditation - user's current meditation level
blink - user's current blink level
wave - shows wave data
eeg - showing eeg data

type MindWaveEEGData

type MindWaveEEGData struct {
	Delta    int
	Theta    int
	LoAlpha  int
	HiAlpha  int
	LoBeta   int
	HiBeta   int
	LoGamma  int
	MidGamma int
}

MindWaveEEGData is the EEG raw data returned from the sensor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL