1.6.13.12 1.7.14.12 1.10.11.12 1.11.11.12 1.12.11.12 1.13.10.12 1.14.10.12 1.15.10.12 1.16.8.12 1.17.8.12 1.18.9.12 1.19.8.12 1.20.8.12 1.21.9.12 1.22.13.12 1.23.12.12 1.24.9.12 GPIO_PinWrite Function
C
void GPIO_PinWrite(GPIO_PIN pin, bool value)
Summary
Writes the logic level of the selected pin.
Description
This function writes/drives the "value" on the selected I/O line/pin.
Precondition
The desired pin must be configured as an output pin.
Parameters
Param | Description |
---|---|
pin | One of the IO pins from the enum GPIO_PIN |
value | value to be written on the selected pin: |
- true | set pin to high (1). |
- false | clear pin to low (0). |
Returns
None.
Example
GPIO_PinWrite(GPIO_PIN_RB3, true);
Remarks
None.