-

Dependents:   STM32F407_Semafor

TrafficFlash.cpp

Committer:
divicic
Date:
2020-11-26
Revision:
0:a4fa725628ef

File content as of revision 0:a4fa725628ef:

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