Skip to content

Commit

Permalink
detect system type in mind_echo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp committed Jun 30, 2013
1 parent 366f9cb commit d3e2b1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/mind_echo.py
@@ -1,12 +1,17 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-

import platform

from pymindwave.parser import Parser
from pymindwave.pyeeg import bin_power


if __name__ == "__main__":
p = Parser('/dev/ttyUSB0')
if platform.system() == 'Darwin':
p = Parser('/dev/tty.MindWave')
else:
p = Parser('/dev/ttyUSB0')
while True:
p.update()
if p.sending_data:
Expand Down

0 comments on commit d3e2b1c

Please sign in to comment.