Help for this page

Select Code to Download


  1. or download this
    my $port = Device::SerialPort->new("/dev/cu.usbserial");
    my $port = Device::SerialPort->new("/dev/tty.usbserial");
    my $port = Device::SerialPort->new("/dev/ttys0");
    my $port = Device::SerialPort->new("/dev/ttys1");
    
  2. or download this
    $port->write_settings || undef $port;