chiark / gitweb /
Added some comments about removing the call to pullUpDnControl()
authorGordon Henderson <gordon@drogon.net>
Sat, 18 Aug 2012 11:04:46 +0000 (12:04 +0100)
committerGordon Henderson <gordon@drogon.net>
Sat, 18 Aug 2012 11:04:46 +0000 (12:04 +0100)
in pinMode ()

wiringPi/wiringPi.c

index fb5e7c68f6e37205c14fb323101ce440d0b7f10c..0a4da30e69bb842e47ed0d6e3dd4da4ba05d59f7 100644 (file)
@@ -401,9 +401,15 @@ void pinModeGpio (int pin, int mode)
   }
 
 // When we change mode of any pin, we remove the pull up/downs
-
-//  delayMicroseconds (300) ;
+//     Or we used to... Hm. Commented out now because for some wieird reason,
+//     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) ;
+
 }
 
 void pinModeWPi (int pin, int mode)