I wish to create 'Granny's photo viewer'.
i.e. a RaspberryPi connected to a TV that scrolls through photos on its SD card BUT when Granny receives a new SD card in the post she inserts it into the USB slot via an adapter. The RPi then stops showing the pictures on its SD card but instead shows the pictures on the USB SD card and copies them to its internal SD card. When the USB SD card is removed the RPi now shows all the pictures (both new and old).
Simple in concept.
But I am stuck at how to get started. I am a C/C++ programmer so am considering writing an application with a thread to show the pictures and a thread to monitor the USB state. BUT as a very novice Linux user (let alone programmer) I would like to know if there is an easier way.
Is it simple to detect the USB media being present or not present in C/C++?
Is it simple to detect the USB media being present or not present in Python?
Many thanks for any tips