Francesco Bianchi / Flasher
Embed: (wiki syntax)

« Back to documentation index

Flasher Class Reference

Flasher Class Reference

Flasher class Used to flash a pin # times. More...

#include <Flasher.h>

Public Member Functions

 Flasher (PinName pin)
 Create Flasher instance.
void flash (int n)
 Flash method.

Detailed Description

Flasher class Used to flash a pin # times.

Example:

 #include "mbed.h"
 #include "Flasher.h"

 Flasher led(LED2);
 
 int main() {
    led.flash(5); //flash LED2 5 times
 } 

Definition at line 21 of file Flasher.h.


Constructor & Destructor Documentation

Flasher ( PinName  pin )

Create Flasher instance.

Parameters:
pinMbed pin reference

Definition at line 4 of file Flasher.cpp.


Member Function Documentation

void flash ( int  n )

Flash method.

Parameters:
nNumber of flashes to perform

Definition at line 8 of file Flasher.cpp.