CytonSerial:
Filter:
OpenBCI-SuperCollider/Classes (extension) | External Control

CytonSerial
ExtensionExtension

for communicating with a Cyton board (8ch)

Description

this class is for communication via bluetooth serial (dongle). use CytonWifi for the wifi shield.

NOTE: does not survive CmdPeriod.

Class Methods

.new

open port

Arguments:

port

a String with the name of the serial port. by default this is "/dev/tty.usbserial-DM00DRM0"

baudrate

it is not recommended to change this. leave it at the default 115200 (see Cyton: -setRadioHostBaudRate)

dataAction

set the OpenBCI: -dataAction

replyAction

set the OpenBCI: -replyAction. note that if none give a default function that just posts will be used.

initAction

set the OpenBCI: -initAction

bufferSize

how many datapoints to store in the internal buffer.

Instance Methods

.port

the SerialPort.

.close

stops main loop and closes the serial port.

Examples