Reference

Actuators


Haptics

makeVibrate()

Media

showImage(String url)

playAudio(String url)

playVideo(String url)

loopVideo(String url)

Flash light

setFlashLight(float onValue)

pulseFlashLight(int numberOfPulses, float duration, float intensity)

Screen

setBrightness(float brightness)

setColor(float red, float green, float blue, float intensity)

setColor(int red, int green, int blue, int intensity)

transitionColors(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2, float duration)


Embedded Actuators

setServoEmbedded(int servoIndex, int value)

setRelayEmbeddedOff(int relayIndex)

setRelayEmbeddedOn(int relayIndex)

sendSerialMessageEmbedded(String msg)

setColorEmbedded(int ledIndex,int red, int green, int blue)

blinkColorEmbedded(int ledIndex,int red, int green, int blue)

setAllColorEmbedded(int red, int green, int blue)


OSC - Machine Learning

sendAttitudeDataToOSC(float frequency, int port)

sendAttitudeDataToOSC(float frequency, int port, String ip)

sendTouchDataToOSC(int maxNumFingers)

sendTouchDataToOSC(int maxNumFingers, int port)

sendTouchDataToOSC(int maxNumFingers, int port, String ip)

stopAttitudeDataToOSC()

stopTouchDataToOSC()


Embedded Sensors

subscribeRxEmbedded()

releaseRxEmbedded()

subscribeButtonsEventEmbedded()

releaseButtonsEventEmbedded()

subscribeAnalogEmbedded()

releaseAnalogEmbedded()

subscribeLDREmbedded()

releaseLDREmbedded()


Callback methods

onVideoEndEvent(String ipAddress)

onAttitudeEvent(String ipAddress, float yaw, float pitch, float roll)

onAudioJackEvent(String ipAddress, int isIn)

onMagnetometerEvent(String ipAddress, int isAboveThreshold, float magnetometerValue)

onDistanceEvent(String ipAddress, int distanceValue)

onOrientationEvent(String ipAddress, int orientation)

onPowerSourceEvent(String ipAddress, int orientation)

onTouchEvent(String ipAddress, int x,int y)

onTouchDragEvent(String ipAddress, int x,int y)

onTouchDownEvent(String ipAddress, int x,int y)

onMultiTouchEvent(String ipAddress, ArrayList touches, int numTouches)

onMultiTouchDragEvent(String ipAddress, ArrayList touches, int numTouches)

onMultiTouchDownEvent(String ipAddress, ArrayList touches, int numTouches)

gotBatteryUpdate(String ipAddress, float batteryValue)

Embedded:

onEmbeddedBtnsEvent(String ip, int btnIndex, int btnValue)
onEmbeddedRxEvent(String ip,String msg)
onEmbeddedAnalogUpdate(String ip, int value)
onEmbeddedLDRUpdate(String ip, int value)

Reference tramontanaCV

Remote Control

available from verson 2.0

lockExposure()
unlockExposure()
captureBackground()
takeScreenshot()

setBlur(float amount)
setThreshold(int amount)

setBlobs(int min, int max, int num)

setCamera(int cameraId)

switchToDetectFaces()
switchToDetectBlobs()


Callback Methods

onBoundingBoxReceived(TBBoxContainer container, int nBboxes, String ip)

onBlobsReceived(TBlobsContainer container, int nBlobs, String ip)

onFacesReceived(TBBoxContainer container, int nFaces, String ip)

Custom Types

TBBoxContainer {
              public TBBox[] bboxes;
              public int nBBoxes;
}

TBBox {
             public float x;
             public float y;
             public float w;
             public float h;

             public TBBox(int x, int y, int w, int h);
             public TBBox(float x, float y, float w, float h);
}

TBlobsContainer {
            public TBlob[] blobs;
            public int nBlobs;
}

TBlob {
        public TVector[] pts;
        public int nPts;

        public TBlob(PApplet parent);
        public void draw();
}

TVector{
         public int x;
         public int y;

         public TVector(int x, int y);
}