Advertisement
Guest User

Eink Raspberry Pi

a guest
Nov 23rd, 2014
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. Step by Step Twitter to Eink inside a RPI case
  2.  
  3. 1. clone from github after the PI is setup.
  4. git clone https://github.com/embeddedartists/gratis.git
  5. sudo apt-get install git
  6.  
  7. 2. Confirm that the module is set
  8. sudo modprobe spi-bcm2708
  9.  
  10. 3. Install dependancies
  11.  
  12. sudo apt-get install libfuse-dev
  13. sudo apt-get install python-imaging
  14.  
  15.  
  16. 4. Build and install from inside /home/pi/gratis/PlatformWithOS
  17. COG_VERSION=V2 make rpi-epd_fuse
  18. sudo modprobe spi-bcm2708
  19. sudo mkdir /tmp/epd
  20.  
  21. sudo ./driver-common/epd_fuse --panel=2.7 -o allow_other -o default_permissions /tmp/epd
  22.  
  23. sudo COG_VERSION=V2 make rpi-install
  24. sudo service epd-fuse start ls -l /dev/epd
  25.  
  26.  
  27. 5. Test your configuration
  28. cat /tmp/epd/version
  29. cat /tmp/epd/panel
  30. COG_VERSION=V2 make rpi-epd_test
  31.  
  32.  
  33. 6. Setup apps Twitter account
  34. https://apps.twitter.com/
  35.  
  36. 7. Rename the sample file
  37. mv tweepy_auth.py-SAMPLE tweepy_auth.py
  38.  
  39. 8. Modify the demo file called tweepy_auth.py
  40. basic = False
  41. CONSUMER_KEY = ''
  42. CONSUMER_SECRET = ''
  43. ACCESS_TOKEN = ''
  44. ACCESS_TOKEN_SECRET = ''
  45.  
  46. 9. Install Tweepy
  47. pip install tweepy
  48.  
  49. 10. Run the file (‘linux’ is the name of a twitter feed)
  50. python demo/TwitterDemo.py linux
  51.  
  52.  
  53. 11. Optional modify your fonts inside TwitterDemo.py
  54.  
  55. this line: possible_message_fonts = [
  56. '/usr/share/fonts/truetype/droid/DroidSans-Bold.ttf',
  57. and this line: y = y + 24
  58.  
  59. 12. Start at boot
  60. Need to install the startup script in /etc/init.d and install the EPD FUSE program in /usr/sbin, there is a make target that does this.
  61. sudo COG_VERSION=V2 make rpi-install
  62. sudo service epd-fuse start ls -l /dev/epd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement