SSD1306 OLED display driver  1.3.5
This library is developed to control SSD1306 i2c/spi OLED display
ssd1306_interface.c
1 /*
2  Copyright (C) 2016-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_interface.h"
21 
22 #include "lcd/ssd1306_commands.h"
23 #include "lcd/lcd_common.h"
24 #include <stddef.h>
25 
26 void (*ssd1306_startTransmission)() = NULL;
27 void (*ssd1306_endTransmission)() = NULL;
28 void (*ssd1306_sendByte)(uint8_t data) = NULL;
29 void (*ssd1306_commandStart)() = NULL;
30 void (*ssd1306_dataStart)() = NULL;
31 
32 void (*ssd1306_setRamBlock)(uint8_t x, uint8_t y, uint8_t w) = NULL;
33 void (*ssd1306_nextRamPage)() = NULL;
34 void (*ssd1306_setRamPos)(uint8_t x, uint8_t y) = NULL;
35 
36 void ssd1306_sendCommand(uint8_t command)
37 {
39  ssd1306_sendByte(command);
41 }
42 
43 void ssd1306_sendData(uint8_t data)
44 {
46  ssd1306_sendByte( data );
48 }
void(* ssd1306_sendByte)(uint8_t data)
void(* ssd1306_dataStart)()
void(* ssd1306_endTransmission)()
void(* ssd1306_nextRamPage)()
void ssd1306_sendData(uint8_t data)
void ssd1306_sendCommand(uint8_t command)
void(* ssd1306_startTransmission)()
void(* ssd1306_commandStart)()
void(* ssd1306_setRamBlock)(uint8_t x, uint8_t y, uint8_t w)
void(* ssd1306_setRamPos)(uint8_t x, uint8_t y)