LedController

Dependents:   LedControllerTests NerfUSTarget

Fork of Servomotor by NerfUS

source/LedController.cpp

Committer:
dupm2216
Date:
2017-03-08
Revision:
5:7e27c8b08acd
Parent:
4:6f0756847428

File content as of revision 5:7e27c8b08acd:

#include "LedController.hpp"

LedController::LedController(DigitalOutInterface &digital_out) : 
    digital_out(digital_out)
{
    
}

void LedController::turn_on()
{
    digital_out.write(1);
}

void LedController::turn_off()
{
    digital_out.write(0);
}