'Cayenne' was not declared in this scope

@wdlarosa
go to custom widgets add a 2 state display widget.
fill all the details and select virtual pin V2 and add this to your code.

BLYNK_READ(V2)
{
int x = digitalRead(4);
Blynk.virtualWrite(V2, x);
}
connect button pin to pin 4 of particle photon or change it to whatever you want inside the code.

@laurencehr can guide you better.

1 Like