# Automation 2040 W C++ Examples - [Function Examples](#function-examples) - [Read ADCs](#read-adcs) - [Read Inputs](#read-inputs) - [Toggle Relays](#toggle-relays) - [Toggle Outputs](#toggle-outputs) - [Switches and LEDs](#switches-and-leds) ## Function Examples ### Read ADCs [automation2040w_read_adcs.cpp](automation2040w_read_adcs.cpp) Shows how to read the 3 ADC terminals of Automation 2040 W. ### Read Inputs [automation2040w_read_inputs.cpp](automation2040w_read_inputs.cpp) Shows how to read the 3 Input terminals of Automation 2040 W. ### Toggle Relays [automation2040w_toggle_relays.cpp](automation2040w_toggle_relays.cpp) Demonstrates how to toggle the actuation state of each of Automation 2040 W's relays. ### Toggle Outputs [automation2040w_toggle_outputs.cpp](automation2040w_toggle_outputs.cpp) Demonstrates how to toggle each of Automation 2040 W's output terminals. ### Switches and LEDs [automation2040w_switches_and_leds.cpp](automation2040w_switches_and_leds.cpp) An example of the user switches and LEDs on Automation 2040 W.