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
avr
spi_usi.h
Go to the documentation of this file.
1
/*
2
MIT License
3
4
Copyright (c) 2018-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
*/
24
29
#pragma once
30
31
#if defined(CONFIG_USI_SPI_AVAILABLE) && defined(CONFIG_USI_SPI_ENABLE)
32
41
class
UsiSpi
42
{
43
public
:
52
UsiSpi
(int8_t csPin, int8_t dcPin);
53
54
~
UsiSpi
();
55
59
void
begin
();
60
64
void
end
();
65
69
void
start
();
70
74
void
stop
();
75
80
void
send
(uint8_t data);
81
91
void
sendBuffer
(
const
uint8_t *buffer, uint16_t size);
92
93
private
:
94
int8_t m_cs;
95
int8_t m_dc;
96
};
97
98
#endif
99
UsiSpi::end
void end()
UsiSpi::begin
void begin()
UsiSpi::send
void send(uint8_t data)
UsiSpi
Definition:
spi_usi.h:41
UsiSpi::sendBuffer
void sendBuffer(const uint8_t *buffer, uint16_t size)
Sends bytes to SSD1306 device.
UsiSpi::stop
void stop()
UsiSpi::UsiSpi
UsiSpi(int8_t csPin, int8_t dcPin)
UsiSpi::start
void start()
Generated by
1.8.13