Skip to content
Permalink
Browse files

added loop to loop through pictures

  • Loading branch information...
rkoeppl committed May 5, 2016
1 parent 49a9640 commit 2710e41c3e61f29a98d7a389e6a3385d55bef49e
Showing with 5 additions and 3 deletions.
  1. +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

Please sign in to comment.
You can’t perform that action at this time.