Mirror of CollapseOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

17 lines
696B

  1. # Z-Offset
  2. This LCD has a "Z-Offset" parameter, allowing to offset rows on
  3. the screen however we wish. This is handy because it allows us
  4. to scroll more efficiently. Instead of having to copy the LCD
  5. ram around at each linefeed (or instead of having to maintain
  6. an in-memory buffer), we can use this feature.
  7. The Z-Offset goes upwards, with wrapping. For example, if we
  8. have an 8 pixels high line at row 0 and if our offset is 8,
  9. that line will go up 8 pixels, wrapping itself to the bottom of
  10. the screen.
  11. The principle is this: The active line is always the bottom
  12. one. Therefore, when active row is 0, Z is FNTH+1, when row is
  13. 1, Z is (FNTH+1)*2, When row is 8, Z is 0. (cont.)