void pinMode( uint32_t dwPin, uint32_t dwMode );
void pinMode( uint32_t dwPin, uint32_t dwMode );
Sets up modes for assigned pins.
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.
LinkIt One supports 3 pin modes:
|
Parameters |
Description |
|
uint32_t dwPin |
[IN] Pin number that needs to be set with a mode |
|
uint32_t dwMode |
[IN] Mode of pin (INPUT, INPUT_PULLUP or OUTPUT) |
#define LED 13 void setup() { pinMode(LED, OUTPUT); } void loop() { digitalWrite(LED, HIGH); delay(3000); digitalWrite(LED, LOW); delay(3000); }
wiring_digital.h