Optimized the Arduino code to adjust FIRST_PIN and PIN_MAX pinouts very
easily without modifying the whole code.