vaishnavi kulkarni / Mbed 2 deprecated ES_Vaish

Dependencies:   mbed

ES_Vaish.cpp

Committer:
vaishnavi_kulkarni
Date:
2016-11-30
Revision:
1:da9de379acf7

File content as of revision 1:da9de379acf7:

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