a b/python/example_read_encrypted.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,
11
                input_source="emotiv_encrypted_data_UD20160103001874_2017-04-05.17-21-32.384061.csv") as headset:
12
        while True:
13
            packet = headset.dequeue()
14
            if packet is not None:
15
                pass
16
            time.sleep(0.001)