(brainflow-initialized?)Check if BrainFlow has been initialized.
Check if BrainFlow has been initialized.
(build-native-path base-native-path)Builds the full native path including platform-specific directory
Builds the full native path including platform-specific directory
(check-dll-architecture dll-path)Check if a DLL matches the current JVM architecture on Windows
Check if a DLL matches the current JVM architecture on Windows
(create-dependency-installer-script)Create the cross-platform dependency installer script file
Create the cross-platform dependency installer script file
(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
(ensure-brainflow-loaded!)Ensures BrainFlow is loaded with improved error handling and architecture detection
Ensures BrainFlow is loaded with improved error handling and architecture detection
(explain-jna-messages)Explain the JNA extraction messages users might see
Explain the JNA extraction messages users might see
(get-actual-jvm-bitness)More robust JVM bitness detection
More robust JVM bitness detection
(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-cause-chain e)Unwraps an exception into a sequence of causes, starting with the root.
Unwraps an exception into a sequence of causes, starting with the root.
(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
(install-dependencies-with-babashka)Install all BrainFlow dependencies using cross-platform Babashka script
Install all BrainFlow dependencies using cross-platform Babashka script
(is-expected-jna-error? exception)Check if an exception is the expected JNA file extraction behavior
Check if an exception is the expected JNA file extraction behavior
(load-all-native-libraries native-path)Enhanced native library loading with better error reporting and architecture matching
Enhanced native library loading with better error reporting and architecture matching
(load-native-library lib-path lib-name)Enhanced native library loading with architecture verification
Enhanced native library loading with architecture verification
(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.
(remove-brainflow-from-deps)Removes brainflow dependency from :flow alias and :deps for distribution
Removes brainflow dependency from :flow alias and :deps for distribution
(save-brainflow-config! jar-path native-lib-base-path)Save brainflow configuration for derived projects.
Save brainflow configuration for derived projects.
(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. Returns true if successful, throws exception if failed.
Test BrainFlow functionality with a synthetic board. Returns true if successful, throws exception if failed.
(update-project-deps jar-path native-lib-base-path)Updates deps.edn to reference local-brainflow directory under :flow alias
Updates deps.edn to reference local-brainflow directory under :flow alias
(verify-native-libraries native-path)Verify that native libraries exist and are accessible
Verify that native libraries exist and are accessible
(with-suppressed-jna-logging f)Temporarily suppress JNA logging during BrainFlow operations
Temporarily suppress JNA logging during BrainFlow operations
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |