E3021 Type Errors
byte-value-out-of-range
byte value must be between 0 and 255
When this occurs
Assigning a value outside the byte range (0-255) to a byte variable
Example error message
error[E3021]:
byte value must be between 0 and 255, got 300
How to fix
Ensure the value assigned to a byte is within the valid range of 0 to 255.