Arduino - Keywords

Arduino

Guide

Tutorials

Reference

Hardware

Software

Forum

Playground

Exhibition

Hacking

FAQ

Buy

Language | Libraries | Comparison

## Keywords

Keywords are constants, variables and functions which are defined as part of the Arduino language. Avoid using keywords for variable names.

    # Constants

    HIGH
    LOW
    INPUT
    OUTPUT
    SERIAL
    DISPLAY
    PI
    HALF_PI
    TWO_PI
    LSBFIRST
    MSBFIRST
    CHANGE
    FALLING
    RISING
    false
    true
    null

    # Port Constants

    DDRB
    PINB
    PORTB

    DDRC
    PINC
    PORTC

    DDRD
    PIND
    PORTD

    # Datatypes

    boolean
    byte
    char
    class
    default
    do
    double
    int
    long
    private
    protected
    public
    return
    short
    signed
    static
    switch
    throw
    try
    unsigned
    void

    # Other

    abs
    acos
    +=
    +
    []
    asin
    =
    atan
    atan2
    &
    |
    boolean
    byte
    case
    ceil
    char
    char
    class
    ,
    //
    ?:
    constrain
    cos
    {}
    --
    default
    delay
    delayMicroseconds
    /
    /**
    .
    else
    ==
    exp
    false
    float
    float
    floor
    for
    <
    <=
    HALF_PI
    if
    ++
    !=
    int
    <<
    <
    <=
    log
    &&
    !
    ||

    loop
    max
    millis
    min
    -
    %
    /*
    *
    new
    null
    ()
    PII
    return
    >>
    ;
    Serial
    Setup
    sin
    sq
    sqrt
    -=
    switch
    tan
    this
    true
    TWO_PI
    void
    while
    Serial
    begin
    read
    print
    write
    println
    available
    digitalWrite
    digitalRead
    pinMode
    analogRead
    analogWrite
    attachInterrupts
    detachInterrupts
    beginSerial
    serialWrite
    serialRead
    serialAvailable
    printString
    printInteger
    printByte
    printHex
    printOctal
    printBinary
    printNewline
    pulseIn
    shiftOut

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

Edit Page | Page History | Printable View | Recent Site Changes