The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HiPi::Control::LCD::SerLCD

VERSION

Version 0.01

SYNOPSYS

    use HiPi::Constant qw( :raspberry :pinmode :serial
        :spi :i2c :wiring :bcm2835 :mcp23017 :htv2cmd
        :htv2baudrate );
    
    use HiPi::Control::LCD qw( :cursor :hd44780 );
    use HiPi::Control::LCD::SerLCD;
    
    my $hp = HiPi::Control::LCD::SerLCD->new(
        { width => 16, lines => 2, backlightcontrol => 1, devicetype => 'serialrx' } );
    
    $hp->enable(1);
                
    $hp->backlight(25);
    $hp->clear;

    $hp->set_cursor_position(0,0);
    $hp->send_text('Raspberry Pi');

    $hp->set_cursor_position(0,1);
    $hp->send_text('SerLCD');

DESCRIPTION

This module inherits from HiPi::Control::LCD to provide access to the SparkFun Electronics SerLCD ( serialRX) LCD interface.

METHODS

Common methods used by all HiPi::Control::LCD::xx classes can be found in the HiPi::Control::LCD pod.

HiPi::Control::LCD::SerLCD specific methods are

toggle_splashscreen

    $lcd->toggle_splashscreen();

Toggles splash screen display on / off

set_splashscreen

    $lcd->set_splashscreen();

Sets the current top 2 lines of text as the splash screen.

init_lcd

    $lcd->init_lcd();
    

If the SerLCD gets into an unknown state, call this to reset the LCD to default settings.

LICENSE

This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.

License Note

I would normally release any Perl code under the Perl Artistic License but this module wraps several GPL / LGPL C libraries and I feel that the licensing of the entire distribution is simpler if the Perl code is under GPL too.

AUTHOR

Mark Dootson, <mdootson at cpan.org>

COPYRIGHT

Copyright (C) 2012-2013 Mark Dootson, all rights reserved.