HELP...Please Hold MY Hand!

Hi @tsenneville,

Woot. You’re talking.

As far as the sliders go, take a look at my jukebox example. There is different behaviour depending on if you are using the mobile app or the browser dashboard. My example shows the workaround.

If you want to use virtual pins, you need to manage the pinMode settings yourself:

#define DIR_PIN 13
pinMode(DIR_PIN,OUTPUT);

//out function for direction pin on virtual channel 1
CAYENNE_IN(V1) {
    digitalWrite(DIR_PIN,getValue.asInt());
}

Personally, I think below is bad coding as you could be creating a race condition. Best to set it to whatever is on the Dashboard.

digitalWrite(13,!digitalRead(13));

Cheers,

Craig

1 Like