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