Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

#

Structure
; (semicolon)
[] (array access)
true
setup()
, (comma)
loop()
delete
// (comment)
new
{} (curly braces)
() (parentheses)
. (dot)
= (assign)
void
/* */ (multiline comment)
false
return
#include
null
Data

##### Primitive

unsigned int
byte
boolean
double
unsigned char
char
int
unsigned long
float
long

##### Composite

array
Vector
String

##### Conversion

char()
boolean()
float()
int()
long()
byte()
splitString()

##### Bit, byte and word handling

makeWord()
bitRead()
bitWrite()
highByte()
bit()
lowByte()
Control

##### Relational Operators

>= (greater than or equal to)
!= (inequality)
<= (less than or equal to)
== (equality)
< (less than)
> (greater than)

##### Iteration

for()
while()

##### Conditionals

case
else
switch()
break
default
if()

##### Logical Operators

! (logical NOT)
&& (logical AND)
|| (logical OR)
Input/Output

##### Pin digital Input/Output

pinMode()
digitalRead()
shiftOut()
digitalWrite()

##### Port digital Input/Output

portWrite()
portRead()
portMode()

##### Pin analog Input

analogRead()

##### Pin PWM (analog) Output

analogWrite()

##### Time

millis()
delayMicroseconds()
delay()

##### Pulse Input (polled)

pulseIn()

##### Pulse output generation

pulseStop()
pulseRunning()
pulseOut()

##### Interrupts

noInterrupts()
detachInterrupt()
interrupts()
attachInterrupt()
interruptMode()
Math

##### Operators

-= (subtract assign)
+= (add assign)

##### Bitwise Operators

& (bitwise AND)
|= (bitwise OR and assign)
<< (bitwise bit shift left)
| (bitwise OR)
&= (bitwise AND and assign)
^ (bitwise XOR)
˜ (bitwise ones complement)
>> (bitwise bit shift right)

##### Calculation

ceil()
constrain()
map()
round()
max()
abs()
pow()
floor()
sqrt()
min()
sq()

##### Trigonometry

radians()
degrees()
sin()
cos()
tan()
atan2()

##### Random

random()
randomSeed()

##### Operator

+ (addition)
% (modulo)
* (multiply)
/ (divide)
- (negation)
- (minus)
++ (increment)
-- (decrement)
Constants
LSBFIRST
TWO_PI (6.28318...)
RISING
LOW
HIGH
OUTPUT
CHANGE
PI (3.14159...)
FALLING
HALF_PI (1.57079...)
MSBFIRST
INPUT