Set pin number as integer