Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/LSM9DS1_Basic_I2C/LSM9DS1_Basic_I2C.ino
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ static unsigned long lastPrint = 0; // Keep track of print time
// http://www.ngdc.noaa.gov/geomag-web/#declination
#define DECLINATION -8.58 // Declination (degrees) in Boulder, CO.

//Function definitions
void printGyro();
void printAccel();
void printMag();
void printAttitude(float ax, float ay, float az, float mx, float my, float mz);

void setup()
{

Expand Down
6 changes: 6 additions & 0 deletions examples/LSM9DS1_Basic_SPI/LSM9DS1_Basic_SPI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ LSM9DS1 imu;
// http://www.ngdc.noaa.gov/geomag-web/#declination
#define DECLINATION -8.58 // Declination (degrees) in Boulder, CO.

//Function definitions
void printGyro();
void printAccel();
void printMag();
void printAttitude(float ax, float ay, float az, float mx, float my, float mz);

void setup()
{
Serial.begin(115200);
Expand Down
3 changes: 3 additions & 0 deletions examples/LSM9DS1_Interrupts/LSM9DS1_Interrupts.ino
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ const int RDYM_PIN = 6; // RDY pin to D6
// Variable to keep track of when we print sensor readings:
unsigned long lastPrint = 0;

//Function Definitions
void printStats();

// configureIMU sets up our LSM9DS1 interface, sensor scales
// and sample rates.
uint16_t configureIMU()
Expand Down
3 changes: 3 additions & 0 deletions examples/LSM9DS1_Settings/LSM9DS1_Settings.ino
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ unsigned int tempReadCounter = 0;
unsigned long lastPrint = 0;
const unsigned int PRINT_RATE = 500;

//Function definitions
void printSensorReadings();

void setupDevice()
{
// [commInterface] determines whether we'll use I2C or SPI
Expand Down