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.check_output("audtool --current-song", shell=True)
- output = proc.stdout.read()
- #output, err = proc.communicate()
- #exit_code = proc.wait()
- print (output)
- print("output data-check lcd")
- display.lcd_clear()
- display.lcd_display_string("lcd display works",1)
- display.lcd_display_string(str(output), 2)
- time.sleep (15)
- print ("it went there")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement