|
I was able to read out PL3
I explained this in a new thread, because the same technique can be applied to other gpio ports as well.
In order to read the switch, you have to set the control register of port PL3 to input first.
You can read out the data-register for port PL3 afterward.
have a look under the thread -- I included two scripts -- one to set the register -- another to read the register
Pressing the switch key will change the value of the read-register script.
--thread= data / control register (example onboard switch) |
|