Ok, sorry I will try to make it more clear.
I have a mechanical camera head that normally is connected through a small USB cable to a digital camera ( in my case a Canon).
The head gives a signal to the camera whenever the shutter has to close, in other words when the camera should take a picture.
What i do now is I have an other technical IR camera that is controlled with a computer programme of it's own. The camera is conected to my laptop (windows 7) with a USB cable and I can take a picture through the camera programme using the F11 key.
What I want to do is use that camera on the mechanical head. I connect my Teensy to the head with a USB cable on pin 10, then I connect the usb port on my Teensy to my computer. Now whenever the head gives a signal to close the shutter I want my computer to give the F11 command to the camera programme. Is that possible?
I hope this is clear enough?
This is the latest code I'm trying without any succes.
void setup() {
Serial.begin(9600);
pinMode(10, INPUT_PULLUP);
delay(4000);
}
void loop() {
if (digitalRead(10) == HIGH) {
delay(10);
} else {
Keyboard.print("KEY_F11"); //
delay(1000);
}