active_high (bool) – If True (the default), the on() method will set the GPIO to HIGH. If False, the on() method will set the GPIO to LOW (the off() method always does the opposite).
The reason for doing this if from what I'm able to gather that some of the GPIO pins are HIGHby default. (Pin 0-8 according to this random image from a google search)
Hi!
In the standard gpio python library you have an option to
active_high=False
, do you have that in this library for go?Python code:
Because now the go code looks bonkers, when I want to send a HIGH signal for two seconds on GPIO 2 I have to write the opposite:
Excerpt from the docs: