-
#include "CirquePinnacle.h"
-
bool PinnacleTouch::available();
Use this function to determine if there is new data to report. Internally, this function checks if the interrupt signal on the “data ready” pin (labeled “DR” in the pinout section) is active. Data, new or antiquated, can be retrieved using
read()
depending on whatsetDataMode()
is given.Note
If
PinnacleTouch()
is givenPINNACLE_SW_DR
as thedataReadyPin
parameter, then this function will attempt to read data from the Pinnacle’s Status register. However, this tactic is only allowed forPINNACLE_RELATIVE
orPINNACLE_ABSOLUTE
modes.- Returns:¶
true
if there is new data to report;false
if there is no new data to report.