// Slideshow $images = ['img1.jpg', 'img2.jpg', 'img3.jpg']; $display->displaySlideshow($images, 10);
// Supported color modes const COLOR_BW = 1; // Black/White const COLOR_BWR = 2; // Black/White/Red const COLOR_BWY = 3; // Black/White/Yellow epaper php script
/** * Display multiple images in sequence */ public function displaySlideshow($images, $delay = 5) foreach ($images as $imagePath) $image = $this->loadImage($imagePath); $this->display($image); imagedestroy($image); sleep($delay); // Slideshow $images = ['img1
/** * Send display refresh command */ private function sendRefreshCommand() // Execute system command to refresh e-paper exec('echo 1 > /sys/class/graphics/fb0/refresh'); // Alternative: send IOCTL command via Python script exec('python3 /usr/local/bin/epaper_refresh.py'); // Slideshow $images = ['img1.jpg'