WiringPi and pull-up or pull-down resistor

Hello!

I observe a strange behavior of pullUpDnControl. This code sets the high voltage at the input pin pinMode(0, INPUT); pullUpDnControl(0, PUD_DOWN); Copy the Code On the other hand, this code sets the low voltage at the input pin pinMode(0, INPUT); pullUpDnControl(0, PUD_UP); Copy the Code I think it should be Vice versa. Can anybody verify ?

I didn’t find the right solution from the internet.

References: http://forum.lemaker.org/forum.php?mod=viewthread&tid=9297&extra=page%3D178456

motion graphics videos