Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PCAL9555_Hello OM13082-JoyStick OM13082_LED OM13082-test ... more
GpioDigitalOut.cpp
00001 #include "mbed.h" 00002 #include "GpioDigitalOut.h" 00003 00004 GpioDigitalOut::GpioDigitalOut( CompGpioExp &gpiop, GpioPinName pin_name ) 00005 : GpioDigitalInOut( gpiop, pin_name ) 00006 { 00007 write( 0 ); 00008 this->output(); 00009 } 00010 00011 GpioDigitalOut::~GpioDigitalOut() 00012 { 00013 } 00014 00015 GpioDigitalOut& GpioDigitalOut::operator=( int rhs ) 00016 { 00017 write( rhs ); 00018 return ( *this ); 00019 } 00020 00021 GpioDigitalOut& GpioDigitalOut::operator=( GpioDigitalOut& rhs ) 00022 { 00023 write( rhs.read() ); 00024 return *this; 00025 }
Generated on Tue Jul 12 2022 18:40:41 by
1.7.2
PCAL9555, PCAL9554: 16 & 8-bit GPIO expander with "DigitalInOut" and "BusInOut" compatible APIs