Skip to content

Commit a95184a

Browse files
authored
Revert "rm unsupported boards, part 2 (brainflow-dev#615)" (brainflow-dev#626)
This reverts commit cd7fd44.
1 parent 1ee3072 commit a95184a

File tree

11 files changed

+481
-0
lines changed

11 files changed

+481
-0
lines changed

csharp_package/brainflow/brainflow/board_controller_library.cs

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public enum BoardIds
100100
ENOPHONE_BOARD = 37,
101101
MUSE_2_BOARD = 38,
102102
MUSE_S_BOARD = 39,
103+
BRAINALIVE_BOARD = 40,
103104
MUSE_2016_BOARD = 41,
104105
MUSE_2016_BLED_BOARD = 42,
105106
EXPLORE_4_CHAN_BOARD = 44,

docs/SupportedBoards.rst

+41
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,47 @@ Steps to find MAC address:
10591059

10601060
**On Linux in order to compile and use it you may need to install :code:`libbluetooth-dev` for Debian like systems from :code:`apt-get` and :code:`bluez-libs-devel` for Fedora like systems from :code:`dnf`.**
10611061

1062+
BrainAlive
1063+
-----------
1064+
1065+
BrainAlive Device
1066+
~~~~~~~~~~~~~~~~~~
1067+
1068+
.. image:: https://live.staticflickr.com/65535/51752250946_7915ca2e2b.jpg
1069+
:width: 500px
1070+
:height: 333px
1071+
1072+
`BrainAlive Website <https://braina.live//>`_
1073+
1074+
.. compound::
1075+
1076+
On Linux systems you may need to install `libdbus` and we recommend to compile BrainFlow from the source code: ::
1077+
1078+
sudo apt-get install libdbus-1-dev # for ubuntu
1079+
sudo yum install dbus-devel # for centos
1080+
python3 tools/build.py --ble # to compile
1081+
1082+
To create such board you need to specify the following board ID and fields of BrainFlowInputParams object:
1083+
1084+
- :code:`BoardIds.BRAINALIVE_BOARD`
1085+
- *optional:* :code:`mac_address`, mac address of the device to connect
1086+
- *optional:* :code:`serial_number`, device name
1087+
1088+
Initialization Example:
1089+
1090+
.. code-block:: python
1091+
1092+
params = BrainFlowInputParams()
1093+
board = BoardShim(BoardIds.BRAINALIVE_BOARD, params)
1094+
1095+
Supported platforms:
1096+
1097+
- Windows 10.0.19041.0+
1098+
- MacOS 10.15+
1099+
- Linux, compilation from source code probably will be needed
1100+
- Devices like Raspberry Pi
1101+
1102+
10621103
Mentalab
10631104
---------
10641105

java_package/brainflow/src/main/java/brainflow/BoardIds.java

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public enum BoardIds
5050
ENOPHONE_BOARD (37),
5151
MUSE_2_BOARD (38),
5252
MUSE_S_BOARD (39),
53+
BRAINALIVE_BOARD (40),
5354
MUSE_2016_BOARD (41),
5455
MUSE_2016_BLED_BOARD (42),
5556
EXPLORE_4_CHAN_BOARD (44),

julia_package/brainflow/src/board_shim.jl

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export BrainFlowInputParams
4545
ENOPHONE_BOARD = 37
4646
MUSE_2_BOARD = 38
4747
MUSE_S_BOARD = 39
48+
BRAINALIVE_BOARD = 40
4849
MUSE_2016_BOARD = 41
4950
MUSE_2016_BLED_BOARD = 42
5051
EXPLORE_4_CHAN_BOARD = 44

matlab_package/brainflow/BoardIds.m

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
ENOPHONE_BOARD(37)
4444
MUSE_2_BOARD(38)
4545
MUSE_S_BOARD(39)
46+
BRAINALIVE_BOARD(40)
4647
MUSE_2016_BOARD(41)
4748
MUSE_2016_BLED_BOARD(42)
4849
EXPLORE_4_CHAN_BOARD(44)

python_package/brainflow/board_shim.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class BoardIds(enum.IntEnum):
5959
ENOPHONE_BOARD = 37 #:
6060
MUSE_2_BOARD = 38 #:
6161
MUSE_S_BOARD = 39 #:
62+
BRAINALIVE_BOARD = 40 #:
6263
MUSE_2016_BOARD = 41 #:
6364
MUSE_2016_BLED_BOARD = 42 #:
6465
EXPLORE_4_CHAN_BOARD = 44 #:

src/board_controller/board_controller.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "board.h"
1919
#include "board_controller.h"
2020
#include "board_info_getter.h"
21+
#include "brainalive.h"
2122
#include "brainbit.h"
2223
#include "brainbit_bled.h"
2324
#include "brainflow_constants.h"
@@ -226,6 +227,9 @@ int prepare_session (int board_id, const char *json_brainflow_input_params)
226227
case BoardIds::MUSE_S_BOARD:
227228
board = std::shared_ptr<Board> (new Muse (board_id, params));
228229
break;
230+
case BoardIds::BRAINALIVE_BOARD:
231+
board = std::shared_ptr<Board> (new BrainAlive (params));
232+
break;
229233
case BoardIds::MUSE_2016_BOARD:
230234
board = std::shared_ptr<Board> (new Muse (board_id, params));
231235
break;

0 commit comments

Comments
 (0)