In this system configuration (
GPIO_TEST), the Raspberry Pi GPIO configuration and loopback connection are identical to those of the previous example, with the addition of HMI elements such that the operation is as follows:- Clicking on the
OUTPUTcheck box causes theOUTPUT.OUTvalue to flip; this value is passed to thePIN3.Xinput. - An event is passed from
OUTPUT.INDtoPIN3.REQ; this causes the flipped value atPIN3.Xto be written to pin 3 of the Raspberry Pi 2 GPIO header. - The output state is passed electrically from pin 3 to pin 5 of the GPIO header.
- An event is passed from
PIN3.CNFtoPIN5.REQ, which causes the value of the input at pin 5 of the header to appear atPIN5.X, which is passed toINPUT.IN. - An event is passed from
PIN5.CNFtoINPUT.REQ, which causes the INPUT display to be updated with the new value ofPIN5.IN.
No comments:
Post a Comment