All Files Functions Variables Macros
Functions | Variables
internalTemp.h File Reference

Detailed Description

File for the tempature block.

internalTemp.h contains methods for the tempature Lightup block


replace these constants with your 2 data points
these are sample values that will get you in the ballpark (in degrees C)
take a temperature reading (= LU_internal_temp1)
and observe the rawData by Serial.println(rawData) (= LU_internal_data1)
take another temperature reading (= LU_internal_temp2)
and observe the rawData by Serial.println(rawData) (= LU_internal_data2)

Go to the source code of this file.

Functions

float readTemp ()
 Function to return the current tempature. More...
 
void changeTemp (float temp1, long data1, float temp2, long data2)
 Change the tempature settings. More...
 

Variables

static float LU_internal_temp1 = 0
 
static long LU_internal_data1 = 274
 
static float LU_internal_temp2 = 25.0
 
static long LU_internal_data2 = 304
 

Function Documentation

void changeTemp ( float  temp1,
long  data1,
float  temp2,
long  data2 
)

Change the tempature settings.

Parameters
temp1sets the LU_internal_temp1
data1sets the LU_internal_data1
temp2sets the LU_internal_temp2
data2sets the LU_internal_data2
Returns
nothing
float readTemp ( )

Function to return the current tempature.

Returns
float with current temperature.

Variable Documentation

long LU_internal_data1 = 274
static
long LU_internal_data2 = 304
static
float LU_internal_temp1 = 0
static
float LU_internal_temp2 = 25.0
static