LedController

Dependents:   LedControllerTests NerfUSTarget

Fork of Servomotor by NerfUS

Files at this revision

API Documentation at this revision

Comitter:
dupm2216
Date:
Wed Mar 08 16:58:30 2017 +0000
Parent:
4:6f0756847428
Commit message:
Create LedControllerInterface

Changed in this revision

include/LedController.hpp Show annotated file Show diff for this revision Revisions of this file
include/LedControllerInterface.hpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6f0756847428 -r 7e27c8b08acd include/LedController.hpp
--- 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);
diff -r 6f0756847428 -r 7e27c8b08acd include/LedControllerInterface.hpp
--- /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