mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2025-12-14 00:28:52 +01:00
Added some comments about removing the call to pullUpDnControl()
in pinMode ()
This commit is contained in:
parent
83214ad8c7
commit
c213e051c6
@ -401,9 +401,15 @@ void pinModeGpio (int pin, int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// When we change mode of any pin, we remove the pull up/downs
|
// When we change mode of any pin, we remove the pull up/downs
|
||||||
|
// Or we used to... Hm. Commented out now because for some wieird reason,
|
||||||
// delayMicroseconds (300) ;
|
// it seems to block subsequent attempts to set the pull up/downs and I've
|
||||||
|
// not quite gotten to the bottom of why this happens
|
||||||
|
// The down-side is that the pull up/downs are rememberd in the SoC between
|
||||||
|
// power cycles, so it's going to be a good idea to explicitly set them in
|
||||||
|
// any new code.
|
||||||
|
//
|
||||||
// pullUpDnControl (pin, PUD_OFF) ;
|
// pullUpDnControl (pin, PUD_OFF) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void pinModeWPi (int pin, int mode)
|
void pinModeWPi (int pin, int mode)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user