Permalink
Browse files

Init board correctly on startup (stop stream, set daisy).

  • Loading branch information...
1 parent c9e9c07 commit 5310bc106955067e016be13e9c55cc4a916fdfa5 @jfrey-xx jfrey-xx committed Mar 21, 2015
Showing with 12 additions and 2 deletions.
  1. +2 −0 CHANGELOG.md
  2. +10 −2 user.py
View
@@ -7,11 +7,13 @@ Features:
- test sampling rate
- plugin system
- several different callback functions
+ - start streaming in a separate thread so new commands can be issued
Bugfixes:
- scale factor
- timing for Windows OS
- aux data endianness
+ - reset board on startup
## 0.1 (2015-02-11)
View
12 user.py
@@ -132,8 +132,16 @@ def cleanUp():
$$$ signals end of message"
print("\n-------------BEGIN---------------")
- #Start by restoring default settings
- s = 'd'
+ # Init board state
+ # s: stop board streaming; v: soft reset of the 32-bit board (no effect with 8bit board)
+ s = 'sv'
+ # Tell the board to enable or not daisy module
+ if board.daisy:
+ s = s + 'C'
+ else:
+ s = s + 'c'
+ # d: Channels settings back to default
+ s = s + 'd'
while(s != "/exit"):
#Send char and wait for registers to set

0 comments on commit 5310bc1

Please sign in to comment.