Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Gottfried Haider edited this page Aug 1, 2017 · 2 revisions

Getting started

Initial setup

  • Download and install the latest version of Processing from https://processing.org/download/

  • Start Processing

  • In Processing:

    Tools > Add Tool… to install the Upload to Pi tool (this allows you to write sketches on your laptop, but have them run on the Pi)

    Sketch > Import Library… to install the Hardware I/O library (this allows you to use the expansion header pins from Processing)

Telling Processing which Pi to upload to

  • In Processing:

    Processing > Preferences…

    Click the link to the preferences.txt file towards the bottom of the dialog

    A Finder window should open

  • Close Processing completely

    e.g. via Processing > Quit Processing

  • Open the preferences.txt file in a text editor

  • Find the line starting with gohai.uploadtopi.hostname= and replace the value with the IP address or hostname you want to work with

Uploading a sketch to the Pi

  • In Processing:

    Tools > Upload to Pi

    This will stop any sketch currently running on the Pi, and upload and run your current sketch instead. It will also put into the Pi's "autostart" - i.e. automatically launched whenever the Pi gets power.

Clone this wiki locally