LCDGFX LCD display driver
1.0.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
lcd_hal
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
#endif
36
42
typedef
struct
43
{
48
int8_t
busId
;
49
53
uint8_t
addr
;
54
59
int8_t
scl
;
60
65
int8_t
sda
;
66
71
uint32_t
frequency
;
72
}
SPlatformI2cConfig
;
73
79
typedef
struct
80
{
85
int8_t
busId
;
86
92
union
93
{
94
int8_t cs;
95
int8_t devId;
96
};
97
101
int8_t
dc
;
102
107
uint32_t
frequency
;
108
113
int8_t
scl
;
// clk
114
119
int8_t
sda
;
// mosi
120
}
SPlatformSpiConfig
;
121
122
#ifndef DOXYGEN_SHOULD_SKIP_THIS
123
void
ssd1306_resetController2
(int8_t rstPin, uint8_t delayMs);
124
#endif
125
126
#ifdef __cplusplus
127
}
128
#endif
129
130
// ----------------------------------------------------------------------------
131
#endif
SPlatformSpiConfig
Definition:
interface.h:79
SPlatformSpiConfig::scl
int8_t scl
Definition:
interface.h:113
SPlatformI2cConfig::busId
int8_t busId
Definition:
interface.h:48
SPlatformI2cConfig
Definition:
interface.h:42
SPlatformI2cConfig::sda
int8_t sda
Definition:
interface.h:65
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:101
SPlatformI2cConfig::addr
uint8_t addr
Definition:
interface.h:53
SPlatformI2cConfig::scl
int8_t scl
Definition:
interface.h:59
SPlatformSpiConfig::frequency
uint32_t frequency
Definition:
interface.h:107
SPlatformI2cConfig::frequency
uint32_t frequency
Definition:
interface.h:71
SPlatformSpiConfig::busId
int8_t busId
Definition:
interface.h:85
SPlatformSpiConfig::sda
int8_t sda
Definition:
interface.h:119
Generated by
1.8.13