|
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
35 for (
int i=0; i<=5; i++)
81 int f = (((actualTemp - 32) * 5) / 9);
82 if (((actualTemp * 18) % 10) > 5) { f++; }
void lis3dh_tempCal_C(lis3dh_t *device, int actualTemp)
Sets the actual temperature to provide a reference for the relative temperature sensor.
void lis3dh_writeByte(lis3dh_t *device, unsigned char address, unsigned char value)
write a byte value to an LIS3DH register
void lis3dh_tempCal_F(lis3dh_t *device, int actualTemp)
Sets the actual temperature to provide a reference for the relative temperature sensor.
Simplifies reading Parallax LIS3DH 3-Axis Accelerometer Module with ADC.
int lis3dh_temp_C(lis3dh_t *device)
Reads the calibrated (referenced) temperature value from the sensor.
int lis3dh_temp_F(lis3dh_t *device)
Reads the calibrated (referenced) temperature value from the sensor.
unsigned char lis3dh_readByte(lis3dh_t *device, unsigned char address)
Read a value from an LIS3DH register.
int lis3dh_getADC(lis3dh_t *device, int channel)
Gets raw adc measurement from a single ADC channel.
int lis3dh_tempRaw(lis3dh_t *device)
Reads the raw relative temperature value from the sensor.