Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: akmsensor.h
- Revision:
- 40:42e48427e4b7
- Parent:
- 37:c76d2edf3426
- Child:
- 41:a3ea80c594ec
--- a/akmsensor.h Tue Jul 18 23:20:26 2017 +0000 +++ b/akmsensor.h Wed Jul 19 23:30:22 2017 +0000 @@ -15,21 +15,18 @@ // I2C Pin Number Definitions #define I2C_SCL P0_8 //I2C, SCL #define I2C_SDA P0_10 //I2C, SDA +#define I2C_DRDY P0_11 +#define I2C_SPEED 100000 // Digital Port Pin Number Definitions #define DIGITAL_D0 P0_11 #define DIGITAL_D1 P0_9 // DRDY Port Pin Number Definitions -#define I2C_DRDY P0_11 // Analog In Pin Number Definitions #define ANALOG_IN_PIN P0_5 //P05 -// I2C Speed Standards -#define I2C_SPEED_100KHZ 100000 -#define I2C_SPEED_400KHZ 400000 - // Sampling rate for ADC #define SENSOR_SAMPLING_RATE 0.1 // 10Hz