A short example of using subtree for stuff.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.7 KiB

  1. # Adafruit-PiTFT-Helper
  2. A script for configuring Adafruit's PiTFT displays on a Raspberry Pi.
  3. **This is in a beta state and may contain bugs.**
  4. ## PiTFT Documentation
  5. - [PiTFT - Assembled 320x240 2.8" TFT+Touchscreen for Raspberry Pi](https://www.adafruit.com/product/1601)
  6. - [PiTFT - Assembled 480x320 3.5" TFT+Touchscreen for Raspberry Pi](https://www.adafruit.com/product/2097)
  7. ## Getting Started: Kernel & Helper Script Installation
  8. First, add [Adafruit's Occidentalis package repository][o] to your system.
  9. Occidentalis is a growing collection of useful packages and configuration
  10. defaults for installation on Raspbian systems.
  11. If you want to bootstrap the full version of Occidentalis on a fresh, unused Pi
  12. from another computer, we offer an easy graphical tool called the [Pi Finder][p].
  13. Once bootstrapped, you can open a terminal on your Pi and run:
  14. ```sh
  15. sudo apt-get install adafruit-pitft-helper
  16. ```
  17. ...which will install both the helper script and a custom kernel with PiTFT
  18. support. If you _just_ want to install the kernel and helper without pulling
  19. down any other extra packages, you can run the following from the command line
  20. of a working Pi:
  21. ```sh
  22. curl -SLs https://apt.adafruit.com/add | sudo bash
  23. sudo apt-get install adafruit-pitft-helper
  24. ```
  25. This can take a surprisingly long time to finish, especially if you're using a
  26. slower SD card, so be patient.
  27. **Please be careful!** Installing a new kernel always has the potential to
  28. leave your Raspberry Pi unbootable. You should make a backup copy of your SD
  29. card before trying this, or (even better!) start with a fresh card.
  30. ## Using adafruit-pitft-helper
  31. `adafruit-pitft-helper` must be run with root privileges, and takes a parameter
  32. specifying the type of PiTFT to configure. Invoke it like so:
  33. ```sh
  34. sudo adafruit-pitft-helper -t 28r
  35. ```
  36. For a full list of available options, check the help:
  37. ```sh
  38. adafruit-pitft-helper -h
  39. ```
  40. ## Installing PiTFT support in a Raspbian image file (experimental!)
  41. This repository includes a [small wrapper script][c] for installing the custom
  42. kernel and PiTFT configuration in a Rasbpian image file. In order to use it,
  43. you can download and unzip a recent Raspbian image on a Raspberry Pi, then do
  44. something like the following in a terminal:
  45. ```sh
  46. curl -SLs https://apt.adafruit.com/add | sudo bash
  47. sudo apt-get install adafruit-pitft-helper
  48. sudo adafruit-pitft-chroot-install -t 28r -i ~/2015-02-16-raspbian-wheezy.img
  49. ```
  50. ...where `-t` specifies the type of PiTFT just like the same option to
  51. `adafruit-pitft-helper`, and `-i` specifies the path to an image file.
  52. [o]: https://github.com/adafruit/Adafruit-Occidentalis
  53. [p]: https://github.com/adafruit/Adafruit-Pi-Finder
  54. [c]: https://github.com/adafruit/Adafruit-PiTFT-Helper/blob/master/adafruit-pitft-chroot-install