trim marks showing direction #1419

This commit is contained in:
mhotar
2014-07-18 01:30:10 +02:00
parent cab8f3db71
commit d32484406e
+21
View File
@@ -163,6 +163,9 @@ void displayTrims(uint8_t phase)
uint8_t att = ROUND;
int16_t val = getTrimValue(phase, i);
#if !defined(CPUM64) || !defined(FRSKY)
int16_t dir = val;
#endif
if (val < -125 || val > 125)
att = BLINK|INVERS|ROUND;
@@ -182,6 +185,15 @@ void displayTrims(uint8_t phase)
lcd_vline(xm+1, ym-1, 3);
}
ym -= val;
#if !defined(CPUM64) || !defined(FRSKY)
lcd_filled_rect(xm-3, ym-3, 7, 7, SOLID, att|ERASE);
if (dir >= 0) {
lcd_hline(xm-1, ym-1, 3);
}
if (dir <= 0) {
lcd_hline(xm-1, ym+1, 3);
}
#endif
}
else {
ym = 60;
@@ -189,6 +201,15 @@ void displayTrims(uint8_t phase)
lcd_hline(xm-1, ym-1, 3);
lcd_hline(xm-1, ym+1, 3);
xm += val;
#if !defined(CPUM64) || !defined(FRSKY)
lcd_filled_rect(xm-3, ym-3, 7, 7, SOLID, att|ERASE);
if (dir >= 0) {
lcd_vline(xm+1, ym-1, 3);
}
if (dir <= 0) {
lcd_vline(xm-1, ym-1, 3);
}
#endif
}
lcd_square(xm-3, ym-3, 7, att);
}