Fixed constructor for latest mbed library.

Dependents:   Pinscape_Controller_v1 Pinscape_Controller Pinscape_Controller_V2_arnoz Pinscape_Controller_V2

Fork of FastIO by Erik -

Embed: (wiki syntax)

« Back to documentation index

FastIn< pin, pinmode > Class Template Reference

FastIn< pin, pinmode > Class Template Reference

Faster alternative compared to regular DigitalIn. More...

#include <FastIO.h>

Inherits FastInOut< pin >.

Public Member Functions

 FastIn ()
 Construct new FastIn object.

Detailed Description

template<PinName pin, PinMode pinmode = PullDefault>
class FastIn< pin, pinmode >

Faster alternative compared to regular DigitalIn.

Except the constructor it is compatible with regular DigitalIn. Aditionally all functions from DigitalInOut are also available (only initialization is different) Code is based on Igor Skochinsky's code (http://mbed.org/users/igorsk/code/FastIO/)

Definition at line 132 of file FastIO.h.


Constructor & Destructor Documentation

FastIn (  )

Construct new FastIn object.

 FastIn<LED1> led1;
Parameters:
pinpin the FastIn object should be used for
pinmode(optional) initial mode of the pin after construction: default is PullDefault

Definition at line 145 of file FastIO.h.