#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "upm_utilities.h"
int main()
{
float abc = 0;
printf("ERROR !! ERROR !! ERROR!!");
}
printf("value retrieved: %f\n", abc);
return 0;
}
|
#define | TSL2561_Address (0x29) |
|
#define | INTEGRATION_TIME0_13MS (0x00) |
|
#define | INTEGRATION_TIME1_101MS (0x01) |
|
#define | INTEGRATION_TIME2_402MS (0x02) |
|
#define | GAIN_0X (0x00) |
|
#define | GAIN_16X (0x10) |
|
#define | CONTROL_POWERON (0x03) |
|
#define | CONTROL_POWEROFF (0x00) |
|
#define | REGISTER_Control (0x80) |
|
#define | REGISTER_Timing (0x81) |
|
#define | REGISTER_Interrupt (0x86) |
|
#define | REGISTER_Channal0L (0x8C) |
|
#define | REGISTER_Channal0H (0x8D) |
|
#define | REGISTER_Channal1L (0x8E) |
|
#define | REGISTER_Channal1H (0x8F) |
|
#define | LUX_SCALE (14) |
|
#define | LUX_RATIOSCALE (9) |
|
#define | LUX_CHSCALE (10) |
|
#define | LUX_CHSCALE_TINT0 (0x7517) |
|
#define | LUX_CHSCALE_TINT1 (0x0FE7) |
|
#define | LUX_K1C (0x0043) |
|
#define | LUX_B1C (0x0204) |
|
#define | LUX_M1C (0x01ad) |
|
#define | LUX_K2C (0x0085) |
|
#define | LUX_B2C (0x0228) |
|
#define | LUX_M2C (0x02c1) |
|
#define | LUX_K3C (0x00c8) |
|
#define | LUX_B3C (0x0253) |
|
#define | LUX_M3C (0x0363) |
|
#define | LUX_K4C (0x010a) |
|
#define | LUX_B4C (0x0282) |
|
#define | LUX_M4C (0x03df) |
|
#define | LUX_K5C (0x014d) |
|
#define | LUX_B5C (0x0177) |
|
#define | LUX_M5C (0x01dd) |
|
#define | LUX_K6C (0x019a) |
|
#define | LUX_B6C (0x0101) |
|
#define | LUX_M6C (0x0127) |
|
#define | LUX_K7C (0x029a) |
|
#define | LUX_B7C (0x0037) |
|
#define | LUX_M7C (0x002b) |
|
#define | LUX_K8C (0x029a) |
|
#define | LUX_B8C (0x0000) |
|
#define | LUX_M8C (0x0000) |
|