Greenhouse Climate Observation Module

Dependencies:   BSP_DISCO_F746NG DHT

bootup.cpp

Committer:
chri721u
Date:
2020-02-05
Revision:
3:c21057907d21
Parent:
2:739ba85b7a90
Child:
8:03ba8074d634

File content as of revision 3:c21057907d21:

/*
    Author: Christian Andresen
    Date: 13/01/2020
    
    Brief:
    Bootup screen for the STM32-756g_Discovery LCD monitor.
*/ 
#include "mbed.h" // Mbed header from mbed-os version 5
#include "stm32746g_discovery_lcd.h" // Last updated 27/11/2019
#include "bootup.h"

void bootup::LCD_Bootup()
{
    // Boot up LCD screen
    BSP_LCD_Init(); // Starts up the LCD
    BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER, LCD_FB_START_ADDRESS);
    BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER);

    // Clear the screen, add black background and red text
    BSP_LCD_Clear(LCD_COLOR_BLACK);
}