Sorry for the delay, time is scarce!
Yes 'polarity' determines whether something like `led.set(1)` or led.set(True)` corresponds to 3.3V (polarity=1/True) or 0V (polarity=0/False). If you set the 'pull' parameter that sets the internal pull-up/down resistor you can cause a GPIO to be in a predictable state, or else yes you can just explicitly set the pin to be in a particular state within the task description.
I'm wondering, for the purposes of further development of the stimulus_manager classes which should handle non-task-related hardware operation (eg. being able to use lasers & sounds as stimuli without needing to alter the base task which just requires stimuli"), if it would be useful to be able to declare logic states of individual pins specifically for the duration of a single *task* rather than for the entire runtime of a pilot as with the PULLUPS/PULLDOWNS prefs fields?
sorry my grammar is probably terrible, its late and i've been writing for many hours.