Peritoneal Dialysis Capstone
Controlling catheter for peritoneal dialysis
Loading...
Searching...
No Matches
PotentiometerInput.h
Go to the documentation of this file.
1
4
5
#ifndef POTENTIOMETER_INPUT_H
6
#define POTENTIOMETER_INPUT_H
7
8
#include <
IHAL.h
>
9
#include <
IInput.h
>
10
14
class
PotentiometerInput
:
public
IInput
{
15
public
:
22
PotentiometerInput
(
IHAL
&
hal
,
int
pin);
23
24
float
getValue
()
override
;
25
26
private
:
27
IHAL
&
m_hal
;
28
int
m_pin
;
29
};
30
31
#endif
// POTENTIOMETER_INPUT_H
IHAL.h
IInput.h
IHAL
A hardware abstraction layer interface.
Definition
IHAL.h:29
IInput
An analog input interface.
Definition
IInput.h:13
PotentiometerInput::getValue
float getValue() override
Samples this input.
Definition
PotentiometerInput.cpp:8
PotentiometerInput::m_hal
IHAL & m_hal
Definition
PotentiometerInput.h:27
PotentiometerInput::PotentiometerInput
PotentiometerInput(IHAL &hal, int pin)
Configures a pin as a potentiometer input.
Definition
PotentiometerInput.cpp:3
PotentiometerInput::m_pin
int m_pin
Definition
PotentiometerInput.h:28
hal
ArduinoHAL hal(BAUD_RATE)
lib
Input
PotentiometerInput.h
Generated by
1.16.1