Main Content

GPIO Write

Set GPIO pin status

Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.

  • GPIO Write block

Libraries:
Embedded Coder Support Package for BeagleBone Black Hardware

Description

Use the GPIO Write block to set the logical value of a digital pin of your BeagleBone® board.

Caution

You can damage your target hardware by:

  • Shorting a GPIO pin to ground.

  • Shorting a GPIO pin with high voltage to another GPIO pin with low voltage.

  • Connecting a GPIO pin to a voltage source greater than the maximum voltage.

  • Exceeding the maximum current by driving multiple GPIO pins high simultaneously.

Ports

Input

expand all

The block accepts a logical value to set the status of a digital pin.

Data Types: Boolean

Parameters

expand all

Select a GPIO pin of the BeagleBone hardware board to set its logical status. Do not use the same GPIO pin in multiple blocks within the Simulink® model. For more information on BeagleBone GPIO pins, click View pin map.

Version History

Introduced in R2014b

See Also