Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Mode with a ESP32 #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Modified IFdef in every example to account for a different architecture
  • Loading branch information
rupin committed May 6, 2019
commit 995d8448d49ca25088fe4f4746180897e78b5bb1
6 changes: 5 additions & 1 deletion examples/MPU9250_Basic/MPU9250_Basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down
7 changes: 6 additions & 1 deletion examples/MPU9250_Basic_Interrupt/MPU9250_Basic_Interrupt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

#define INTERRUPT_PIN 4

MPU9250_DMP imu;
Expand Down
6 changes: 5 additions & 1 deletion examples/MPU9250_DMP_Gyro_Cal/MPU9250_DMP_Gyro_Cal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down
6 changes: 5 additions & 1 deletion examples/MPU9250_DMP_Orientation/MPU9250_DMP_Orientation.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down
6 changes: 5 additions & 1 deletion examples/MPU9250_DMP_Pedometer/MPU9250_DMP_Pedometer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down
6 changes: 5 additions & 1 deletion examples/MPU9250_DMP_Quaternion/MPU9250_DMP_Quaternion.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down
6 changes: 5 additions & 1 deletion examples/MPU9250_DMP_Tap/MPU9250_DMP_Tap.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down
6 changes: 5 additions & 1 deletion examples/MPU9250_FIFO_Basic/MPU9250_FIFO_Basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ Supported Platforms:
*************************************************************/
#include <SparkFunMPU9250-DMP.h>

#define SerialPort SerialUSB
#ifdef defined(SAMD)
#define SerialPort SerialUSB
#else
#define SerialPort Serial
#endif

MPU9250_DMP imu;

Expand Down