Nikon SLR Cameras

Nikon does not name a type error?

Brandon Wolfram
Brandon Wolfram

Include <multiCameraIrControl.h>

int onValue = 10; // specify how long the status LED is turned on
int delayValue = 5000; // specify interval between shots in milliseconds
Nikon D90(9); // specifies the camera model

void setup(){
pinMode(13, OUTPUT); // initialize pin 13 as an output.
}

void loop(){
digitalWrite(13, HIGH); // set the LED on
delay(onValue); // wait
D90.shutterNow(); // trigger the shutter
digitalWrite(13, LOW); // set the LED off
delay(delayValue-onValue); // wait
}

thats my code and I need a fix for it now and I just don't get why its giving me errors

Violet W
Violet W

I think you are missing a type specifier for Nikon. On the first line, variable onValue is type int (integer). On the second line, variable delayValue is type in. On the third line, what is Nikon? The compiler may be treating it as a type specifier, but there's no Nikon type defined in the language.

Why does the third line exist? Should Nikon be used in an assignment statement?