Device::USB::MissileLauncher - interface to toy USB missile launchers
THIS VERSION AND v0.01 ARE BUGGY, YOU CAN ONLY FIRE THE MISSILES, NOT MOVE THE LAUNCHER.
use Device::USB::MissileLauncher; my $ml = Device::USB::MissileLauncher->new(); $ml->do('left'); $ml->do('up'); $ml->do('fire');
This implements a basic interface to the toy USB missile launchers that were on sale in Marks and Spencers Christmas 2005 and later at 'I want one of those'.
It has two methods - new() and do(). do() takes a string out of the following list.
stop left right up down leftup rightup leftdown rightdown fire
Ian Jeffray published some C code to work with the Missile Launcher at http://ian.jeffray.co.uk/linux/ and Scott Weston published some Python code at http://scott.weston.id.au/software/pymissile-20060126/ , both sets of code helped a lot when I was working out how to control the toy.
Greg McCarroll <greg@mccarroll.org.uk>
Copyright 2006 Greg McCarroll. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Device::USB
To install Device::USB::MissileLauncher, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::USB::MissileLauncher
CPAN shell
perl -MCPAN -e shell install Device::USB::MissileLauncher
For more information on module installation, please visit the detailed CPAN module installation guide.