writeDigitalPin
Write logical value to GPIO output pin
Description
writeDigitalPin(
sets the logical value of a GPIO pin to mypi,pinNumber,value)0 or
1.
This method configures an unconfigured pin as a GPIO output.
If the pin is a GPIO input, or if another interface (I2C, Serial, SPI) uses the pin, this method returns an error message.
Note
To generate C/C++ code for this function, you must have an Embedded Coder® license.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2015b
