LIB Test

SPS.cpp

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

File content as of revision 0:bacf7305d459:

#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);
    }
}