(brainflow-initialized?)
Check if BrainFlow has been initialized.
Check if BrainFlow has been initialized.
(clear-cache!)
Clear the BrainFlow cache directory.
Clear the BrainFlow cache directory.
(create-input-params params-map)
Create a BrainFlowInputParams object with the given parameters.
Common parameters include:
:serial_port - Serial port name (e.g. 'COM3', '/dev/ttyUSB0')
:ip_address - IP address for network boards
:ip_port - IP port for network boards
:mac_address - MAC address for Bluetooth boards
:other_info - Additional info as needed
:serial_number - Serial number
:file - File path for file-based boards
:timeout - Timeout value
:master_board - Master board ID for some boards
Create a BrainFlowInputParams object with the given parameters. Common parameters include: :serial_port - Serial port name (e.g. 'COM3', '/dev/ttyUSB0') :ip_address - IP address for network boards :ip_port - IP port for network boards :mac_address - MAC address for Bluetooth boards :other_info - Additional info as needed :serial_number - Serial number :file - File path for file-based boards :timeout - Timeout value :master_board - Master board ID for some boards
(get-board-data board-shim & [num-samples])
Get data from BrainFlow board. Automatically downloads BrainFlow if needed.
Get data from BrainFlow board. Automatically downloads BrainFlow if needed.
(get-board-shim board-id input-params)
Get a BrainFlow board shim. Downloads BrainFlow if needed. Takes board-id (int) and input-params (map with keys like :serial_port, :ip_address, etc.)
Get a BrainFlow board shim. Downloads BrainFlow if needed. Takes board-id (int) and input-params (map with keys like :serial_port, :ip_address, etc.)
(get-brainflow-version)
Get the BrainFlow version this library uses.
Get the BrainFlow version this library uses.
(get-default-synth-board-shim board-id)
(get-default-synth-board-shim board-id params-map)
Simplified version that takes a board-id and optional parameters map
Simplified version that takes a board-id and optional parameters map
(init!)
Manually initialize BrainFlow. This is optional as initialization happens automatically.
Manually initialize BrainFlow. This is optional as initialization happens automatically.
(prepare-session board-shim)
Prepare a BrainFlow session. Automatically downloads BrainFlow if needed.
Prepare a BrainFlow session. Automatically downloads BrainFlow if needed.
(release-session board-shim)
Release BrainFlow session. Automatically downloads BrainFlow if needed.
Release BrainFlow session. Automatically downloads BrainFlow if needed.
(start-stream board-shim & [buffer-size])
Start BrainFlow data stream. Automatically downloads BrainFlow if needed.
Start BrainFlow data stream. Automatically downloads BrainFlow if needed.
(stop-stream board-shim)
Stop BrainFlow data stream. Automatically downloads BrainFlow if needed.
Stop BrainFlow data stream. Automatically downloads BrainFlow if needed.
(test-brainflow)
(test-brainflow board-id input-params)
Test BrainFlow functionality with a synthetic board. This is useful for verifying that BrainFlow is working correctly. Returns true if successful, throws exception if failed.
Test BrainFlow functionality with a synthetic board. This is useful for verifying that BrainFlow is working correctly. Returns true if successful, throws exception if failed.
(with-brainflow & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close