NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » Does the code snippet have Row and Column backward?
January 03, 2012 by curly51248 |
Hi, I am trying to understand the code and completely re-write. Does anybody else think the same way? I mean, to me there are only 5 rows... and the polarity is unimportant... until you are in a different column. Can I assume when the author wrote la_row%2 == 0, it REALLY mean la_col%2 == 0? Thanks in advance, |
---|---|
January 04, 2012 by Rick_S |
Yes and no. I believe what they did was make the program work as though there were twice as many rows and half the columns. However, row 0 and 1 column 0 are essentially arranged in the display as row 0 column 0 and 1. I believe (based on their video tutorial) that the doubling of width came after the initial program and this was probably the easiest way to code the addition without major re-writing. Rick |
Please log in to post a reply.
Did you know that signed numbers need to be sign-extended when chaging variable sizes? Learn more...
|