LEGO::NXT::USBComm - The USB Communication Module For the NXT
use LEGO::NXT::USBComm; $comm = new LEGO::NXT::USBComm();
Presents a USB comm interface to the LEGO NXT for internal use in the LEGO::NXT module.
$interface = 0; $comm = new LEGO::NXT:USBComm($interface) $nxt = LEGO::NXT->new( $comm );
Creates a new USB comm object. $interface will usually be 0 unless you're using more than one NXT.
To install LEGO::NXT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LEGO::NXT
CPAN shell
perl -MCPAN -e shell install LEGO::NXT
For more information on module installation, please visit the detailed CPAN module installation guide.