The PCAL9555, PCAL9554 series is a low-voltage 16-bit/8-bit General Purpose Input/Output (GPIO) expander with interrupt. This conponent library is compatible to basic operation os GPIO expanders: PCAL9555, PCA9555, PCA9535, PCA9539, PCAL9554, PCA9554 and PCA9538. On addition to this, this library is including mbed-SDK-style APIs. APIs that similar to DigitaiInOut, DigitalOut, DigitalIn, BusInOUt, BusOut and BusIn are available.

Dependents:   PCAL9555_Hello OM13082-JoyStick OM13082_LED OM13082-test ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GpioDigitalIn.cpp Source File

GpioDigitalIn.cpp

00001 #include    "mbed.h"
00002 #include    "GpioDigitalIn.h"
00003 
00004 GpioDigitalIn::GpioDigitalIn( CompGpioExp &gpiop, GpioPinName pin_name )
00005     : GpioDigitalInOut( gpiop, pin_name )
00006 {
00007     this->input();
00008 }
00009 
00010 GpioDigitalIn::~GpioDigitalIn()
00011 {
00012 }