cool pinout

Adafruit Guides

SETUP AND ACCESS:

    /boot/config.txt settings for edge to edge beauty:
    sdtv_mode=0 #for NTSC
    sdtv_aspect=3 #for 16:9
    framebuffer_width=480
    framebuffer_height=272
    disable_overscan=1 #non-intuitive but the overscan_scale does the work
    overscan_scale=1 #currently undocumented but works
    overscan_left=16
    overscan_right=16
    overscan_top=8
    overscan_bottom=8

GPIO:

  • GPIO Setup:
    • WiringPi:
      • git clone git://git.drogon.net/wiringPi
      • cd wiringPi
      • ./build
      • Python Wrappers:
        • sudo apt-get install python-dev
        • sudo apt-get install python-setuptools
        • git clone https://github.com/Gadgetoid/WiringPi2-Python.git
        • cd WiringPi2-Python
        • sudo python setup.py install
    • ADC
    • setup:
      • wire to pin and ground
      • Setup global mode:
        • GPIO.setmode(GPIO.BCM)
      • Setup Specific pin:
        • GPIO.setup(14, GPIO.IN, GPIO.PUD_UP)

Screen Blanking:

  • sudo nano /etc/kbd/config
    • change: BLANK_TIME=30
    • to: BLANK_TIME=0
  • sudo nano /etc/X11/xinit/xinitrc
    • after first line, add:
      • xset s off
      • xset -dpms
      • xset s noblank
  • `sudo nano /etc/lightdm/lightdm.conf
    • [SeatDefaults]
    • xserver-command=X -s 0 -dpms
  • `sudo nano /etc/xdg/lxsession/LXDE/autostart
    • # @xscreensaver -no-splash <-make it commmented out
      • add:
        • @xset s off
        • @xset -dpms
        • @xset s noblank

Starting stuff at startup:

Making images of SD card

Here is a great guide to pulling the image and shrinking it