LCD-ESP32-Driver
1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
Loading...
Searching...
No Matches
lcd_image.h
Go to the documentation of this file.
1
/*
2
* MIT License
3
*
4
* Copyright (c) 2022 Damian Ćlusarczyk
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7
* and associated documentation files (the "Software"), to deal in the Software without restriction,
8
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
10
* subject to the following conditions:
11
*
12
* The above copyright notice and this permission notice shall be included in all copies or substantial
13
* portions of the Software.
14
*
15
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
16
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
18
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
*
20
*/
26
#ifndef LCD_IMAGE_H
27
#define LCD_IMAGE_H
28
29
#include <stdint.h>
30
#include <stdbool.h>
31
32
typedef
struct
LCD_image_t
LCD_image_t
;
33
38
struct
LCD_image_t
39
{
40
const
uint16_t
width
;
41
const
uint16_t
height
;
47
const
uint8_t *
pixels
;
48
};
49
60
bool
lcd_image_get_pixel
(
const
LCD_image_t
*
const
image,
const
uint16_t x,
const
uint16_t y, uint16_t *
const
pixelOut);
61
62
#endif
/* LCD_IMAGE_H */
lcd_image_get_pixel
bool lcd_image_get_pixel(const LCD_image_t *const image, const uint16_t x, const uint16_t y, uint16_t *const pixelOut)
Gets pixel (color value) from specific position of the image.
Definition:
lcd_image.c:28
LCD_image_t
Describes properties of the image to be drawn on LCD display.
Definition:
lcd_image.h:39
LCD_image_t::height
const uint16_t height
Definition:
lcd_image.h:41
LCD_image_t::width
const uint16_t width
Definition:
lcd_image.h:40
LCD_image_t::pixels
const uint8_t * pixels
Definition:
lcd_image.h:47
include
lcd_image.h
Generated by
1.9.5