summaryrefslogtreecommitdiffstats
path: root/linz/oekofen_thermo/src/MCP42010.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-10-21 15:55:29 +0200
committermanuel <manuel@mausz.at>2020-10-21 15:55:43 +0200
commit0b8366c59fa0b34a70b6b453bfb0f8eaf34a2f16 (patch)
treeb48edc08ae3c8d430c04539e3bb90eff8e5e493d /linz/oekofen_thermo/src/MCP42010.h
parentf46e8a7126b879b3c7d24ffa6b9fa2cf66089f8c (diff)
downloadarduino-0b8366c59fa0b34a70b6b453bfb0f8eaf34a2f16.tar.gz
arduino-0b8366c59fa0b34a70b6b453bfb0f8eaf34a2f16.tar.bz2
arduino-0b8366c59fa0b34a70b6b453bfb0f8eaf34a2f16.zip
Add Linz
Diffstat (limited to 'linz/oekofen_thermo/src/MCP42010.h')
-rw-r--r--linz/oekofen_thermo/src/MCP42010.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/linz/oekofen_thermo/src/MCP42010.h b/linz/oekofen_thermo/src/MCP42010.h
new file mode 100644
index 0000000..9d06e7d
--- /dev/null
+++ b/linz/oekofen_thermo/src/MCP42010.h
@@ -0,0 +1,25 @@
1#ifndef MCP42010_h
2#define MCP42010_h
3
4#include <Arduino.h>
5#include <SPI.h>
6
7class MCP42010
8{
9 public:
10 enum Poti
11 {
12 P0 = 0b01,
13 P1 = 0b10,
14 };
15
16 MCP42010(uint8_t ss_pin);
17 void setup();
18 void setPot(Poti pot, uint8_t value);
19
20 private:
21 uint8_t _ss_pin;
22 SPISettings _spiset;
23};
24
25#endif \ No newline at end of file