back to FEHAccel
Description
Returns the current status of the Proteus’s accelerometer
Parameters
None
Returns
A boolean based on whether or not the accelerometer is enabled
true - Accelerometer is enabled false - Accelerometer is disabled
Examples
#include <FEHAccel.h> int main(void) { float x,y; /* Check to ensure the accelerometer is enabled before reading from it */ if(Accel.isEnabled()) { x = Accel.X(); y = Accel.Y(); } }