DigitalWrite

Name

 * digitalWrite

Description
digitalWrite drives level on a specified pin. When driven LOW, the pin will be set to ground. When driven HIGH, the pin will be set to power supply level, usually +3.3 V or +5V depending on the particular board.
 * Since: Beta 3

Syntax
void digitalWrite(int pin, int level); void digitalWrite(u8 pin, u8 level);
 * P8:
 * P32:
 * Parameters:
 * pin = pin to change
 * level = required level HIGH (=1) for high level (usually + 3.3V or +5V) or LOW (=0) for low level (ground)
 * Return: [None]

pin must be configured for output using pinMode

Example
PinMode Example