Skip to content

Commit d74ed66

Browse files
committed
add info about galea to docs
Signed-off-by: Andrey Parfenov <[email protected]>
1 parent 6a0a8ea commit d74ed66

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

docs/SupportedBoards.rst

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,74 @@ Supported platforms:
146146
OpenBCI
147147
--------
148148

149+
Galea
150+
~~~~~~~
151+
152+
.. image:: https://live.staticflickr.com/65535/54878775360_9bf1969eec_w.jpg
153+
:width: 400px
154+
:height: 400px
155+
156+
`Specification for Galea from OpenBCI <https://galea.co/#specs/>`_
157+
158+
To create such board you need to specify the following board ID and fields of BrainFlowInputParams object:
159+
160+
- :code:`BoardIds.GALEA_BOARD`
161+
- :code:`timeout`, optional, will be used as a timeout for socket operations, should be between 1 and 600, default is 5 seconds
162+
163+
Initialization Example:
164+
165+
.. code-block:: python
166+
167+
params = BrainFlowInputParams()
168+
board = BoardShim(BoardIds.GALEA_BOARD, params)
169+
170+
Supported platforms:
171+
172+
- Windows >= 8.1
173+
- Linux
174+
- MacOS
175+
- Devices like Raspberry Pi
176+
- Android
177+
178+
Available :ref:`presets-label`:
179+
180+
- :code:`BrainFlowPresets.DEFAULT_PRESET`, it contains EEG, EMG, and EOG data
181+
- :code:`BrainFlowPresets.AUXILIARY_PRESET`, it contains Gyroscope, Accelerometer, Magnetometer, EDA, PPG, temperature and battery data
182+
183+
.. code-block:: python
184+
185+
import time
186+
from pprint import pprint
187+
188+
from brainflow.board_shim import BoardShim, BrainFlowInputParams, BrainFlowPresets, BoardIds
189+
from brainflow.data_filter import DataFilter
190+
191+
def main():
192+
BoardShim.enable_dev_board_logger()
193+
194+
params = BrainFlowInputParams()
195+
board = BoardShim(BoardIds.GALEA_BOARD, params)
196+
board.prepare_session()
197+
board.start_stream()
198+
time.sleep(10)
199+
data_default = board.get_board_data(preset=BrainFlowPresets.DEFAULT_PRESET)
200+
data_aux = board.get_board_data(preset=BrainFlowPresets.AUXILIARY_PRESET)
201+
board.stop_stream()
202+
board.release_session()
203+
204+
DataFilter.write_file(data_eeg, 'data_default.csv', 'w')
205+
DataFilter.write_file(data_orn, 'data_aux.csv', 'w')
206+
207+
# To get info about channels and presets
208+
for preset in BoardShim.get_board_presets(BoardIds.GALEA_BOARD):
209+
preset_description = BoardShim.get_board_descr(BoardIds.GALEA_BOARD, preset)
210+
pprint(preset_description)
211+
212+
213+
if __name__ == "__main__":
214+
main()
215+
216+
149217
Cyton
150218
~~~~~~~
151219

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import time
2+
from pprint import pprint
3+
4+
from brainflow.board_shim import BoardShim, BrainFlowInputParams, BrainFlowPresets, BoardIds
5+
from brainflow.data_filter import DataFilter
6+
7+
8+
def main():
9+
BoardShim.enable_dev_board_logger()
10+
11+
params = BrainFlowInputParams()
12+
board = BoardShim(BoardIds.GALEA_BOARD, params)
13+
board.prepare_session()
14+
board.start_stream()
15+
time.sleep(10)
16+
data_default = board.get_board_data(preset=BrainFlowPresets.DEFAULT_PRESET)
17+
data_aux = board.get_board_data(preset=BrainFlowPresets.AUXILIARY_PRESET)
18+
board.stop_stream()
19+
board.release_session()
20+
21+
DataFilter.write_file(data_eeg, 'data_default.csv', 'w')
22+
DataFilter.write_file(data_orn, 'data_aux.csv', 'w')
23+
24+
# To get info about channels and presets
25+
for preset in BoardShim.get_board_presets(BoardIds.GALEA_BOARD):
26+
preset_description = BoardShim.get_board_descr(BoardIds.GALEA_BOARD, preset)
27+
pprint(preset_description)
28+
29+
30+
if __name__ == "__main__":
31+
main()

0 commit comments

Comments
 (0)