Aaron, great video. I am currently working with the NI myRIO embedded systems kit with a key pad in order to create a make shift calculator. I have to input through the buttons on a physical key pad and output them on to a LCD. I noticed how you were able to link up the display to something as random as the text of the OK button displaying "x" or "9". Can you link it up to the buttons on the PmodKYPD? The buttons are all set up as a matrix so I am accessing them through a 2D array, what would be the best way to to do that.
@Lun481210 жыл бұрын
Isn't this a little superfluous? I mean; all those Boolean controls can already detect the mouse clicks, so there's no reason to configure an event structure for that. What I would do is put them all in a cluster. Then put that cluster inside an event structure so that it can detect when an element inside was pressed. Then pass the cluster outside and convert it to an array of boolean elements. Convert that array to a number and then you can play around with that number. Each control inside the cluster will have a number that identifies it. There probably is another way to know which control was pressed inside the cluster without having to convert it to an array though.