perl on Ubuntu
has anyone gotten the Device::Blinkytape module to run on Ubuntu? I got it (and the kajillion prerequisites) to build, but whenever I run any examples, I get a few random pixels displayed on the tape, then the tape stops updating.
I got Device-BLinkytape-0.04....
I got Device-BLinkytape-0.04....
Comments
sudo aptitude remove modemmanager
removed modemmanager anyway, problem persists. After the tape gets wedged, I need to detach / reattach it several times (or reboot) to get it to start working: it's almost like garbage is getting buffered along the line.
Does baud rate need to be set? doesn't seem right to me, since there is no real UART in the path, but I ain't an expert in such things.
#!/usr/bin/perl
use Time::HiRes;
open ($port, "> /dev/ttyACM0") || die $!;
foreach my $i (0..59) {
$port->write(chr($i));
$port->write("\x0\x10");
$port->flush();
if ($i % 20 == 0) {
sleep (0.05);
}
}
$port->write("\xff\xff\xff");
$port->flush();
$port->close() || die $!;