You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
-
- #include "trigger.h"
-
- namespace DHE {
-
- class Gate : public Trigger {
- protected:
- virtual void on_fall() = 0;
- void on_state_change(bool state) override {
- if (state) {
- on_rise();
- } else {
- on_fall();
- }
- }
- };
- } // namespace DHE
|