Magnus Sulland > Device-USB-PCSensor-HidTEMPer-0.04 > Device::USB::PCSensor::HidTEMPer

Download:
Device-USB-PCSensor-HidTEMPer-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Device::USB::PCSensor::HidTEMPer - Device overview

VERSION ^

Version 0.04

SYNOPSIS ^

Shared code:

  use Device::USB::PCSensor::HidTEMPer;
  my $pcsensor = Device::USB::PCSensor::HidTEMPer->new();

Single-device systems:

  my $device = $pcsensor->device();
  print $device->external()->fahrenheit() if defined $device->external();

Multi-device systems:

  my @devices = $pcsensor->list_devices();

  foreach my $device ( @devices ){
    print $device->internal()->celsius() if defined $device->internal();
  }

DESCRIPTION ^

This module is a simplified interface to the HidTEMPer thermometers created by PCSensor. It hides any problems recognizing the correct objects to initialize and the dependency on Device::USB. Use of the connected thermometers can be done by either creating a array of objects if multiple devices are connected, or the function device() if only one device is present.

One example of its usage can be found in the Linux Journal August 2010, "Cool Projects edition" page 32-34.

CONSTANTS

The following constants are declared

METHODS

DEPENDENCIES ^

This module internally includes and takes use of the following packages:

 use Device::USB;
 use Device::USB::PCSensor::HidTEMPer::Device;
 use Device::USB::PCSensor::HidTEMPer::NTC;
 use Device::USB::PCSensor::HidTEMPer::TEMPer;
 use Device::USB::PCSensor::HidTEMPer::TEMPer2;

This module uses the strict and warning pragmas.

BUGS ^

Please report any bugs or missing features using the CPAN RT tool.

FOR MORE INFORMATION ^

None

AUTHOR ^

Magnus Sulland < msulland@cpan.org >

ACKNOWLEDGEMENTS ^

Thanks to Elan Ruusamäe for fixing some compatibility issues with perl 5.8.

Thanks to Daniel Fahlgren for adding the TEMPer2 device.

COPYRIGHT & LICENSE ^

Copyright (c) 2010-2011 Magnus Sulland

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: