supla-device
Loading...
Searching...
No Matches
src
supla
sensor
MAX6675_K.h
1
// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2
// SPDX-License-Identifier: GPL-2.0-or-later
3
4
#ifndef SRC_SUPLA_SENSOR_MAX6675_K_H_
5
#define SRC_SUPLA_SENSOR_MAX6675_K_H_
6
7
#include <Arduino.h>
8
#include <supla/sensor/thermometer.h>
9
10
namespace
Supla {
11
namespace
Sensor {
12
class
MAX6675_K
:
public
Thermometer
{
13
public
:
14
MAX6675_K
(uint8_t pin_CLK, uint8_t pin_CS, uint8_t pin_DO);
15
double
getValue();
16
17
private
:
18
void
onInit();
19
byte
spiRead();
20
21
protected
:
22
int8_t pin_CLK;
23
int8_t pin_CS;
24
int8_t pin_DO;
25
};
26
27
};
// namespace Sensor
28
};
// namespace Supla
29
30
#endif
// SRC_SUPLA_SENSOR_MAX6675_K_H_
Supla::Sensor::MAX6675_K
Definition
MAX6675_K.h:12
Supla::Sensor::Thermometer
Definition
thermometer.h:13
Generated by
1.12.0