-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlcd_lib.h
More file actions
34 lines (26 loc) · 874 Bytes
/
lcd_lib.h
File metadata and controls
34 lines (26 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// **************************************************************************
//
// Demo program for labs
//
// Subject: Computer Architectures and Parallel systems
// Author: Petr Olivka, petr.olivka@vsb.cz, 09/2019
// Organization: Department of Computer Science, FEECS,
// VSB-Technical University of Ostrava, CZ
//
// File: OpenCV simulator of LCD
//
// **************************************************************************
#ifndef __LCD_LIB_H
#define __LCD_LIB_H
#include <opencv2/opencv.hpp>
#define LCD_WIDTH 480
#define LCD_HEIGHT 320
#define LCD_NAME "Virtual LCD"
// LCD Simulator
// Virtual LCD
extern cv::Mat g_canvas;
// Put color pixel on LCD (canvas)
void lcd_put_pixel( int32_t t_x, int32_t t_y, uint16_t t_rgb_565 );
// LCD Initialization
void lcd_init();
#endif // __LCD_LIB_H