Switch from int to unsigned char for pin mapping.