Appears to be working now
Signed-off-by: Keith Packard <keithp@keithp.com>
static void
ao_mpu6000_show(void)
{
-#if 0
struct ao_data sample;
ao_data_get(&sample);
sample.mpu6000.gyro_x,
sample.mpu6000.gyro_y,
sample.mpu6000.gyro_z);
-#endif
- printf ("who-am-i: %02x\n", ao_mpu6000_reg_read(MPU6000_WHO_AM_I));
}
static const struct ao_cmds ao_mpu6000_cmds[] = {
{
ao_mpu6000_configured = 0;
-// ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000");
+ ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000");
#ifndef AO_MPU6000_I2C_INDEX
ao_spi_init_cs(AO_MPU6000_SPI_CS_PORT, (1 << AO_MPU6000_SPI_CS_PIN));
#endif