Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ResponsiveAnalogRead.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ class ResponsiveAnalogRead

void begin(int pin, bool sleepEnable, float snapMultiplier = 0.01); // use with default constructor to initialize

inline int getValue() { return responsiveValue; } // get the responsive value from last update
inline int getRawValue() { return rawValue; } // get the raw analogRead() value from last update
inline double getValue() { return responsiveValue; } // get the responsive value from last update
inline double getRawValue() { return rawValue; } // get the raw analogRead() value from last update
inline bool hasChanged() { return responsiveValueHasChanged; } // returns true if the responsive value has changed during the last update
inline bool isSleeping() { return sleeping; } // returns true if the algorithm is currently in sleeping mode
void update(); // updates the value by performing an analogRead() and calculating a responsive value based off it
void update(int rawValueRead); // updates the value accepting a value and calculating a responsive value based off it
void update(double rawValueRead); // updates the value accepting a value and calculating a responsive value based off it

void setSnapMultiplier(float newMultiplier);
inline void enableSleep() { sleepEnable = true; }
Expand Down