This line in void setup():
// take control of the mouse:
Mouse.begin();
Is irrelevant, otherwise it wont work in another IDEs, i tried this line and the problem persists. It is not a hardware/code problem, because the exact combination of hardware/code works in other environments. The problem is really with the platformio because the SO does NOT enumerate the hardware when i upload the code via platformio, but DOES enumerate when i upload via Arduino IDE and Sloeber IDE.
We are missing something that only the developers of this plugin knows, i already made tests in a notebook and the problem is the same as in my desktop computer.
I uploaded the code via platformio:
#include <Arduino.h>
#include <Mouse.h>
void setup() {
//EDIT: Added missing (but possibly pointless)
Mouse.begin();
}
void loop() {
Mouse.move(0, 10, 0);
delay(100);
}
And doesn’t work either, the mouse is not moving by itself because the HID-compliant mouse is not been enumerated in the Device Manager, it doesn’t appear on the list. WHYYYYYYY???