This is an old revision of the document!


Interrupts and sub-programs

Functions

Functions are the set of statements that are executed always when the function is called. Two functions that were mentioned before are already known - setup() and loop(). The programmer is usually trying to make several functions that contain all the statements and then to call them in the setup() or loop() functions.

The structure of the function is following:

type functionName(arguments) //a return type, name and arguments of the function
{
  //the body of a function - statements to execute
}

Interrupts

en/iot-open/programming_fundamentals_rtu/interrupts_and_sub-programs.1516873627.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0