Device::MindWave::Tester
use Device::MindWave; use Device::MindWave::Tester; my $mwt = Device::MindWave::Tester->new(); $mwt->push_packet($packet); $mwt->push_bytes(0xAA, 0xAA, 0x02, 0xD1, 0x00, 0xD9); my $mw = Device::MindWave->new(fh => $mwt); ...
A dummy object that emulates a MindWave headset.
Returns a new instance of Device::MindWave::Tester.
Takes an instance of Device::MindWave::Packet as its single argument. Adds the packet's raw bytes to the internal stream of data that is returned on calls to read.
read
Takes a list of bytes (octet integers) as its arguments. Adds those bytes to the internal stream of data that is returned on calls to read.
As per IO::Handle.
As per IO::Handle. This is a no-op.
To install Device::MindWave, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::MindWave
CPAN shell
perl -MCPAN -e shell install Device::MindWave
For more information on module installation, please visit the detailed CPAN module installation guide.