Fix neurosky example
Signed-off-by: b3b <ash.b3b@gmail.com>
This commit is contained in:
parent
1e26f485d4
commit
5eaabf18a7
|
@ -35,7 +35,7 @@ func main() {
|
|||
fmt.Println("Wave", data)
|
||||
})
|
||||
neuro.On(neuro.Event("eeg"), func(data interface{}) {
|
||||
eeg := data.(neurosky.EEG)
|
||||
eeg := data.(neurosky.EEGData)
|
||||
fmt.Println("Delta", eeg.Delta)
|
||||
fmt.Println("Theta", eeg.Theta)
|
||||
fmt.Println("LoAlpha", eeg.LoAlpha)
|
||||
|
|
|
@ -40,7 +40,7 @@ Example:
|
|||
fmt.Println("Wave", data)
|
||||
})
|
||||
neuro.On(neuro.Event("eeg"), func(data interface{}) {
|
||||
eeg := data.(neurosky.EEG)
|
||||
eeg := data.(neurosky.EEGData)
|
||||
fmt.Println("Delta", eeg.Delta)
|
||||
fmt.Println("Theta", eeg.Theta)
|
||||
fmt.Println("LoAlpha", eeg.LoAlpha)
|
||||
|
|
Loading…
Reference in New Issue