LTPS C++ API
Main Page
Classes
Files
Examples
File List
potentiometer.h
1
6
#ifndef __LPOTENTIOMETER_H__
7
#define __LPOTENTIOMETER_H__
8
14
enum
Imps
15
{
16
_5kOhm = 5000,
//< #40_1
17
_10kOhm = 10000,
//< 40_2
18
_50kOhm = 50000,
//< 40_3
19
_100kOhm = 100000
//< 40_4
20
};
21
27
class
Potentiometer
28
{
29
public
:
30
31
Potentiometer
();
32
33
virtual
~
Potentiometer
();
34
36
41
void
setImpedance
(
const
char
*socket,
unsigned
int
impedance, Imps max);
42
};
43
44
#endif
Potentiometer::setImpedance
void setImpedance(const char *socket, unsigned int impedance, Imps max)
Set current impedance and saves the value into the ICs EEPROM.
Potentiometer
Class for digital potentiometer (Tibbit #40)
Definition:
potentiometer.h:27
Wed Mar 22 2017 09:50:01