LIB Test

SPS.cpp

Committer:
rs27
Date:
2016-04-17
Revision:
1:be96d2db8c03
Parent:
0:bacf7305d459

File content as of revision 1:be96d2db8c03:

#include "SPS.h"
#include "mbed.h"
 
SPS::SPS(PinName pin) : _pin(pin) 
{
    _pin = 0;
}
 
void SPS::flash(int n) 
{
    for(int i=0; i<n*2; i++) {
        _pin = !_pin;
        wait(0.2);
    }
}