Hello ,I wrote a program that allows to control the LIS2DE12 accelerometer but I am reviewing a fixed result which is always X = 72, Y = 33, Z = 32, I find out where the problem , thanks you in advance.
`int main(void)
{
int8_t X,Y,Z;
uart_config();
//accel_I2C_datawrite(&twi_instance);
twi_init();
m_device_address = accel_addr;
uint8_t rx_buffer[6];
rx_buffer[0] = 0x00;
//int threshold;
//accel_set_threshold(threshold);
while(true)
{
accel_xyz_read(&X,&Y,&Z);
printf("Groupeer accelero DATA2: X: %d Y: %d Z: %d \n", X ,Y,Z);
nrf_delay_ms(1000);
}
}
`