Algorithm
C++A procedure specifying how to solve a computational task.
Read in depth → What a program actually isLEARN · FAST REFERENCE
Definitions, useful symbols, and direct links into the guide.
102 terms · concise answers, with links into the guides
A procedure specifying how to solve a computational task.
Read in depth → What a program actually isApplication programming interface; named operations a library or framework offers to code.
Read in depth → C++ and the Arduino frameworkThe Arduino framework supplies familiar I/O APIs and startup behavior for supported boards.
framework = arduinoArduino.hsetup()loop()A value supplied at a function call, such as 8 in pinMode(8, OUTPUT).
f(8)An array stores a fixed sequence of same-type elements.
T values[N]values[i]A zero-based position into an array; valid values stop before the element count.
array[i]Assignment changes the value of an existing object.
=+=-=An operation appears indivisible to a relevant observer.
critical sectionatomic operationA two-state unit of information.
Read in depth → What a program actually isA pattern selecting bit positions.
flags & maskflags | maskOperation on individual integer bits, such as &, |, ^ or shifts; distinct from logical && and ||.
Read in depth → Operators and expressionsA flow waits instead of servicing its next work.
delay(ms)C++ type with true and false values.
booltruefalseThe { and } characters delimit a compound statement or definition body.
{}Exit the nearest enclosing loop or switch.
break;An addressable storage unit, ordinarily eight bits on the club targets.
Read in depth → What a program actually isC++ programming language used for general and embedded software.
Read in depth → C++ and the Arduino frameworkAn invocation of a function with arguments in parentheses.
f(arguments)A C++ character-sized integral type, distinct from a whole string.
'A'A class defines a type that can group state and operations behind an interface.
classpublic:private:An operation such as == or >= that asks about the relation of values.
==!=<>=The stage when source is translated and checked.
constexprcompilationA compiler translates source according to language and target rules.
.cpp -> object fileconst restricts modification through a qualified declaration or access path.
const Tconst T&const T*Borrow read-only access through a reference.
const T&A declaration imposing constant-expression requirements.
constexpr uint8_t pin = 8;A constructor initializes an object when its lifetime begins.
Type(args)member_(value)Skip to the next loop iteration.
continue;A bounded unsigned counter returns to zero after its maximum.
now - previousDebouncing accepts a switch transition after rejecting brief contact fluctuations.
rawstableelapsed intervalIntroduce a name and properties needed to use it.
void setIndicator(bool);Provide an entity's defining content.
void f() { ... }Arduino function that blocks its execution path for a number of milliseconds.
delay(milliseconds)Class operation run when an object lifetime ends, often releasing owned resources.
~Type()C++ loop that executes its body before testing whether to continue.
do { ... } while (condition);Dynamic allocation obtains storage while the program is running.
newdeleteRecognize a state change between observations.
current != previousC++ type naming a finite set of integral values or states.
enum class Mode { Idle, Running };Code that computes a value, such as raw >= 512.
raw >= 512Firmware is software that runs within and controls a device.
builduploadflashC++ floating-point type for approximate fractional values.
Read in depth → Values and typesC++ loop with initialization, test and update expressions.
for (init; condition; step)Software runtime and APIs that structure a project, such as Arduino framework.
Read in depth → C++ and the Arduino frameworkA function provides a callable operation with an interface.
result name(parameters) { body }An interface location controlling or reporting peripheral state.
registerfieldmaskC++ file commonly declaring interfaces to be included by source files.
.h.hppThe heap is an implementation's dynamically managed storage area.
allocationdeallocationC++ selection of one block when a condition is true and another otherwise.
if (condition) { ... } else { ... }An include directive makes a header's content available during preprocessing.
#include <Arduino.h>#include "module.h"Prevent repeated header processing in one translation unit.
#ifndef#define#endif#pragma onceAn integer type represents a bounded range of whole-number values.
intuint16_tuint32_tAn arithmetic result exceeds its representable range.
maximum + 1The bit capacity associated with an integer representation.
uint16_tuint32_tA handler run in response to an interrupt.
ISRhandlerC++ callable expression often defined near its use.
Read in depth → Templates, lambdas, and library awarenessLifetime is the interval during which an object exists.
constructiondestructionRules connecting declarations to the same entity across scopes or units.
unnamed namespaceexternal declarationA tool that combines compiled units into a target program.
object -> linked imageC++ boolean operation such as &&, || or !.
&&||!An encoded operation the processor can execute.
Read in depth → What a program actually isPreprocessor substitution before C++ compilation, without ordinary type checking.
#define NAME replacementmillis reports elapsed milliseconds through the selected Arduino core.
now - previous >= intervalC++ operations that can transfer resources from a suitable source object.
std::moveT&&C++ scope used to group names and reduce collisions.
namespace name { ... }::Check readiness, perform bounded work, then return.
update(now)Pointer value that designates no object and cannot safely be dereferenced.
nullptrA particular instance of a C++ type occupying storage during its lifetime.
Read in depth → Records, enumerations, and classesCompiled code and data with linking information.
.oSymbol or keyword performing an operation on operands.
+-*/%Responsibility for a resource's validity and release.
ownerborrowerNamed input in a function definition, filled by an argument at a call.
void f(int value)Initialize a separate parameter from an argument.
void f(int value)A pointer is a typed value that can identify a location or null.
T*&object*pointer->nullptrSource processing that handles includes, directives, and macros.
#include#defineInstructions intended to make a computer perform a task.
Read in depth → What a program actually isRAII binds a resource's management to an object's lifetime.
constructordestructorownerA C++ reference is an initialized binding used to access another object or function.
T&const T&Result a non-void function sends to its caller.
return value;The period when a built program executes.
executioninputstateScope describes where a name is available to program lookup.
blocknamespacefunctionC++ punctuation ending many statements and declarations.
Read in depth → First program structureOrdered transmission of data one unit at a time through an interface.
Serial.begin(9600)Serial.println(value)A library object expressing a pointer ownership policy.
std::unique_ptrstd::shared_ptrHuman-authored program text before translation into executable target code.
Read in depth → What a program actually isA stack commonly organizes automatic call-related storage.
frameautomatic storageReusable facilities specified alongside C++.
std::arraystd::vectorA state machine expresses modes and rules for changing among them.
enum classtransitionentry actionC++ unit of execution, often ending with a semicolon.
Read in depth → First program structureC++ object storage persisting for the program lifetime.
static T value;Sequence of characters; C++ offers several representations with different memory costs.
char label[] = "LED";C++ user-defined aggregate or class-like type grouping related values.
struct Reading { ... };C++ selection statement choosing among case labels for an integral/enum expression.
switch (value) { case ...: break; }Formal arrangement of tokens that forms valid language constructs.
Read in depth → First program structureC++ generic definition parameterized by types or values.
Read in depth → Templates, lambdas, and library awarenessA toolchain supplies programs that translate and package target code.
compilelinkimageOne source file after preprocessing its includes and directives.
.cpp plus included headersC++ description of values and allowed operations, such as int or bool.
Read in depth → Values and typesChanging the representation or type of a value.
static_cast<T>(value)Named storage for a value that a program can use and usually change.
T name = value;C++ return type indicating a function provides no return value.
void f()Qualification used for accesses requiring special observable treatment.
volatile TC++ loop testing a condition before each execution of its body.
while (condition) { ... }