Example code to control a 7-segment display with 4 digits and 12 pins using an Arduino.