Advertisement
microrobotics

W12915

Aug 30th, 2017
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1. print '------------init and Clear full screen------------'
  2. disp.Dis_Clear_full()
  3.  
  4. #Show full pic
  5. print '------------Show full pic------------'
  6. disp.Dis_full_pic(waveshare)
  7. time.sleep(DELAYTIME)
  8.  
  9. #init and Clear part screen
  10. print '------------init and Clear part screen------------'
  11. disp.Dis_Clear_part()
  12.  
  13. #Show part pic
  14. print '------------Show part pic------------'
  15. disp.Dis_part_pic(0,xDot-1,0,yDot-1,waveshare)
  16. time.sleep(DELAYTIME)
  17.  
  18. #Drawing
  19. print '------------Show Circle and Line------------'
  20. disp.Dis_Drawing((yDot-32)/8-2,0,Circle3232,32,32) #Circle
  21. disp.Dis_Drawing((yDot-32)/8-2,4,Line3232,32,32) #Line
  22. time.sleep(DELAYTIME)
  23.  
  24. #String
  25. print '------------Show string------------'
  26. disp.Dis_String(0, 10, "WELCOME EPD",16)
  27. disp.Dis_String(0, 26, "I am an electronic paper display",12)
  28. time.sleep(DELAYTIME)
  29.  
  30. #Progress
  31. print '------------Show Progress------------'
  32. disp.Dis_Progress(9)   
  33. time.sleep(DELAYTIME)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement