Arduino Programming Language: Void

Name

void

Description

Void is used only when it is declarated a function and it indicates that for this functuion isn't expected a return value.

Syntax

void function {
statements
}

Parameters

  • function: any function that is being defined or implemented
  • statements: any valid statements

Returns

none 

Usage

Application

Examples

void setup() {
pinMode(3, OUTPUT);
}

void loop() {
digitalWrite(3, HIGH);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc