Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Demo program for the I2C 16x2 Display
- # Created by j33p33. because he needed to.
- # Import necessary libraries for commuunication and display use
- import lcddriver
- import time
- import subprocess
- from subprocess import Popen, PIPE
- display = lcddriver.lcd()
- proc = subprocess.Popen(['audtool','--current-song'], stdout=subprocess.PIPE)
- textlcd = proc.communicate()[0]
- print textlcd
- print("output data-check lcd")
- try:
- display.lcd_clear()
- display.lcd_display_string(textlcd, 1)
- time.sleep (30)
- print ("it went there")
- except:
- print ("some shit")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement