Procházet zdrojové kódy

Removed debug code, add some comments

Dirk Eichel před 12 roky
rodič
revize
0b320f75e9
1 změnil soubory, kde provedl 7 přidání a 9 odebrání
  1. 7
    9
      Marlin/dogm_lcd_implementation.h

+ 7
- 9
Marlin/dogm_lcd_implementation.h Zobrazit soubor

@@ -67,8 +67,8 @@ U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);	// HW-SPI Com: CS, A0
67 67
 static void lcd_implementation_init()
68 68
 {
69 69
 	//  Uncomment this if you have the first generation (V1.10) of STBs board
70
-	pinMode(17, OUTPUT);	// Enable LCD backlight
71
-	digitalWrite(17, HIGH);
70
+	//  pinMode(17, OUTPUT);	// Enable LCD backlight
71
+	//  digitalWrite(17, HIGH);
72 72
 	
73 73
 	u8g.firstPage();
74 74
 	do {
@@ -79,15 +79,15 @@ static void lcd_implementation_init()
79 79
 	   } while( u8g.nextPage() );
80 80
 
81 81
 #ifdef LCD_SCREEN_ROT_90
82
-	u8g.setRot90();	// Rotate screen by 90°
82
+	u8g.setRot90();	// Rotate screen by 90°
83 83
 #endif
84 84
 
85 85
 #ifdef LCD_SCREEN_ROT_180;
86
-	u8g.setRot180();	// Rotate screen by 180°
86
+	u8g.setRot180();	// Rotate screen by 180°
87 87
 #endif
88 88
 
89 89
 #ifdef LCD_SCREEN_ROT_270;
90
-	u8g.setRot270();	// Rotate screen by 270°
90
+	u8g.setRot270();	// Rotate screen by 270°
91 91
 #endif
92 92
 
93 93
    
@@ -115,7 +115,6 @@ static void lcd_implementation_init()
115 115
 
116 116
 static void lcd_implementation_clear()
117 117
 {
118
-	//u8g.setRot180();
119 118
 	u8g.firstPage();
120 119
 	do {	
121 120
 			u8g.setColorIndex(0);
@@ -142,7 +141,7 @@ static void lcd_implementation_status_screen()
142 141
  
143 142
  u8g.setColorIndex(1);	// black on white
144 143
  
145
- // Symbols menu graphics
144
+ // Symbols menu graphics, animated fan
146 145
  if ((blink % 2) &&  fanSpeed )	u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT,status_screen0_bmp);
147 146
 	else u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT,status_screen1_bmp);
148 147
  
@@ -160,12 +159,11 @@ static void lcd_implementation_status_screen()
160 159
  
161 160
  if (IS_SD_PRINTING)
162 161
    {
163
-	// u8g.print(itostr3(card.percentDone()));
164 162
 	// Progress bar
165 163
 	u8g.drawBox(55,50, (unsigned int)( (71 * card.percentDone())/100) ,2);
166 164
    }
167 165
     else {
168
-			//
166
+			// do nothing
169 167
 		 }
170 168
  
171 169
  u8g.setPrintPos(80,47);

Loading…
Zrušit
Uložit