digitalWrite()

Hello all,

i was reading this article digitalWrite() - Arduino Reference and it says,

If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.

what i want to know is how do i control wheather it sets the bit to 5v or 3.3v and which voltage does it output by default.

Thanks

what i want to know is how do i control wheather it sets the bit to 5v or 3.3v

By the type of board you buy. A 5V board gets 5V on the pin. A 3.3V board gets 3.3V on the pin.