Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.


, (comma)

// Comma used to separate a list of variable declarations
int a=20, b=30, c=80;

// Comma used to separate a list of values assigned to an array
int d[] = { 
  20, 60, 80

// Comma used to separate a list of parameters passed to a function
digitalWrite(a, LOW); // set pin 20 to LOW
analogWrite(4, 255);  // set PWM duty for pin 4 to 255
Description Separates parameters in function calls and elements during assignment.
value1, ..., valueN
value1, ..., valueN any int, float, byte, boolean, char, etc.
Usage Application
Updated on July 07, 2011 11:08:01pm PDT

Creative Commons License