SSD1306 I2C Display Driver
1.2.1
This library is developed to control SSD1306 I2C OLED Display
src
ssd1306_spi_conf.h
1
/*
2
Copyright (C) 2017 Alexey Dynda
3
4
This file is part of SSD1306 library.
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef _SSD1306_SPI_CONF_H_
21
#define _SSD1306_SPI_CONF_H_
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
// Uncomment this block only, if you need to use "embedded" SPI on Atmega controllers
28
// #define SSD1306_EMBEDDED_SPI
29
30
#if defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
31
#ifndef SSD1306_EMBEDDED_SPI
32
35
#define SSD1306_EMBEDDED_SPI
36
#endif
37
#endif
38
39
#ifdef __cplusplus
40
}
41
#endif
42
43
#endif
Generated by
1.8.12