[apps/on_boarding] Power-on self-test

POST checks the battery, VBLANK and LCDData
This commit is contained in:
Léa Saviot
2019-04-24 16:13:07 +02:00
parent a4b0567e64
commit da5a2d15f7
14 changed files with 185 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
#include "lcd_data_test_controller.h"
#include <ion/src/device/shared/drivers/display.h>
#include <ion/display.h>
using namespace Poincare;
@@ -106,7 +106,7 @@ int LCDDataTestController::numberOfNonColoredPixels(KDColor wantedColor) {
}
bool LCDDataTestController::testDisplayBlackWhite() {
Ion::Device::Display::HardwareTestPushBlackWhite();
Ion::Display::POSTPushBlackWhite();
constexpr int stampHeight = Ion::Display::Height;
constexpr int stampWidth = 2;
static_assert(Ion::Display::Width % stampWidth == 0, "Stamps must tesselate the display");