blin
blinkalo.cpp
- Committer:
- ijajcevic
- Date:
- 2021-03-02
- Revision:
- 0:cf737240fac5
File content as of revision 0:cf737240fac5:
#include "blinkalo.h" #include "mbed.h" blinkalo::blinkalo(PinName pin) : _pin(pin) { _pin = 0; } void blinkalo::blink(int n) { for(int i=0; i<n*2; i++) { _pin = !_pin; wait(0.5); } }