jor-g-ete / neuroskypy Goto Github PK
View Code? Open in Web Editor NEWLibreria necesaria para poder ejecutar NeuroPy-EEJ
License: GNU General Public License v3.0
Libreria necesaria para poder ejecutar NeuroPy-EEJ
License: GNU General Public License v3.0
from NeuroSkyPy import NeuroSkyPy
from time import sleep
neuropy = NeuroSkyPy.NeuroSkyPy("/dev/rfcomm0",57600)
def attention_callback(attention_value):
"""this function will be called everytime NeuroPy has a new value for attention"""
print ("Value of attention is: ", attention_value)
return None
neuropy.setCallBack("attention", attention_callback)
neuropy.start()
print("starting....")
try:
while True:
sleep(0.2)
finally:
neuropy.stop()
here are code. i call by using "python3 testsky.py" and it always stuck at starting it wont start and show any output, but the bluetooth can connect, and the indicator are connected
I am not able to get the eye blink strengths ,it always shows 0
Code sample incorrect. Please update as follows ...
from NeuroSkyPy import NeuroSkyPy
from time import sleep
neuropy = NeuroSkyPy.NeuroSkyPy('/dev/cu.MindWaveMobile-DevA')
def attention_callback(attention_value):
"""this function will be called everytime NeuroPy has a new value for attention"""
print ("Value of attention is: ", attention_value)
return None
neuropy.setCallBack("attention", attention_callback)
neuropy.start()
print("starting....")
try:
while True:
sleep(0.2)
finally:
neuropy.stop()
NeuroSkyPy/NeuroSkyPy/NeuroSkyPy.py
Line 189 in 145c52f
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.