#!/usr/bin/perl use strict; use vars qw ($file $DELAY); ########## CONFIG $file = "lcd4linux"; # .png is appended $DELAY = 0; # delay in seconds # if delay is zero, file is sent when modified. ################# use CGI qw/:push -nph/; $| = 1; my ($mtime, $nmtime, $size, $nsize); (undef, undef, undef, undef, undef, undef, undef, $size, undef, $mtime) = stat "$file.png"; print multipart_init(-boundary=>'----------------here we go!'); while (1) { print multipart_start(-type=>'image/png'); undef $/; open(IN, "$file.png") or die("Can't read '$file.png'"); $_ = ; print $_; close(IN); print multipart_end; if ($DELAY) { sleep $DELAY; } else { W: while (1) { # sleep(1); (undef, undef, undef, undef, undef, undef, undef, $nsize, undef, $nmtime) = stat "$file.png"; if($mtime != $nmtime || $size != $nsize) { $mtime = $nmtime; $size = $nsize; last W; } } } } lcd4linuxJonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/font_6x8.h (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2004-05-27[lcd4linux @ 2004-05-27 03:49:41 by reinelt]reinelt1-1/+1
Status update git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@438 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-05-27[lcd4linux @ 2004-05-27 03:39:47 by reinelt]reinelt8-37/+70
changed function naming scheme to plugin::function git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@437 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-05-26[lcd4linux @ 2004-05-26 11:37:35 by reinelt]reinelt21-361/+409
Curses driver ported. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@436 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-05-26[lcd4linux @ 2004-05-26 05:03:24 by reinelt]reinelt9-463/+333
MilfordInstruments driver ported git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@435 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-05-25[lcd4linux @ 2004-05-25 19:54:11 by reinelt]reinelt7-53/+23
'make distcheck' bugs fixed release number changed to 0.10.0-RC1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@434 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-05-25[lcd4linux @ 2004-05-25 19:47:11 by reinelt]reinelt9-1670/+13
Status updated obsolete files removed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@433 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-05-25[lcd4linux @ 2004-05-25 14:28:46 by reinelt]reinelt1-0/+133
Changelog updated git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@432 3ae390bd-cb1e-0410-b409-cd5a39f66f1f