openbci-archive / OpenBCI_Python

The Python software library designed to work with OpenBCI hardware.
MIT License
506 stars 207 forks source link

ADD: Aux data to fix wifi #116

Open daniellasry opened 5 years ago

daniellasry commented 5 years ago

v1.1.0

New Features

fixes #109 Example:

from openbci import wifi as bci
# for analog
shield = bci.OpenBCIWiFi(ip_address = '192.168.1.141', log=True, high_speed=True, aux_mode='analog')

# for digital
shield = bci.OpenBCIWiFi(ip_address = '192.168.1.141', log=True, high_speed=True, aux_mode='digital')

def printData(sample):
    print(sample.sample_number)
    print(sample.channel_data)
    print(sample.analog_data)
    print(sample.digital_data)

shield.start_streaming(printData)
shield.loop()
codecov-io commented 5 years ago

Codecov Report

Merging #116 into master will increase coverage by 0.67%. The diff coverage is 63.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
+ Coverage   37.46%   38.14%   +0.67%     
==========================================
  Files           9        9              
  Lines        1588     1628      +40     
==========================================
+ Hits          595      621      +26     
- Misses        993     1007      +14
Impacted Files Coverage Δ
openbci/utils/constants.py 100% <100%> (ø) :arrow_up:
openbci/wifi.py 20.68% <15.38%> (-0.16%) :arrow_down:
openbci/utils/parse.py 87.91% <84%> (-0.07%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f2288eb...4a07488. Read the comment docs.