LedController

Dependents:   LedControllerTests NerfUSTarget

Fork of Servomotor by NerfUS

Committer:
dupm2216
Date:
Wed Mar 08 16:58:30 2017 +0000
Revision:
5:7e27c8b08acd
Parent:
4:6f0756847428
Create LedControllerInterface

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dupm2216 4:6f0756847428 1 #ifndef LED_CONTROLLER_HPP
dupm2216 4:6f0756847428 2 #define LED_CONTROLLER_HPP
dupm2216 4:6f0756847428 3
dupm2216 4:6f0756847428 4 #include "DigitalOutInterface.hpp"
dupm2216 5:7e27c8b08acd 5 #include "LedControllerInterface.hpp"
dupm2216 4:6f0756847428 6
dupm2216 5:7e27c8b08acd 7 class LedController : public LedControllerInterface
dupm2216 4:6f0756847428 8 {
dupm2216 4:6f0756847428 9 public:
dupm2216 4:6f0756847428 10 LedController(DigitalOutInterface &digital_out);
dupm2216 4:6f0756847428 11 virtual void turn_on();
dupm2216 4:6f0756847428 12 virtual void turn_off();
dupm2216 4:6f0756847428 13
dupm2216 4:6f0756847428 14 private:
dupm2216 4:6f0756847428 15 DigitalOutInterface &digital_out;
dupm2216 4:6f0756847428 16 };
dupm2216 4:6f0756847428 17
dupm2216 4:6f0756847428 18 #endif