BrightLedSigns / LedSign

Perl API to control programmable LED signs
9 stars 3 forks source link

NAME

LedSign - Perl library to communicate with various models of programmable LED signs

VERSION

Version 1.04

DESCRIPTION

The LedSign library is used to send text and graphics to different models of programmable LED signs. We tried to keep the interface consistent across models, and only introduced per-model variations where the underlying capabilities of the sign were different enough to warrant it.

It has been tested on both Linux and Windows, and should theoretically run anywhere where the Device::SerialPort or Win32::SerialPort modules can be run.

Note for Windows users: Win32::SerialPort is broken on most 64 bit installations of Perl for Windows. Either use a 32 bit Perl install, or see this bug that has a comment on how to fix it manually.

SYNOPSIS

    #
    # "M500" is one specific model
    # For a different model, like the Mini signs, you
    # would do:
    #   use LedSign::Mini;
    #
    use LedSign::M500;
    my $buffer=LedSign::M500->new();
    #
    # queueMsg queues a message to be sent with the sendQueue method
    #
    $buffer->queueMsg( data => "Hello World!");
    # queue up another message
    $buffer->queueMsg( data => "Another message");
    # send the messages to the sign.
    $buffer->sendQueue(
        device => '/dev/ttyUSB0'
    )
    # note that sending the queued messages does not flush them, so 
    # if you wanted to send this message to another sign, on a different
    # port, you could uncomment what's below
    # $buffer->sendQueue(
    #   device=>'/dev/ttyUSB1'
    # ); 

USAGE

Since each of the supported signs is a bit different in terms of capability, the usage docs are within the documentation for each type of sign:

Depending on the model of sign, there may be support for various features

RELATED SOFTWARE

AUTHOR

Kerry Schwab, sales@brightledsigns.com

I am the owner of BrightLEDSigns.com. Our programmable LED signs, many of which work with this library, are located here: Programmable Signs.

LICENSE AND COPYRIGHT

Copyright (c) 2013 Kerry Schwab & Bright Signs All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the the FreeBSD License . You may obtain a copy of the full license at:

http://www.freebsd.org/copyright/freebsd-license.html

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: =over

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.