Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PololuEncoder Pacer mbed GeneralDebouncer
l3g.h
00001 #pragma once 00002 00003 // Returns 0 for success, non-zero for error. 00004 int32_t l3gInit(); 00005 int32_t l3gReadReg(char reg); 00006 int32_t l3gWriteReg(char reg, char value); 00007 int32_t l3gZRead(); 00008 int32_t l3gZAvailable(); 00009 00010 // Takes one reading and record it for the purposes of zero-rate calibrations. 00011 // Returns the reading just in case you want it for something. 00012 int32_t l3gCalibrate(); 00013 00014 bool l3gCalibrateDone(); 00015 00016 void l3gCalibrateReset(); 00017 00018 int32_t l3gZReadCalibrated();
Generated on Sun Jul 17 2022 15:45:15 by
1.7.2