Hello! I'm new to arduinos and am trying to bypass a broken driver. I would like to be able to have the arduino send a 5mV signal out to a 2nd computer when I press record on my first computer. I have Doric software running on the first computer and am capturing images with it, and just need to time stamp those recordings with the event recordings on the second.
I was working on just the first part of this, trying to have the arduino count the number of times I have clicked, and it doesn't seem to be registering mouse click events. This is the code I have running:
// Mouse - Version: Latest
#include <Mouse.h>
void setup() {
Serial.begin(9600);
//initiate the Mouse library
Mouse.begin();
}
void loop() {
//a variable for checking the button's state
int mouseState = 0;
if (Mouse.isPressed()) {
mouseState += 1;
}
//print out the current mouse button state
Serial.print(mouseState);
delay(10);
}
It's only printing zeros. Is there a specific place on screen that it can register click events? Or is it resetting to false too quickly to increase the count? I know this should be simple, I'm just not getting it. I have the arduino and computer linked through a USB connection, which I read should work.
Thanks!