Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonPucheu authored Nov 26, 2022
1 parent 495989e commit 0d6b46e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Potentiometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
/**
* Setup the potentiometer
*/
Potentiometer::Potentiometer(uint8_t iPin, int iRest = 512, int iMargin = 50, bool iReversed = false)
Potentiometer::Potentiometer(uint8_t iPin, bool iReversed = false, int iRest = 512, int iMargin = 50)
{
pin = iPin;
reversed = iReversed;
rest = iRest;
margin = iMargin;
reversed = iReversed;
pinMode(pin, INPUT);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Potentiometer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class Potentiometer
{
public:
Potentiometer(uint8_t iPin, int iRest = 512, int iMargin = 50, bool iReversed = false);
Potentiometer(uint8_t iPin, bool iReversed = false, int iRest = 512, int iMargin = 50);
int getRawValue();
int getValue();
int lastValue;
Expand Down

0 comments on commit 0d6b46e

Please sign in to comment.