Reference

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)

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

  • true

    ,

    false

Data Types

  • void

  • boolean

  • char

  • unsigned char

  • byte

  • int

  • unsigned int

  • word

  • dword

  • float

  • String()

  • s_pin

    (fast pin mode)

Variable Scope & Qualifiers

  • variable scope

  • const

Functions

Digital I/O

  • pinMode

    ()

  • digitalWrite

    ()

  • digitalRead

    ()

Analog I/O

  • analogRead

    () — ADC

  • analogReadResolution

    ()

  • analogReference

    ()

  • analogWrite

    () — PWM

  • analogWriteResolution

    ()

  • analogWriteFrequency

    ()

  • zunoFastPWM

    () — PWM

Advanced I/O

  • tone

    () and

    noTone

    ()

  • pulseIn

    ()

Time

  • millis

    ()

  • micros

    ()

  • zunoGetTimeStamp

    ()

  • delay

    ()

  • delayMicroseconds

    ()

Math

  • min

    (),

    max

    (),

    abs

    (),

    round

    ()

  • constrain

    (),

    map

    ()

  • Bitmask operations —

    bitRead

    (),

    bitSet

    (),

    bitClear

    (),

    bitWrite

    ()

  • lowByte

    () and

    highByte

    ()

  • Power, exponent logarithm —

    pow

    (),

    exp

    (),

    log

    (),

    log10

    ()

  • sqrt

    ()

    sq

    ()

  • Trigonometry and hyperbolic —

    sin

    (),

    cos

    (), …

    radians

    (),

    degrees

    ()

Random Numbers

  • random

  • randomSeed

Communication

  • Serial

    (USB and UART)

  • LeUart

  • Software Serial

  • Wire

    (I2C)

  • SPI

  • 1-Wire

  • IR

Interrupts

  • External interrupts

    (INT0, INT1, ZEROX)

    • attachInterrupt

      ()

    • detachInterrupt

      ()

    • zunoExtIntMode

      ()

    • zunoExtIntMode

      () – deprecated

    • ZUNO_SETUP_ISR_INT0

      ()

    • ZUNO_SETUP_ISR_INT1

      ()

    • ZUNO_SETUP_ISR_ZEROX

      ()

  • General Purpose Timer

    • zunoGPTInit

      ()

    • zunoGPTEnable

      ()

    • zunoGPTSet

      ()

    • ZUNO_SETUP_ISR_GPTIMER

      ()

  • Timers

    • ZUNO_SETUP_ISR_1MSTIMER

      () — 1 ms

    • ZUNO_SETUP_SYSTIMER_HANDLER

      () — 10 ms

Non-volatile memory

  • EEPROM

  • NZRAM

    (non-volatile RAM in sleeping devices)

Dynamic memory

  • new

  • delete

  • calloc

  • malloc

  • free

  • realloc

  • reallocarray

  • malloc_stats

Characters

  • isAlpha

  • isAlphaNumeric

  • isAscii

  • isControl

  • isDigit

  • isGraph

  • isHexadecimalDigit

  • isLowerCase

  • isPrintable

  • isPunct

  • isSpace

  • isUpperCase

  • isWhitespace

  • toAscii

  • toLowerCase

  • toUpperCase

Looking for something else?

See the list of community-contributed libraries for interfacing with particular types of hardware.

See the list of community-contributed libraries for interfacing with particular types of hardware.

Z-Wave

Exposing device functionality

  • ZUNO_SETUP_CHANNELS

    ()

  • ZUNO_SWITCH_BINARY

    ()

  • ZUNO_SWITCH_COLOR

    ()

  • ZUNO_SWITCH_MULTILEVEL

    ()

  • ZUNO_SENSOR_BINARY

    ()

  • ZUNO_SENSOR_MULTILEVEL

    ()

  • ZUNO_METER

    ()

  • ZUNO_BLINDS

    ()

  • ZUNO_FLOWSTOP

    ()

  • ZUNO_SIREN

    ()

  • ZUNO_DOORLOCK

    ()

  • ZUNO_THERMOSTAT

    ()

Reporting and receiving values

  • zunoSendReport

    ()

  • zunoIsChannelUpdated

    ()

  • zunoIsChannelRequested

    ()

  • zunoIsBatteryRequested

    ()

Controlling other devices

  • ZUNO_SETUP_ASSOCIATIONS

    ()

  • zunoAssociationGroupName

    ()

  • zunoSendToGroupSetValueCommand

    ()

  • zunoSendToGroupDimmingCommand

    ()

  • zunoSendToGroupScene

    ()

  • zunoSendToGroupDoorlockControl

    ()

  • zunoSendAssociationCommand

    ()

Handling reports from other devices

  • ZUNO_REPORTS_HANDLER

    ()

Power management

  • ZUNO_SETUP_SLEEPING_MODE

    ()

  • zunoSendDeviceToSleep

    ()

  • zunoSetBeamCountWU

    ()

  • zunoSetWUOptions

    ()

  • zunoEM4EnablePinWakeup

    ()

  • zunoIsSleepLocked

    ()

  • zunoLockSleep

    ()

  • zunoSendWakeUpNotification

    ()

  • zunoSetCustomWUPTimer

    ()

  • zunoGetWakeReason

    ()

  • ZUNO_SETUP_BATTERY_LEVELS

    ()

  • ZUNO_SETUP_BATTERY_HANDLER

    ()

Inclusion in controller

  • zunoStartLearn

    ()

  • zunoInNetwork

    ()

  • zunoNID

    ()

Debug and advanced features

  • ZUNO_SETUP_PRODUCT_ID

    () and

    ZUNO_SETUP_PRODUCT_AUTO

    ()

  • ZUNO_SETUP_DEBUG_MODE

    ()

  • zunoReboot

    ()

  • ZUNO_ENABLE

    () and

    ZUNO_DISABLE

    ()

  • ZUNO_SETUP_SYSEVENT_HANDLER

    ()

  • ZUNO_SETUP_S2ACCESS

    ()

IDE settings (get more information)

  • Frequency

  • MultiCommand

  • Security

Dynamic configuration

  • ZUNO_START_CONFIG

    ()

  • ZUNO_ADD_CHANNEL

    ()

  • ZUNO_SET_ZWCHANNEL

    ()

  • ZUNO_ADD_ASSOCIATION

    ()

  • ZUNO_COMMIT_CONFIG

    ()

  • ZUNO_GET_CONFIG_STATE

    ()

  • zunoStartDeviceConfiguration

    ()

  • zunoAddChannel

    ()

  • zunoSetZWChannel

    ()

  • zunoAppendChannelHandler

    ()

  • zunoAddAssociation

    ()

  • zunoCommitCfg

    ()

Configuration parameters

  • ZUNO_SETUP_CFGPARAMETER_HANDLER

    ()

  • ZUNO_SETUP_CONFIGPARAMETERS

    ()

  • zunoLoadCFGParam

    ()

  • zunoSaveCFGParam

    ()

System handlers

  • zunoAttachSysHandler

    ()

  • zunoDetachSysHandler

    ()

  • zunoDetachSysHandlerAllSubType

    ()

PTI

  • zunoPTIConfigUART

    ()

Rate this post