O'Reilly logo

Mastering Arduino by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Byte

The byte data type is an 8-bit numerical value that ranges from 0 to 255. The following shows how we would declare a variable of the byte type:

byte myByte = 128;

The preceding code declares a variable named myByte of the byte type with an initial value of 128.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required