Guest User

Primjer

a guest
Aug 31st, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.47 KB | None | 0 0
  1. // KAKO TRENUTNO IMAM
  2.  
  3. void screenHighBeam()
  4. {
  5.     refreshScreen = true;
  6.  
  7.     display.setCursor(SCR_ICONS_X, SCR_ICONS_HB_Y);
  8.     display.setTextSize(SCR_ICONS_SIZE);
  9.     display.print(F("HB"));    
  10. }
  11.  
  12. void screenHighBeamClear()
  13. {
  14.     refreshScreen = true;
  15.    
  16.     display.setCursor(SCR_ICONS_X, SCR_ICONS_HB_Y);
  17.     display.setTextSize(SCR_ICONS_SIZE);
  18.     display.print(F("  "));
  19. }
  20.  
  21. void screenFogLight()
  22. {
  23.     refreshScreen = true;
  24.    
  25.     display.setCursor(SCR_ICONS_X, SCR_ICONS_FL_Y);
  26.     display.setTextSize(SCR_ICONS_SIZE);
  27.     display.print(F("FL"));
  28. }
  29.  
  30. void screenFogLightClear()
  31. {
  32.     refreshScreen = true;
  33.    
  34.     display.setCursor(SCR_ICONS_X, SCR_ICONS_FL_Y);
  35.     display.setTextSize(SCR_ICONS_SIZE);
  36.     display.print(F("  "));
  37. }
  38.  
  39.  
  40.  
  41.  
  42.  
  43. // PRIMJER
  44.  
  45. void ekran(uint8_t dio)
  46. {
  47.     refreshScreen = true;
  48.  
  49.  
  50.     if (dio == 0)
  51.     {
  52.         display.setCursor(SCR_ICONS_X, SCR_ICONS_HB_Y);
  53.         display.setTextSize(SCR_ICONS_SIZE);
  54.         display.print(F("HB"));        
  55.     }
  56.     else if (dio == 1)
  57.     {
  58.         display.setCursor(SCR_ICONS_X, SCR_ICONS_HB_Y);
  59.         display.setTextSize(SCR_ICONS_SIZE);
  60.         display.print(F("  "));        
  61.     }
  62.     else if (dio == 2)
  63.     {
  64.         display.setCursor(SCR_ICONS_X, SCR_ICONS_FL_Y);
  65.         display.setTextSize(SCR_ICONS_SIZE);
  66.         display.print(F("FL"));        
  67.     }
  68.     else if (dio == 3)
  69.     {
  70.         display.setCursor(SCR_ICONS_X, SCR_ICONS_FL_Y);
  71.         display.setTextSize(SCR_ICONS_SIZE);
  72.         display.print(F("  "));        
  73.     }          
  74. }
Advertisement
Add Comment
Please, Sign In to add comment