I have two libraries, for some reason they both conflict and cannot be included in the same sketch without failing. I want to be able to call the second sketch into the first to avoid this conflict.
#include <DigiMouse.h>
void setup() {
DigiMouse.begin();
}
void loop() {
DigiMouse.setButtons(1<<0); // left click
DigiMouse.delay(200);
DigiMouse.moveY(100);
DigiMouse.delay(200);
DigiMouse.moveX(100);
}
and
#include <DigiKeyboard.h>
void setup(){
}
void loop(){
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_RIGHT);
delay(200);
DigiKeyboard.print("mspaint.exe");
delay(200);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
delay(200);
DigiKeyboard.sendKeyStroke(KEY_F11);
delay(200);
}