Guest User

Untitled

a guest
Nov 3rd, 2017
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. uint8_t average = (avgDistance * WHEELE_EXTENT) / ((avgTime + 1) / 60);
  2. refreshScreen = true;
  3.  
  4. screenCleanInfo();
  5. display.setCursor(SCR_INFO_X, SCR_INFO_Y);
  6. display.setTextSize(SCR_INFO_SIZE);
  7. display.print(F("AVG DIST"));
  8. display.setCursor(SCR_INFO_X, SCR_INFO_Y2);
  9.  
  10. if (unit == false)
  11. {
  12. display.print(average, 1);
  13. display.print(F("m/min"));
  14. }
  15. else
  16. {
  17. display.print(average * 1093 / 1000, 1);
  18. display.print(F("yd/min"));
  19. }
Advertisement
Add Comment
Please, Sign In to add comment