x7/x9e startup review (#5033)

* Turn on X7 like it is done on X9

* 4 squares like shutdown + prep for firmware option to disable

* Compile option

* - rollback firmware option
- fast one second power on
- unchanged power off
- animation added for x7 power on
- animation for power off changed to 'removing' quarter instead of adding (ie the power on anim fills in, the power down fills out)

* Cosmetics

* Cosmetics
This commit is contained in:
3djc
2017-06-18 20:55:49 +02:00
committed by Bertrand Songis
parent 4226e9cc45
commit 4c40aec8b3
3 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -1568,7 +1568,7 @@ void drawShutdownAnimation(uint32_t index)
lcdClear();
int quarter = index / (PWR_PRESS_SHUTDOWN_DELAY / 5);
for (int i=1; i<=4; i++) {
if (quarter >= i) {
if ((4 -quarter) >= i) {
lcdDrawFilledRect(LCD_W / 2 - 28 + 10 * i, LCD_H / 2 - 3, 6, 6, SOLID, 0);
}
}