embedded system,arduino,raspberry pi,msp430f169, ARM7

Tuesday, April 22, 2014

On 11:22 AM by EDUCATION   No comments
//displaying the date command

import os
os.system("date")


//taking the input from the your and processing that using the python

import os
os.system("date")
user_input = input('Give me a number: ')
if user_input==1 :
os.system("omxplayer -o hdmi /home/pi/videos/Kommalallo.mp4")
elif user_input==2 :
os.system("omxplayer -o hdmi /home/pi/videos/Poovai.flv")
elif user_input==3 :
os.system("omxplayer -o hdmi /home/pi/videos/RamChahe.mp4")
elif user_input==4 :
os.system("omxplayer -o hdmi /home/pi/videos/Sasirekha.mp4")
elif user_input==5 :
os.system("omxplayer -o hdmi /home/pi/videos/Kommalallo.mp4")
else:
os.system("ctrl+c")




0 comments:

Post a Comment