Arduino Programming Language: Byte

Name

byte

Description

Byte type occupies one byte (8bits) and it stores numerical values from 0 to 255.

Syntax

byte var
byte var = value

Parameters

  • var: variable name
  • value: numerical value between 0 and 255

Usage

Application

Examples

byte a=200;
byte b;
b=100;
byte c = B10110; // B indicates a binary number, in decimal a=22;
....


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc