GithubHelp home page GithubHelp logo

gbraad / adafruit-pitft-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adafruit/adafruit-pitft-helper

0.0 3.0 0.0 97 KB

Script to configure an installed PiTFT

License: MIT License

Shell 58.36% Python 41.64%

adafruit-pitft-helper's Introduction

Adafruit-PiTFT-Helper

A script for configuring Adafruit's PiTFT displays on a Raspberry Pi.

PiTFT Documentation

Products:

Detailed installation guides:

Getting Started: Kernel & Helper Script Installation

First, add Adafruit's Occidentalis package repository to your system. Occidentalis is a growing collection of useful packages and configuration defaults for installation on Raspbian systems.

If you want to bootstrap the full version of Occidentalis on a fresh, unused Pi from another computer, we offer an easy graphical tool called the Pi Finder. Once bootstrapped, you can open a terminal on your Pi and run:

sudo apt-get install raspberrypi-bootloader
sudo apt-get install adafruit-pitft-helper

...which first installs a custom kernel with PiTFT support, and then the helper script itself. If you just want to install the kernel and helper without pulling down any other extra packages, you can run the following from the command line of a working Pi:

curl -SLs https://apt.adafruit.com/add | sudo bash
sudo apt-get install raspberrypi-bootloader
sudo apt-get install adafruit-pitft-helper

This can take a surprisingly long time to finish, especially if you're using a slower SD card, so be patient.

Please be careful! Installing a new kernel always has the potential to leave your Raspberry Pi unbootable. You should make a backup copy of your SD card before trying this, or (even better!) start with a fresh card.

Using adafruit-pitft-helper

adafruit-pitft-helper must be run with root privileges, and takes a parameter specifying the type of PiTFT to configure. Invoke it like so:

sudo adafruit-pitft-helper -t 28r

For a full list of available options, check the help:

adafruit-pitft-helper -h

Installing PiTFT support in a Raspbian image file (experimental!)

This repository includes a small wrapper script for installing the custom kernel and PiTFT configuration in a Rasbpian image file. In order to use it, you can download and unzip a recent Raspbian image on a Raspberry Pi, then do something like the following in a terminal:

curl -SLs https://apt.adafruit.com/add | sudo bash
sudo apt-get install adafruit-pitft-helper
sudo adafruit-pitft-chroot-install -t 28r -i ~/2015-02-16-raspbian-wheezy.img

...where -t specifies the type of PiTFT just like the same option to adafruit-pitft-helper, and -i specifies the path to an image file.

You can also use adafruit-pi-chroot to run a chrooted shell inside of a Raspbian ISO image. Like the install wrapper, this relies on kpartx.

These are the scripts we use to produce the Easy Install images offered in Adafruit product documentation. They may be a bit rough around the edges.

Older Versions

For the version supporting Raspbian Wheezy, check out the wheezy branch on this repository.

adafruit-pitft-helper's People

Contributors

brennen avatar toddtreece avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.