aboutsummaryrefslogtreecommitdiff
path: root/examples/Blink3rdPartyLib/Toggle/TogglePin.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Blink3rdPartyLib/Toggle/TogglePin.h')
-rw-r--r--examples/Blink3rdPartyLib/Toggle/TogglePin.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/Blink3rdPartyLib/Toggle/TogglePin.h b/examples/Blink3rdPartyLib/Toggle/TogglePin.h
new file mode 100644
index 0000000..5a7e32c
--- /dev/null
+++ b/examples/Blink3rdPartyLib/Toggle/TogglePin.h
@@ -0,0 +1,19 @@
+// This program is free software and is licensed under the same conditions as
+// describe in https://github.com/sudar/Arduino-Makefile/blob/master/licence.txt
+
+#ifndef TOGGLEPIN_H_
+#define TOGGLEPIN_H_
+
+class TogglePin
+{
+ public:
+ TogglePin(int pinNumber, bool state);
+
+ bool toggle();
+
+ private:
+ const int _pinNumber;
+ bool _state;
+};
+
+#endif