Treehopper C++ API
TemperatureSensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Libraries/Treehopper.Libraries.h
"
4
#include "
Libraries/Pollable.h
"
5
6
using namespace
Treehopper::Libraries
;
7
8
namespace
Treehopper
{
9
namespace
Libraries {
10
namespace
Sensors {
11
namespace
Temperature {
12
class
LIBRARIES_API
TemperatureSensor
:
virtual
public
Pollable
{
13
public
:
14
static
double
toFahrenheit(
double
celsius);
15
16
static
double
toKelvin(
double
celsius);
17
18
double
celsius();
19
20
double
fahrenheit();
21
22
double
kelvin();
23
24
protected
:
25
double
_celsius;
26
27
};
28
}
29
}
30
}
31
}
Treehopper::Libraries
Definition:
Dm632.h:9
Pollable.h
LIBRARIES_API
#define LIBRARIES_API
Definition:
Treehopper.Libraries.h:17
Treehopper
Definition:
AdcPin.h:3
Treehopper::Libraries::Sensors::Temperature::TemperatureSensor
Definition:
TemperatureSensor.h:12
Treehopper::Libraries::Pollable
Definition:
Pollable.h:8
Treehopper.Libraries.h
C++
API
inc
Libraries
Sensors
Temperature
TemperatureSensor.h