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.
ledout.cpp
00001 #include "ledout.h" 00002 00003 LedOut::LedOut(PCA9555 *ioExt, unsigned int pin) 00004 : extIO(ioExt), ledPin(pin) { 00005 00006 } 00007 00008 void LedOut::set() { 00009 extIO->setPin(ledPin); 00010 } 00011 00012 void LedOut::clear() { 00013 extIO->clearPin(ledPin); 00014 } 00015 00016 void LedOut::toggle() { 00017 extIO->togglePin(ledPin); 00018 } 00019 00020 bool LedOut::get() { 00021 return extIO->getPin(ledPin); 00022 }
Generated on Sun Jul 17 2022 01:53:50 by
1.7.2