LedController

Dependents:   LedControllerTests NerfUSTarget

Fork of Servomotor by NerfUS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RealDigitalOut.hpp Source File

RealDigitalOut.hpp

00001 #ifndef REAL_DIGITAL_OUT_HPP
00002 #define REAL_DIGITAL_OUT_HPP
00003 
00004 #include "DigitalOutInterface.hpp"
00005 #include "mbed.h"
00006 
00007 class RealDigitalOut : public DigitalOutInterface
00008 {
00009     public:
00010         RealDigitalOut(PinName pin) :
00011             digital_out(pin)
00012         {
00013         }
00014         
00015         virtual void write(int value)
00016         {
00017             digital_out.write(value);
00018         }
00019         
00020     private:
00021         DigitalOut digital_out;
00022 };
00023 
00024 #endif