Mirror of CollapseOS
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

17 lignes
695B

  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-Offet 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.)