Exd/scripts/demo.pl

28 lines
582 B
Perl
Raw Normal View History

#!/usr/bin/env perl
use v5.40.0;
use strict;
use warnings;
use Exd::Printer;
use Exd::DeviceToImage;
use Exd::DeviceToRawFile;
2024-10-11 18:43:49 +02:00
use Exd::DeviceToBluetooth;
use Exd::Utils;
{
2024-10-11 18:43:49 +02:00
my $device = Exd::DeviceToBluetooth->new( address => '5A:4A:AE:8C:E9:D2', port => 1 );
my $printer = Exd::Printer->new( device => $device );
my $hoz = Exd::Utils::get_gd_image('scripts/hoz.jpg');
$printer->print_text(
[ $hoz, ' The best software belongs to everybody ', $hoz ], 27 );
$printer->image('scripts/hoz.jpg');
$printer->print_n_lf(4);
$printer->print;
}