Device::VFD::GP1022::Message - DSL for GP1022 VFD controller
use Device::VFD::GP1022; use Device::VFD::GP1022::Message; my $vfd = Device::VFD::GP1022->('/dev/ttyUSB0'); $vfd->message( vfd_encode { SPEED 0; HORIZON; STR 'foo'; BLINKLINE 'blink strings' 5; } );
Device::VFD::GP1022 is
make the object that can be transmitted to the vfd device. It describes it by DSL.
文字列をVFDへ表示します。
水平スクロールモードにします。
垂直スクロールモードにします。
水平スクロールモード時には右から左へ文字を流します。 垂直スクロールモード時には下から上へ文字を流します。
水平スクロールモード時には左から右へ文字を流します。 垂直スクロールモード時には上から下へ文字を流します。
点滅スクロールモードにします。
等倍フォントにします。
スクロールを指定秒数の間停止します。
stringsの文字列に対してカーテンオープンエフェクトを加えます。
stringsの文字列に対してカーテンクローズエフェクトを加えます。
スクロールスピードを変更します。 0が最も早く、4が最も遅くなります。
stringsの文字列のみ点滅します。 2つめの引数は点滅回数です。
引数で指定されたドットだけスペースを空けます。
stringsの文字列に対して上から下にスクロールするエフェクトを加えます。 2つめの引数はスクロールエフェクトを開始する位置です。
stringsの文字列に対して下から上にスクロールするエフェクトを加えます。 2つめの引数はスクロールエフェクトを開始する位置です。
stringsの文字列をセンタリング表示します。。
表示するフォントサイズを指定します。 24x24と12x24が指定できます。
vfd_encode { FONT '24x24'; }; vfd_encode { FONT '12x24'; };
VFDへの命令コードを直接記述できます。
DSLのRAWを活用してオリジナルフォントをVFDに表示させられます。
# for 24x24 font vfd_encode { RAW 0x9004; RAW ((0xFFFF) x 36); }; # for 14x24 font vfd_encode { RAW 0x9003; RAW ((0xFFFF) x 18); };
このサンプルでは、全てのドットが塗りつぶされます。
Kazuhiro Osawa <ko@yappo.ne.jp>
Device::VFD::GP1022
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '文字列をVFDへ表示します。'. Assuming UTF-8
To install Device::VFD::GP1022, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::VFD::GP1022
CPAN shell
perl -MCPAN -e shell install Device::VFD::GP1022
For more information on module installation, please visit the detailed CPAN module installation guide.