5. AND/OR
Turn on D12 LED with the AND operation between pushbuttons D2 and D3.
Turn on D13 LED with the OR operation between pushbuttons D2 and D3.
5
6. Even or Odd (Bitwise AND)
Turn on D12 LED when we introduce an even number. Turn on the D13 LED when it is odd.
6
7. Comparison
Read the analog input A0 and divide it into four
ranges [0-1023],[1024-2047],[2048-3071] and [3072-
4095].
Turn LEDs D12 and D13 on based on the binary
codification of each range.
7