Advertisement
j33p33

Untitled

Oct 20th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. # Demo program for the I2C 16x2 Display
  2. # Created by j33p33. because he needed to.
  3.  
  4. # Import necessary libraries for commuunication and display use
  5.  
  6. import lcddriver
  7. import time
  8. import subprocess
  9. from subprocess import Popen, PIPE
  10. display = lcddriver.lcd()
  11.  
  12. proc = subprocess.check_output("audtool --current-song", shell=True)
  13. output = proc.stdout.read()
  14. #output, err = proc.communicate()
  15. #exit_code = proc.wait()
  16. print (output)
  17.  
  18. print("output data-check lcd")
  19.  
  20. display.lcd_clear()
  21. display.lcd_display_string("lcd display works",1)
  22. display.lcd_display_string(str(output), 2)
  23. time.sleep (15)
  24. print ("it went there")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement