Getting started with Processing and tramontana:

  1. Download tramontana for iOS (or in the AppStore on your phone) or for Android
  2. Download the latest version of Processing
  3. Download the tramontana library and the websocket library (video how to do it here)

Now you are ready to play:

Put your phone and your computer on the same wifi network!

Now let’s start to write our first sketch:

The first thing you need to write is to import the libraries:

import tramontana.library.*;
import websockets.*;

Then create an instance of Tramontana:

Tramontana device;

In the setup method we will open the connection with our device. To get the right address open the tramontana app on your phone and change the ip address in the line below with your device’s one:

void setup(){
    t = new Tramontana(this,"192.168.1.17");
}

Now you are ready to give the first instruction to your device, you can try something like:

void mousePressed(){
 t.makeVibrate();
}

On mouse pressed this will make your device vibrate!

Congratulations, you created your first interactive experience!

If you are curious of what is next to learn about tramontana I suggest you look at the examples here:

A_HelloWorld

B_ChangeColor

C_MultipleDevices

D_MotionSensor

E_MultipleDevicesInput

F_MultipleInputs

G_Touch