I just took your code and repurposed it in a Linux/Visual Studio Code environment. It is quite a simple process as follows:
The *.ino file is renamed to main.cpp
The header files are moved to the "include" directory.
In Linux files names are case-sensitive (unlike Windows). So references to must be rewritten as
You mention pin 10 as an interrupt pin without using it as an interrupt at all, rather as just GPIO. This may account for sampling problems.
I shall try and adjust the code to work with true interrupts.
I just took your code and repurposed it in a Linux/Visual Studio Code environment. It is quite a simple process as follows:
You mention pin 10 as an interrupt pin without using it as an interrupt at all, rather as just GPIO. This may account for sampling problems. I shall try and adjust the code to work with true interrupts.