Greenhouse Climate Observation Module
Dependencies: BSP_DISCO_F746NG DHT
bootup.cpp@3:c21057907d21, 2020-02-05 (annotated)
- Committer:
- chri721u
- Date:
- Wed Feb 05 12:15:21 2020 +0000
- Revision:
- 3:c21057907d21
- Parent:
- 2:739ba85b7a90
- Child:
- 8:03ba8074d634
Final Version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chri721u | 2:739ba85b7a90 | 1 | /* |
chri721u | 2:739ba85b7a90 | 2 | Author: Christian Andresen |
chri721u | 2:739ba85b7a90 | 3 | Date: 13/01/2020 |
chri721u | 2:739ba85b7a90 | 4 | |
chri721u | 2:739ba85b7a90 | 5 | Brief: |
chri721u | 2:739ba85b7a90 | 6 | Bootup screen for the STM32-756g_Discovery LCD monitor. |
chri721u | 2:739ba85b7a90 | 7 | */ |
chri721u | 0:a5831f680465 | 8 | #include "mbed.h" // Mbed header from mbed-os version 5 |
chri721u | 0:a5831f680465 | 9 | #include "stm32746g_discovery_lcd.h" // Last updated 27/11/2019 |
chri721u | 0:a5831f680465 | 10 | #include "bootup.h" |
chri721u | 0:a5831f680465 | 11 | |
chri721u | 0:a5831f680465 | 12 | void bootup::LCD_Bootup() |
chri721u | 0:a5831f680465 | 13 | { |
chri721u | 0:a5831f680465 | 14 | // Boot up LCD screen |
chri721u | 0:a5831f680465 | 15 | BSP_LCD_Init(); // Starts up the LCD |
chri721u | 0:a5831f680465 | 16 | BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER, LCD_FB_START_ADDRESS); |
chri721u | 0:a5831f680465 | 17 | BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER); |
chri721u | 0:a5831f680465 | 18 | |
chri721u | 0:a5831f680465 | 19 | // Clear the screen, add black background and red text |
chri721u | 0:a5831f680465 | 20 | BSP_LCD_Clear(LCD_COLOR_BLACK); |
chri721u | 0:a5831f680465 | 21 | } |