Allocating the pin position (smartphone/tablet)