Skip to content

Commit 9994035

Browse files
author
Bill Schumacher
committed
Python3 conversion, working.
Separated some functionality/constants into different modules. Need to update examples, make a thread/module/class to do crypto on.
1 parent ad1b6e3 commit 9994035

13 files changed

+845
-763
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/python/emokit/epocplus.csv
12
*build*
23
# Byte-compiled / optimized / DLL files
34
__pycache__/

python/emokit/__init__.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# -*- coding: utf-8 -*-
2+
from emokit import battery
3+
from emokit import emotiv
4+
from emokit import packet
5+
from emokit import sensors
6+
from emokit import util
7+
8+
__all__ = ['battery', 'sensors', 'emotiv', 'packet', 'util']
29
"""
310
emokit - emotiv epoc reverse engineering
411
~~~~~~~~~~~~~~~
@@ -9,11 +16,10 @@
916
"""
1017

1118
__title__ = "emokit"
12-
__version__ = "0.0.4"
13-
__build__ = 0x000004
19+
__version__ = "0.0.5a8"
20+
__build__ = 0x000005
1421
__author__ = "Cody Brocious / Kyle Machulis"
1522
__license__ = "Public Domain, See LICENSE"
1623
__copyright__ = "Copyright (c) 2010-2012, Cody Brocious, Kyle Machulis/Nonpolynomial Labs," \
1724
" Copyright 2013 Bryan Bishop, Copyright 2012-2016 Bill Schumacher/Cerebral Power"
1825

19-
from . import emotiv

python/emokit/battery.py

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# -*- coding: utf-8 -*-
2+
3+
battery_values = {
4+
"255": 100,
5+
"254": 100,
6+
"253": 100,
7+
"252": 100,
8+
"251": 100,
9+
"250": 100,
10+
"249": 100,
11+
"248": 100,
12+
"247": 99,
13+
"246": 97,
14+
"245": 93,
15+
"244": 89,
16+
"243": 85,
17+
"242": 82,
18+
"241": 77,
19+
"240": 72,
20+
"239": 66,
21+
"238": 62,
22+
"237": 55,
23+
"236": 46,
24+
"235": 32,
25+
"234": 20,
26+
"233": 12,
27+
"232": 6,
28+
"231": 4,
29+
"230": 3,
30+
"229": 2,
31+
"228": 2,
32+
"227": 2,
33+
"226": 1,
34+
"225": 0,
35+
"224": 0,
36+
}

0 commit comments

Comments
 (0)