-
Notifications
You must be signed in to change notification settings - Fork 134
Raspberry.IO.GeneralPurpose.PinConfiguration
raspberry-sharp edited this page Oct 14, 2012
·
7 revisions
Represents the configuration of a pin.
The configuration of a pin may be defined either by using OutputPinConfiguration, InputPinConfiguration or SwitchInputPinConfiguration class initializers and properties, or in a more declarative way, using provided extension methods on ProcessorPin and ConnectorPin. The second option should be preferred for code readability reasons.
static OutputPinConfiguration PinConfigurationExtensionMethod.Output(ProcessorPin pin);
static InputPinConfiguration PinConfigurationExtensionMethod.Input(ProcessorPin pin);
Creates either an OutputPinConfiguration or a InputPinConfiguration from a pin number.
-
pin: the pin, as numbered on processor.
static OutputPinConfiguration PinConfigurationExtensionMethod.Output(ConnectorPin pin);
static InputPinConfiguration PinConfigurationExtensionMethod.Input(ConnectorPin pin);
Creates either an OutputPinConfiguration or a InputPinConfiguration from a pin number.
-
pin: the pin, as numbered on Raspberry Pi connector.