You need to shift the first variable "up" (to the left) 4 places and THEN add the second variable.But yeah, it IS using a mathematical operator but why don't you want that?Code:Result = (VAR_A << 4) + VAR_B
/Henrik.
You need to shift the first variable "up" (to the left) 4 places and THEN add the second variable.But yeah, it IS using a mathematical operator but why don't you want that?Code:Result = (VAR_A << 4) + VAR_B
/Henrik.
Because this binary variable is actually a pattern for dot matrix led display.
Matrix is 10 pixels wide, 7 pixels in height. So say, I want to display two symbols on it, each are stored in separate variable, I have to place them next to each other![]()
I understand that you want to place the two nibbles next to each other within the byte but I don't understand why you want to do it without mathematical operation.
Anyway, try the suggested method, it does what you're asking for.
never mind, it just "lost in translation", your method will work, I believe![]()
Bookmarks