29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
#include "blk_box_drivers/helpers.hpp"
|
|
#include "blk_box_drivers/char_lcd.hpp"
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
void lcd_do_splash() {
|
|
const uint8_t custom_char[6][8] = {
|
|
{ 0x01, 0x01, 0x02, 0x02, 0x07, 0x07, 0x0F, 0x0D },
|
|
{ 0x10, 0x10, 0x18, 0x18, 0x1C, 0x0C, 0x0E, 0x06 },
|
|
{ 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x07, 0x07 },
|
|
{ 0x19, 0x1B, 0x13, 0x17, 0x07, 0x0F, 0x0F, 0x1F },
|
|
{ 0x13, 0x1B, 0x1F, 0x1F, 0x00, 0x1F, 0x1F, 0x1F },
|
|
{ 0x00, 0x00, 0x10, 0x10, 0x00, 0x18, 0x1C, 0x1C },
|
|
};
|
|
|
|
LCDController::lock(portMAX_DELAY);
|
|
LCDController::create_custom_char(1, custom_char[0]);
|
|
LCDController::create_custom_char(2, custom_char[1]);
|
|
LCDController::create_custom_char(3, custom_char[2]);
|
|
LCDController::create_custom_char(4, custom_char[3]);
|
|
LCDController::create_custom_char(5, custom_char[4]);
|
|
LCDController::create_custom_char(6, custom_char[5]);
|
|
|
|
LCDController::print(1, 6, "\x01\x02Marino");
|
|
LCDController::print(2, 5, "\x03\x04\x05\x06""DEV");
|
|
LCDController::unlock();
|
|
}
|