Syntax
void digitalWrite(
    uint32_t dwPin, 
    uint32_t dwVal
);
ContentsIndex
PreviousUpNext
digitalWrite
Example
Syntax
void digitalWrite(
    uint32_t dwPin, 
    uint32_t dwVal
);
Description

Sets assigned pins to high voltage (3.3V) or low voltage (0V). 

There are 16 pins on LinkIt ONE used as digital I/O, they are D0 ~ D13 and D18/D19, particularly D18/D19 are shared with Wire/I2C.

Parameters
Parameters 
Description 
uint32_t dwPin 
[IN] Pin number that needs to be set with a value 
uint32_t dwVal 
[IN] HIGH or LOW 
Example
#define LED  13
void setup()
{
    pinMode(LED, OUTPUT);
}
void loop()
{
    digitalWrite(LED, HIGH);
    delay(3000);
    digitalWrite(LED, LOW);
    delay(3000);
}
File

wiring_digital.h

Group