Browse Source

Add SchmittTrigger::isHigh()

tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
a80eb15b37
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      include/dsp/digital.hpp

+ 3
- 0
include/dsp/digital.hpp View File

@@ -41,6 +41,9 @@ struct SchmittTrigger {
}
return false;
}
bool isHigh() {
return state == HIGH;
}
void reset() {
state = UNKNOWN;
}


Loading…
Cancel
Save