![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
hhh
Timer.cpp
- Committer:
- 2bv14ei073
- Date:
- 2016-12-01
- Revision:
- 1:4346149b11d2
- Parent:
- 0:5d419a46e629
File content as of revision 1:4346149b11d2:
#include "Timer.h" #include "mbed.h" Blinking::Blinking(PinName pin) : _pin(pin) { _pin = 0; } void Blinking::blink(int n) { for(int i=0; i<n*2; i++) { _pin = !_pin; wait(0.2); } }