What is Android Things Raspberry Pi GPIO max frequency?

后端 未结 3 661
北恋
北恋 2020-12-11 11:14

Where can be found the characteristics of the switching speed of GPIO port for the Raspberry Pi 3 under Android Things like that?

3条回答
  •  Happy的楠姐
    2020-12-11 11:57

    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.

提交回复
热议问题