LCDGFX LCD display driver
1.1.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
interface.h
Go to the documentation of this file.
1
/*
2
MIT License
3
4
Copyright (c) 2017-2020, Alexey Dynda
5
6
Permission is hereby granted, free of charge, to any person obtaining a copy
7
of this software and associated documentation files (the "Software"), to deal
8
in the Software without restriction, including without limitation the rights
9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
copies of the Software, and to permit persons to whom the Software is
11
furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in all
14
copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
SOFTWARE.
23
*/
28
#ifndef _LCD_HAL_INTERFACE_H_
29
#define _LCD_HAL_INTERFACE_H_
30
31
#include <stdint.h>
32
33
#ifdef __cplusplus
34
extern
"C"
35
{
36
#endif
37
43
typedef
struct
44
{
49
int8_t
busId
;
50
54
uint8_t
addr
;
55
60
int8_t
scl
;
61
66
int8_t
sda
;
67
72
uint32_t
frequency
;
73
}
SPlatformI2cConfig
;
74
80
typedef
struct
81
{
86
int8_t
busId
;
87
93
union
94
{
95
int8_t cs;
96
int8_t devId;
97
};
98
102
int8_t
dc
;
103
108
uint32_t
frequency
;
109
114
int8_t
scl
;
// clk
115
120
int8_t
sda
;
// mosi
121
}
SPlatformSpiConfig
;
122
123
#ifndef DOXYGEN_SHOULD_SKIP_THIS
124
void
ssd1306_resetController2
(int8_t rstPin, uint8_t delayMs);
125
#endif
126
127
#ifdef __cplusplus
128
}
129
#endif
130
131
// ----------------------------------------------------------------------------
132
#endif
SPlatformSpiConfig
Definition:
interface.h:80
SPlatformSpiConfig::scl
int8_t scl
Definition:
interface.h:114
SPlatformI2cConfig::busId
int8_t busId
Definition:
interface.h:49
SPlatformI2cConfig
Definition:
interface.h:43
SPlatformI2cConfig::sda
int8_t sda
Definition:
interface.h:66
ssd1306_resetController2
void ssd1306_resetController2(int8_t rstPin, uint8_t delayMs)
Does hardware reset for oled controller.
SPlatformSpiConfig::dc
int8_t dc
Definition:
interface.h:102
SPlatformI2cConfig::addr
uint8_t addr
Definition:
interface.h:54
SPlatformI2cConfig::scl
int8_t scl
Definition:
interface.h:60
SPlatformSpiConfig::frequency
uint32_t frequency
Definition:
interface.h:108
SPlatformI2cConfig::frequency
uint32_t frequency
Definition:
interface.h:72
SPlatformSpiConfig::busId
int8_t busId
Definition:
interface.h:86
SPlatformSpiConfig::sda
int8_t sda
Definition:
interface.h:120
src
lcd_hal
interface.h
Generated by
1.8.13