Driver for temperature sensor device.
More...
#include <src/MeTemperature.h>
Driver for temperature sensor device.
Class: MeTemperature
- Description
- Declaration of Class MeTemperature.
- Copyright (C), 2012-2016, MakeBlock
◆ MeTemperature() [1/3]
| MeTemperature::MeTemperature |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the temperature sensor to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MeTemperature() [2/3]
| MeTemperature::MeTemperature |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the temperature sensor to arduino port, the slot2 pin will be used here since specify slot is not be set.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ MeTemperature() [3/3]
| MeTemperature::MeTemperature |
( |
uint8_t |
port, |
|
|
uint8_t |
slot |
|
) |
| |
Alternate Constructor which can call your own function to map the temperature sensor to arduino port.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
| [in] | slot | - SLOT1 or SLOT2 |
◆ reset() [1/2]
| void MeTemperature::reset |
( |
uint8_t |
port | ) |
|
- Function
- reset
- Description
- Reset the available PIN for temperature sensor by its RJ25 port, the slot2 pin will be used here since specify slot is not be set
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
- Output
- None
- Returns
- None
- Others
- None
◆ reset() [2/2]
| void MeTemperature::reset |
( |
uint8_t |
port, |
|
|
uint8_t |
slot |
|
) |
| |
- Function
- reset
- Description
- Reset the available PIN for temperature sensor by its RJ25 port.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
| [in] | slot | - SLOT1 or SLOT2 |
- Output
- None
- Returns
- None
- Others
- None
◆ setpin()
| void MeTemperature::setpin |
( |
uint8_t |
port | ) |
|
- Function
- setpin
- Description
- Reset available PIN for temperature sensor by its arduino port.
- Parameters
-
| [in] | port | - arduino port(should digital pin) |
- Output
- None
- Returns
- None
- Others
- None
◆ temperature()
| float MeTemperature::temperature |
( |
void |
| ) |
|
- Function
- temperature
- Description
- Get the celsius of temperature
- Output
- None
- Returns
- The temperature value get from the sensor.
- Others
- None
The documentation for this class was generated from the following files: