Arduino Programming Language: LowByte

Name

lowByte()

Description

LowByte returns the low Byte(that is righmost) of a variable(e.g.a word)

Syntax

lowByte(wordValue)

Parameters

  • wordValue is an unsigned int

Returns

byte 

Usage

Application

Examples

unsigned int x = 1022; // word (16 bit or two bytes) variable, 0x03FE in Hexadecimal 
byte lb = lowByte(x); // sets lb with the lower byte of x: 0xFE


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