Permalink
Browse files
added loop to loop through pictures
- Loading branch information...
Showing
with
5 additions
and
3 deletions.
-
+5
−3
modules/printengine.pl
|
@@ -221,13 +221,15 @@ |
|
|
#builtin framebuffer access |
|
|
|
|
|
my $fb = Graphics::Framebuffer->new( FB_DEVICE=>$display_device, SPLASH=>0 ); |
|
|
foreach(@pics_sorted){ |
|
|
$fb->clear_screen('OFF'); |
|
|
$fb->blit_write( |
|
|
$fb->load_image( |
|
|
{ 'center' => $fb->{'CENTER_XY'}, |
|
|
'file' => "$dir/$pics_sorted[0]" # Usually needs full path |
|
|
'file' => "$dir/$_" # Usually needs full path |
|
|
} |
|
|
) |
|
|
); |
|
|
); |
|
|
sleep 3; |
|
|
$fb->clear_screen('ON'); |
|
|
|
|
|
} |
0 comments on commit
2710e41