Now you are ready to play:
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!
If you are curious of what is next to learn about tramontana I suggest you look at the examples here: