int lightLeft = 11;
int lightRight = 10;
int lightRoom = 9;
int lightGarage = 8;
int servoDoor = 7;
int servoGarage = 6;
bool asyncdemo = false;
void setup() {
// Bridge takes about two seconds to start up
// it can be helpful to use the on-board LED
// as an indicator for when it has initialized
Bridge.begin();
Hi , this is the code that i want to upload to my Arduino UNO/Genuine board
include
include
include
include
include
include
include
include
HttpClient client;
Servo frontDoor; Servo garageDoor; Blink led(13,1000);
int lightLeft = 11; int lightRight = 10; int lightRoom = 9; int lightGarage = 8; int servoDoor = 7; int servoGarage = 6;
bool asyncdemo = false;
void setup() { // Bridge takes about two seconds to start up // it can be helpful to use the on-board LED // as an indicator for when it has initialized Bridge.begin();
client.setTimeout(2000);
pinMode(lightLeft, OUTPUT); pinMode(lightRight, OUTPUT); pinMode(lightRoom, OUTPUT); pinMode(lightGarage, OUTPUT);
led.Update();
frontDoor.attach(servoDoor); garageDoor.attach(servoGarage);
reset();
}
When i try to compile this code , its throwing an error " pubnub_arduino:43:7: error: 'reset' was not declared in this scope
reset();
exit status 1 'reset' was not declared in this scope "..
Can anyone help me out to get rid of this error... Thanks ..