So, in hex, any
int
can be represented as a four-digit hex number. Thus, the binary
number 10001100 would in hex be 8C. The C language has a special syntax for using hex
numbers. You can assign a hex value to an
int
as follows:
The Arduino standard library provides some functions that let you manipulate the 16
bits within an
Dostları ilə paylaş: