NerfUS / HardwareInterface

Dependents:   NerfUS_cmake_add_library_from_mbed NerfUS NerfUSGameCoordinator

source/MbedBlinker.cpp

Committer:
Maxime Dupuis
Date:
2017-02-16
Revision:
1:001a600870d9
Parent:
0:e67c78f2b4f4

File content as of revision 1:001a600870d9:

#include "HardwareInterfaceLPC1768.hpp"

HardwareInterfaceLPC1768::HardwareInterfaceLPC1768(DigitalOut led) :
    led(led)
{
}

void HardwareInterfaceLPC1768::blink()
{
    led = 1;
    wait(0.5);
    led = 0;
    wait(0.5);
}