summaryrefslogtreecommitdiffstats
path: root/linz/oekofen_thermo/src/MCP42010.h
diff options
context:
space:
mode:
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