GPIO exercises




Emulate a 7 segment display

Write a function that uses port P2 as inputs to accept the LED driving signals A..G of a 7 segment display. The function should return the displayed value.