

Function changeColor will send the keystroke 'CTRL+K' to the computer The compiler error is being generated because you are calling the Serial.write() function incorrectly.
#SENDING KEYSTROKES TO ELINKS CODE#
Modern keyboards use a scan code for the modifier keys and I have no idea whether the ASCII values will work for your application. The control key is a modifier which, in ASCII, clears the 2 most significant bits of the 7 bit character code, the modifier key is applied to. I am having troubles finding the correct HEX, ASCII, or Decimal for this.
#SENDING KEYSTROKES TO ELINKS SERIAL#
I am trying to send ctrl+k keystroke through serial write to my computer. Photobooth2:98: error: no matching function for call to 'HardwareSerial::write(int, int)'Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:62: note: candidates are: virtual size_t HardwareSerial::write(uint8_t)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:63: note: size_t HardwareSerial::write(long unsigned int)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:64: note: size_t HardwareSerial::write(long int)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:65: note: size_t HardwareSerial::write(unsigned int)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:66: note: size_t HardwareSerial::write(int)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:54: note: size_t Print::write(const char*, size_t)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:53: note: virtual size_t Print::write(const uint8_t*, size_t)Ĭ:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:49: note: size_t Print::write(const char*) Photobooth2.ino: In function 'void changeColor()': My Code // Function changeColor will send the keystroke 'CTRL+K' to the computerĮrror This report would have more information withĪrduino: 1.0.6 (Windows 7), Board: "Arduino Uno" I am sorry if this has been asked already. I don't understand the error and warning yet. I have spent two days looking for the key command without sending to a scanner or LCD display. I would appreciate any help with either the proper search topic or help with code. I am using an additional program ACC Keys to capture the serial data. I have successfully sent the space command. I understand that this is not a Leonardo or a FLASH DFU Arduino. I get a compiler error when working my way.

