Counting sequence in RAM_DL #51
-
Hi Rudolph, I got this from brtcommunity about your post. (http://www.brtcommunity.com/index.php?topic=402.0)
How did you count this sequence uses 38 32bit words on the display-list. I only can count to 31 and I can't find any information how to count it. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Both CMD_TEXT have a text with a length of 4 chars. That makes five per CMD_TEXT and 31 in total, you are correct. I am not sure what I was actually counting that day. :-) |
Beta Was this translation helpful? Give feedback.
Hi,
all the simple commands are one 32 bit word, that makes 21 and leaves the two CMD_TXT.
Both CMD_TEXT have a text with a length of 4 chars.
EVE_cmd_text(int16_t x0, int16_t y0, int16_t font, uint16_t options, const char* text);
CMD_TEXT itself, coordinates, font and options are three 32 bit words.
And the text needs two 32 bit words since it has to end on 0x00 and be 32 bit aligned.
That makes five per CMD_TEXT and 31 in total, you are correct.
I am not sure what I was actually counting that day. :-)
And actually it even is only 29 since the first two commands are for the display list itself.