byte

Description

A byte stores an 8-bit unsigned number, from 0 to 255.

Syntax

byte var = val;

Parameters

  • var
    : variable name
  • val
    : the value to assign to that variable

See also

Suggest changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. If you see anything wrong, you can edit this page here.

License

The Arduino documentation is licensed under the Creative Commons Attribution-Share Alike 4.0 license.