a) Example of electronic wiring for switches and LEDs.
b) Example of memory address decode and simple LED and switch interfacing for programmed I/O (PIO) to a microprocessor.