Create a Digital Read Block
Create a Digital Read block that reads the value of GPIO pins when the Simulink® model is deployed to the Raspberry Pi® board.
Ensure to install the latest version of WiringPi
library on the operating system of your Raspberry Pi board. To install the library, open the Raspberry Pi terminal and run this command:
sudo apt install
To create a Digital Read block, complete these tasks: