Skip to content

andrewslater/arduino-accelerometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino-accelerometer

Usage:

// Pass the pins which correspond to the X, Y, and Z axis to the constructor:
Accelerometer accel = Accelerometer(A2, A1, A0);

void loop() {
    accel.refresh();
    // refresh() determines the attitude of the accelerometer
    // You can then query it's position:
    //     accel.getX();
    // Or the change since the last time refresh() was called:
    //     accel.getDeltaX();
}

About

Arduino utility library for interfacing with accelerometers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages