New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

neuro-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neuro-node

Yet another node module for working with NeuroSky headsets

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

Neuro-Node, A Library for interacting with Neurosky Headsets.

Neuro-Node is yet another javascript client library that interacts with the Neurosky Mindwave Mobile Headsets via the ThinkGearSerialStream protocol.

The library allows for reading of all EEG data from the headsets as well as sending command bytes for changing output format.

To Install

$ npm install neuro-node

Usage

    const Neuro-Node = require('neuro-node');
    let mindwave = new Neuro-Node('/dev/tty.MindWaveMobile-DevA');
    mindwave.open();

Receiving Data

    mindwave.events.on('data', function (data) {
        console.log(data);
    });

Error Handling

    mindwave.events.on('error', function (error) {
        console.log(error);
    });

Change Data Format

    const NORMAL_FFT_57600 = 0x03;
    mindwave.sendCommand(NORMAL_FFT_57600);

Keywords

node

FAQs

Package last updated on 18 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts