I2C_device_Arduino
1.0.5
An I²C utility class for Arduino
Loading...
Searching...
No Matches
src
test_LM75B.h
Go to the documentation of this file.
1
9
#ifndef ARDUINO_TEMP_SENSOR_H
10
#define ARDUINO_TEMP_SENSOR_H
11
12
#include <Arduino.h>
13
#include <stdint.h>
14
15
#include "
I2C_device.h
"
16
27
class
test_LM75B
:
public
I2C_device
28
{
29
public
:
30
enum
mode
{
31
COMPARATOR
,
32
INTERRUPT
,
33
};
34
36
enum
reg_num
{
37
Temp
,
38
Conf
,
39
Thyst
,
40
Tos
,
41
};
42
47
test_LM75B
(
const
uint8_t i2c_address = (0x90 >> 1) );
48
54
test_LM75B
( TwoWire& wire,
const
uint8_t i2c_address = (0x90 >> 1) );
55
58
~test_LM75B
();
59
64
float
read
(
void
);
65
74
void
thresholds
(
const
float
v0,
const
float
v1 );
75
80
void
os_mode
(
const
mode
flag );
81
};
82
83
#endif
// ARDUINO_TEMP_SENSOR_H
I2C_device.h
I2C_device
Definition
I2C_device.h:19
test_LM75B
Definition
test_LM75B.h:28
test_LM75B::os_mode
void os_mode(const mode flag)
Definition
test_LM75B.cpp:31
test_LM75B::thresholds
void thresholds(const float v0, const float v1)
Definition
test_LM75B.cpp:22
test_LM75B::~test_LM75B
~test_LM75B()
Definition
test_LM75B.cpp:13
test_LM75B::reg_num
reg_num
Definition
test_LM75B.h:36
test_LM75B::Tos
@ Tos
Definition
test_LM75B.h:40
test_LM75B::Thyst
@ Thyst
Definition
test_LM75B.h:39
test_LM75B::Temp
@ Temp
Definition
test_LM75B.h:37
test_LM75B::Conf
@ Conf
Definition
test_LM75B.h:38
test_LM75B::test_LM75B
test_LM75B(const uint8_t i2c_address=(0x90 > > 1))
Definition
test_LM75B.cpp:5
test_LM75B::read
float read(void)
Definition
test_LM75B.cpp:17
test_LM75B::mode
mode
Definition
test_LM75B.h:30
test_LM75B::COMPARATOR
@ COMPARATOR
Definition
test_LM75B.h:31
test_LM75B::INTERRUPT
@ INTERRUPT
Definition
test_LM75B.h:32
Generated by
1.10.0