Open MarcosBaungartner opened 5 years ago
Just linking this to the forum thread for completeness: https://community.platformio.org/t/the-code-compile-in-arduino-ide-and-platformio-but-only-works-if-using-arduino-ide/7744
Also, I have a Arduino Micro on the way so I can test this on my end...
Got the same issue here but with an Aduino Mega and another library (fastled) Exact same symptoms.
Got the same issue here but with an Aduino Mega and another library (fastled) Exact same symptoms.
Sadly the PlatformIO is not reliable.
For Mouse you will need to first add lib_deps = Mouse
in platformio.ini then add #include <Mouse.h>
in main.cpp or other files using mouse in your project
I’m using a joystick and an Arduino Pro Micro to emulate the mouse, I use exactly the same code on both platforms, it compiles perfectly, with no errors, however it only works if I pass the code via Arduino IDE.
I downloaded the latest version of VS Code with PlatformIO, i also downloaded the library Mouse.h from PlatformIO Library Manager, and even so, after i upload the code to my Micro Pro the mouse does not respond to the joystick! But the same code works when i upload via Arduino IDE!
Here is the code: