Timer for GPIO
Hi,
With the code below I expect the timer to be scheduled every 2000ms but I keep getting much faster ADC streaming (about 10Hz)
Please suggest
Thanks
Udi
timerModule.scheduleTask(new Timer.Task() {
@Override
public void commands() {
gpioModule.readAnalogIn((byte) GPIO_Num, Gpio.AnalogReadMode.ADC);
}
}, 2000, false).onComplete(new AsyncOperation.CompletionHandler<Timer.Controller>() {
@Override
public void success(Timer.Controller result) {
timerControler = result;
result.start();
}
});
This discussion has been closed.
Comments