20_FRM_LCD.pm 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ##############################################
  2. # $Id: 20_FRM_LCD.pm 5927 2014-05-21 21:56:37Z ntruchsess $
  3. ##############################################
  4. package main;
  5. use strict;
  6. use warnings;
  7. sub
  8. FRM_LCD_Initialize($)
  9. {
  10. my ($hash) = @_;
  11. main::LoadModule("I2C_LCD");
  12. I2C_LCD_Initialize($hash);
  13. $hash->{DefFn} = "FRM_LCD_Define";
  14. $hash->{InitFn} = "FRM_LCD_Init";
  15. };
  16. sub
  17. FRM_LCD_Define($$)
  18. {
  19. my ($hash, $def) = @_;
  20. my @a = split("[ \t][ \t]*", $def);
  21. shift @a;
  22. return I2C_LCD_Define($hash,join(' ',@a));
  23. }
  24. sub
  25. FRM_LCD_Init($)
  26. {
  27. my ($hash,$args) = @_;
  28. my $u = "wrong syntax: define <name> FRM_LCD i2c <size-x> <size-y> [<address>]";
  29. return $u if(int(@$args) < 3);
  30. shift @$args;
  31. return I2C_LCD_Init($hash,$args);
  32. }
  33. 1;
  34. =pod
  35. =begin html
  36. <a name="FRM_LCD"></a>
  37. <h3>FRM_LCD</h3>
  38. <ul>
  39. deprecated, use <a href="#I2C_LCD">I2C_LCD</a>
  40. </ul>
  41. =end html
  42. =cut