Arduino Photo Slideshow

preview_player
Показать описание
Created a photo slideshow to test out my Adafruit 1.8" TFT Shield with an Arduino Uno. I built around the sample function for drawing bitmaps in the Adafruit_ST7735 library to automatically rotate through all the files on the microSD card. The program is rather simple, making use of openNextFile() and rewindDirectory() from the Arduino SD library.

Features:
- Photo files not hard coded (no need to reprogram for new photos)
- Loops through photos once last file is reached

Future Upgrades:
- Interactive mode (use joystick to navigate photos)
- Include both landscape and horizontal photos
- Improve robustness (i.e. reject non-bitmap files)
- Auto-scale photos (currently photos were cropped to 128 x 160px)

Code:

Shield:
Рекомендации по теме
Комментарии
Автор

This Arduino noob thanks you! I was looking for a clever script to test the full capability of my new $13 SainSmart 1.8" TFT/SD card reader so I did a search for Arduino slideshow and voila. It even called on the library I was looking for. I removed the joystick code (ain't got one yet) and cluelessly looked for the file name line before I realized the sketch loads all BMPs in the root of the SD card. Even better! I simply must work on my reading comprehension...

helbock
Автор

Hm I cant se my pictures! Tryied BMP, JPG, PNG and so
So what format does the pictures need too be in??
Sorry for bad spelling from Sweden..;)

jonnyfalcon