From 3bff859e6fa90503eca4d24e9cdad7b6acf9a44f Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Wed, 4 Nov 2015 09:55:06 +0100 Subject: [PATCH] Default value of pull in Pin constructor is None --- Hardware-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hardware-API.md b/Hardware-API.md index 0252f8b..6630ab8 100644 --- a/Hardware-API.md +++ b/Hardware-API.md @@ -127,7 +127,7 @@ def pin_handler(pin): Creates and initilizes a pin. -`pin = Pin(id, mode, pull=Pin.PULL_NONE, *, value, drive, slew, alt, ...)` +`pin = Pin(id, mode, pull=None, *, value, drive, slew, alt, ...)` - `id`: mandatory and positional. `id` can be an arbitrary object (among possible value types are: int (an internal Pin ID), str (a Pin name), tuple (pair of [port, pin])) - `mode`: is mandatory and positional (can be kw). Specifies pin mode: - `Pin.IN` - Pin configured for input; there's additional requirement that, if viewed as output, pin was in high-impedance state. This requirement is almost universally satisfied by any MCU.