Advertisement
j33p33

Untitled

Oct 19th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 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.Popen(["audtool", "current-song"], stdout=PIPE, shell=True)
  13. output, err = proc.communicate()
  14. #exit_code = proc.wait()
  15. print output,
  16.  
  17. print("output data-check lcd")
  18.  
  19. display.lcd_clear()
  20. display.lcd_display_string("lcd display works",1)
  21. display.lcd_display_string(output, 2)
  22. time.sleep (30)
  23. print ("it went there")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement