DigitalWrite
From Pinguino-Wiki
Contents |
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
- P8
void digitalWrite(int pin, int level);
- P32
void digitalWrite(u8 pin, u8 level);
- 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

