The code needs to stay the same. As long both of the two resistors are the same, the voltage will be divided in half.