The device electronics can be based on a purely hardware design using discrete components such as logic gates, timers and other electronic components configured into a circuit which will perform this functionality, or it can be based on a microprocessor or microcontroller design whereby, in addition to circuit configuration, the functionality is defined by a software program.