Added segmentation support to "configurePin" and "writeDigitalPin" states