back to DigitalOutputPin
Description
This function will switch the output state for the associated DigitalOutputPin object. For example, if the current value is false, the toggle function will set the output to true.
Parameters
None.
Returns
None.
Examples
#include <FEHIO.h> #include <FEHUtility.h> int main(void) { //declares a digital output pin on P0_3 DigitalOutputPin red_LED(FEHIO::P0_3); //Flash the red LED ON/OFF every second while(true) { red_LED.Toggle(); Sleep(1.0); } }