Permalink
Browse files
Init board correctly on startup (stop stream, set daisy).
- Loading branch information...
Showing
with
12 additions
and
2 deletions.
-
+2
−0
CHANGELOG.md
-
+10
−2
user.py
|
|
@@ -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)
|
|
|
|
|
|
|
|
|
@@ -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