Structure

  • setup()
  • loop()

Control Structures

  • if
  • if...else
  • for
  • switch case
  • while
  • do... while
  • break
  • continue
  • return
  • goto

Further Syntax

  • ; (semicolon)
  • {} (curly braces)
  • // (single line comment)
  • /* */ (multi-line comment)
  • #define
  • #include

Arithmetic Operators

  • = (assignment operator)
  • + (addition)
  • - (subtraction)
  • * (multiplication)
  • / (division)
  • % (modulo)

Comparison Operators

  • == (equal to)
  • != (not equal to)
  • < (less than)
  • > (greater than)
  • <= (less than or equal to)
  • >= (greater than or equal to)

Boolean Operators

  • && (and)
  • || (or)
  • ! (not)

Pointer Access Operators

  • * (dereference operator)
  • & (reference operator)

Bitwise Operators

  • & (bitwise and)
  • | (bitwise or)
  • ^ (bitwise xor)
  • ~ (bitwise not)
  • << (bitshift left)
  • >> (bitshift right)

Compound Operators

  • ++ (increment)
  • -- (decrement)
  • += (compound addition)
  • -= (compound subtraction)
  • *= (compound multiplication)
  • /= (compound division)
  • &= (compound bitwise and)
  • |= (compound bitwise or)

Variables

Constants

  • HIGH | LOW
  • INPUT | OUTPUT | INPUT_PULLUP
  • LED_BUILTIN
  • true | false
  • integer constants

Data Types

  • void
  • boolean
  • char
  • unsigned char
  • byte
  • int
  • unsigned int
  • word
  • short
  • string - char array
  • array

Conversion

  • char()
  • byte()
  • int()
  • word()
  • long()

Variable Scope & Qualifiers

  • variable scope
  • static
  • volatile
  • const

Utilities

  • sizeof()

Functions

Digital I/O

  • pinMode()
  • digitalWrite()
  • digitalRead()

Analog I/O

  • analogRead()
  • analogWrite() - PWM

Time

  • millis()
  • delay()

Communication

  • Serial
  • Serial1

Z-Wave

Exposing device functionality

  • ZUNO_SETUP_CHANNELS()
  • ZUNO_SWITCH_BINARY()
  • ZUNO_SWITCH_MULTILEVEL()
  • ZUNO_SENSOR_BINARY()
  • ZUNO_SENSOR_MULTILEVEL()

Reporting values

  • zunoSendReport()

Controlling other devices

  • ZUNO_SETUP_ASSOCIATIONS()
  • zunoSendToGroupSetValueCommand()
  • zunoSendToGroupDimmingCommand()
  • zunoSendToGroupScene()

Power management

  • ZUNO_SETUP_SLEEPING_MODE()
  • zunoSendToSleep()

Debug Mode

  • ZUNO_SETUP_DEBUG_MODE()

IDE settings

  • Frequency
  • MultiCommand
  • Security