LedController
Dependents: LedControllerTests NerfUSTarget
Fork of Servomotor by
Revision 5:7e27c8b08acd, committed 2017-03-08
- Comitter:
- dupm2216
- Date:
- Wed Mar 08 16:58:30 2017 +0000
- Parent:
- 4:6f0756847428
- Commit message:
- Create LedControllerInterface
Changed in this revision
--- a/include/LedController.hpp Sun Mar 05 18:52:04 2017 +0000
+++ b/include/LedController.hpp Wed Mar 08 16:58:30 2017 +0000
@@ -2,8 +2,9 @@
#define LED_CONTROLLER_HPP
#include "DigitalOutInterface.hpp"
+#include "LedControllerInterface.hpp"
-class LedController
+class LedController : public LedControllerInterface
{
public:
LedController(DigitalOutInterface &digital_out);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/LedControllerInterface.hpp Wed Mar 08 16:58:30 2017 +0000
@@ -0,0 +1,11 @@
+#ifndef LED_CONTROLLER_INTERFACE_HPP
+#define LED_CONTROLLER_INTERFACE_HPP
+
+class LedControllerInterface
+{
+ public:
+ virtual void turn_on() = 0;
+ virtual void turn_off() = 0;
+};
+
+#endif
\ No newline at end of file
