#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 what setDataMode() is given.

Note

If PinnacleTouch() is given PINNACLE_SW_DR as the dataReadyPin parameter, then this function will attempt to read data from the Pinnacle’s Status register. However, this tactic is only allowed for PINNACLE_RELATIVE or PINNACLE_ABSOLUTE modes.

Returns:

true if there is new data to report; false if there is no new data to report.