Digital IO Changes for Stimuli

Modified the way they flip sweep and frame bits.