Geo beacon for VF.
Dependencies: MMA8452 aconno_bsp adc52832_common
Diff: main.cpp
- Revision:
- 38:12f6e20e66a2
- Parent:
- 37:4b38af411b64
- Child:
- 41:7d8ce2d8d167
--- a/main.cpp Fri Apr 20 13:33:36 2018 +0000 +++ b/main.cpp Fri Apr 20 13:40:08 2018 +0000 @@ -40,19 +40,19 @@ /* Static constants for the accelerometer */ #define WHO_AM_I 0x0D /* Type 'read' : This should return the device id of 0x2A */ #define OUT_Z_MSB 0x05 /* Type 'read' : z axis - 8 most significatn bit of a 12 bit sample */ -#define ACC_POWER (p7) -#define I2C_DATA (p29) -#define I2C_CLK (p2) -#define INT2_PIN (p4) -#define BUZZER (p31) +#define ACC_POWER (p11) +#define I2C_DATA (p20) +#define I2C_CLK (p17) +#define INT2_PIN (p15) +#define BUZZER (p18) #define BUZZER_ON_TIME_S (0.250) #define BUZZER_OFF_TIME_S (0.050) /* LEDs */ -#define RED_LED (p22) -#define GREEN_LED (p24) -#define BLUE_LED (p23) +#define RED_LED (p31) +#define GREEN_LED (p2) +#define BLUE_LED (p3) /* I2C power */ #define I2C_POWER (p5)