Where can be found the characteristics of the switching speed of GPIO port for the Raspberry Pi 3 under Android Things like that?
I got this java code to run in 0.633 seconds, equivalent to roughly 1500 Hz.
for (int i = 0 ; i < 1000 ; i++) {
buzzer.setValue(true);
buzzer.setValue(false);
}
There seems to be some optimization though because if you run it multiple times it occasionally goes faster.
I'm very curious to see the results using C/C++ though.