Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming EMG data #1

Open
emanuellimabr opened this issue Aug 9, 2016 · 1 comment
Open

Streaming EMG data #1

emanuellimabr opened this issue Aug 9, 2016 · 1 comment

Comments

@emanuellimabr
Copy link

How do I stream the emg data? When I call the event "emg_data", it prints the data just once

@GermanAndresVargasTorres

Try this:

import dongleless
import time

def emg_data(myo, emg):
    print("Current POSIX time: ", time.time())
    print("New EMG sample: ", emg)
    print(" ")
        

function_dict = {
# "imu_data":imu_data, #printing these gets really crowded, uncomment them if you want to use them.
"emg_data":emg_data 
}

dongleless.run(function_dict)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants