Diff of /python/example.py [000000] .. [a32498]

Switch to unified view

a b/python/example.py
1
# -*- coding: utf-8 -*-
2
# This is an example of popping a packet from the Emotiv class's packet queue
3
4
5
import time
6
7
from emokit.emotiv import Emotiv
8
9
if __name__ == "__main__":
10
    with Emotiv(display_output=True, verbose=False) as headset:
11
        while True:
12
            packet = headset.dequeue()
13
            if packet is not None:
14
                pass
15
            time.sleep(0.001)