Getting started with tramontana and p5js:
- Download tramontana for iOS (or in the AppStore on your phone) or for Android
- Download the p5js library
Load the libraries in your html file:
<!-- import jquery -->
<!-- import p5js -->
<!-- import tramontana -->
Now you can create a new tramontana object that links to your device.
var device = new tramontana();
In the setup function you can call the start function of tramontana, that accepts 2 parameters. The first one is the ipAddress of your device (that you can see on your device, and the second is a callback function that is called if the connection succeed or fails. If the error is undefined the connection is successful and you can do a lot of things with tramontana, like for instance trigger the haptic engine of the device.
//SUCCESS TRAMONTANA CONNECTED
You can check more examples here: