Areeba S.

asked • 11/26/22

C language or assembly

1.4 Write a function/subroutine that reads the switch on PB3. (Either C or Assembly is acceptable) (If writing in assembly, return the result in R6)


char S2Read() // Read S2 (bottom most). Return 0xFF if pressed, and 0x00 if not pressed.

1 Expert Answer

By:

Amer C. answered • 29d

Tutor
New to Wyzant

Learn Android Development from an Experienced Software Engineer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.