xTickCount = xTaskGetTickCount ();
+ adcStartXYZ();
+
for (;;)
{
vTaskDelayUntil (&xTickCount, 100 / portTICK_RATE_MS);
+ printf("tick\n");
+
//
// Adjust the DAC value so we output a slow sine wave
//
xSemaphoreGive (semaphore);
}
+
+ //
+ // get and display last X, Y, and Z accelerometer readings,
+ // the start another conversion
+ //
+ printf("%04x %04x %04x\n", adcReadX(), adcReadY(), adcReadZ());
+
}
}