I've got a prototype I need to show for an RFID project. I've got the RFID (Parallax USB) working, and the sample Python script (my first) is displaying the ID of the card just like it's supposed to... problem is, it's not a very compelling demo/prototype.
What I'd love to be able to do is launch my application on the pi and have a PNG display somehow. New window, full screen, etc. Then, when a card is detected by the Pi, it would swap the image being displayed (1.PNG for 2.PNG, etc).
What would be the most pragmatic, easiest, fastest way to have the screen display just an image file?
Here's my code that outputs the RFID:
#! /usr/bin/python
import serial
import time
ser = serial.Serial('/dev/ttyUSB0', 2400, timeout=1) # replace '/dev/ttyUSB0' with your port
while True:
response = ser.read(12)
if response <> "":
print "raw: " + str(response)
print "hex: " + str(response[-8:])
print "dec: " + str(int(response[-8:], 16))
time.sleep(1)
ser.close()