Example #1
0
void cmd_accel(int argc, char** argv) {
	int x = accel_get_x();
	int y = accel_get_y();
	int z = accel_get_z();
	
	bufferPrintf("x: %d, y: %d, z: %d\r\n", x, y, z);
}
Example #2
0
static error_t cmd_accel(int argc, char** argv)
{
	int x = accel_get_x();
	int y = accel_get_y();
	int z = accel_get_z();

	bufferPrintf("x: %d, y: %d, z: %d\r\n", x, y, z);

	return SUCCESS;
}