Permalink
Browse files

added loop to loop through pictures

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