SSD1306 OLED display driver  1.3.2
This library is developed to control SSD1306 i2c/spi OLED display
ssd1306_i2c_common.c
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 #include "ssd1306_i2c.h"
21 #include "intf/ssd1306_interface.h"
22 #include "ssd1306_i2c_wire.h"
23 #include "ssd1306_i2c_embedded.h"
24 
26 {
28  ssd1306_sendByte(0x00);
29 }
30 
32 {
34  ssd1306_sendByte(0x40);
35 }
36 
37 void ssd1306_i2cInitEx(int8_t scl, int8_t sda, int8_t sa)
38 {
39 #ifdef SSD1306_WIRE_SUPPORTED
40  ssd1306_i2cConfigure_Wire(scl, sda);
42 #elif defined(SSD1306_I2C_SW_SUPPORTED)
43  ssd1306_i2cInit_Embedded(scl, sda, sa);
44 #endif
45 }
46 
48 {
50 }
void ssd1306_i2cInit_Embedded(int8_t scl, int8_t sda, uint8_t sa)
void(* ssd1306_sendByte)(uint8_t data)
void ssd1306_i2cCommandStart()
void ssd1306_i2cInitEx(int8_t scl, int8_t sda, int8_t sa)
void ssd1306_i2cDataStart()
void ssd1306_i2cConfigure_Wire(int8_t scl, int8_t sda)
void(* ssd1306_startTransmission)()
void ssd1306_i2cInit()
void ssd1306_i2cInit_Wire(uint8_t sa)
#define SSD1306_SA