Skip to content

Initial button

Latest
Compare
Choose a tag to compare
@dr-alun-moon dr-alun-moon released this 12 Nov 18:56
· 1 commit to master since this release
  1. Locate the buttons (switches SW2 and SW3) on the FRDM K64F Schematic.
  2. 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?
  3. Add a wrapper function that evaluates as
    bool ispressed( /*button*/ )
    that returns the correct state of the button.