readDigitalPin
R2026bRead data from a specified pin on Arduino hardware
Description
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Examples
Input Arguments
Output Arguments
More About
Alternative Functionality
App
Use the Pin Explorer pane and Pin Configuration panel in the Arduino Explorer to read data from a specified pin on Arduino or any other supported hardware in MATLAB and MATLAB Online™. The Pin Configuration panel displays the options you can use to configure the selected pin. In the Pin Configuration panel, set the Mode as Digital Input (Read) and if required specify a Label to uniquely identify the pin. You can also use the plot panel of the app to interactively view data read from the board.
Version History
Introduced in R2014b