- Locate the buttons (switches SW2 and SW3) on the FRDM K64F Schematic.
- Using the schematic and observing the behaviour of the program what can be deduced about:
- What value is read when the button is
- pressed?
- not pressed?
- Why is this the case?
- What value is read when the button is
- Add a wrapper function that evaluates as
bool ispressed( /*button*/ )
that returns the correct state of the button.