SSD1306 I2C Display Driver  1.1.0
This library is developed to control SSD1306 I2C OLED Display
nano_gfx_types.cpp
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 "nano_gfx_types.h"
21 #include "ssd1306.h"
22 
23 
24 void SPRITE::setPos(uint8_t x, uint8_t y)
25 {
26  this->x = x;
27  this->y = y;
28 }
29 
30 
32 {
33  ssd1306_drawSprite(this);
34 }
35 
37 {
38  ssd1306_eraseTrace(this);
39 }
40 
42 {
43  ssd1306_eraseSprite(this);
44 }
void eraseTrace()
void erase()
void draw()
void setPos(uint8_t x, uint8_t y)
uint8_t y
draw position Y on the screen
uint8_t x
draw position X on the screen
void ssd1306_drawSprite(SPRITE *sprite)
Definition: ssd1306.cpp:297
void ssd1306_eraseTrace(SPRITE *sprite)
Definition: ssd1306.cpp:350
void ssd1306_eraseSprite(SPRITE *sprite)
Definition: ssd1306.cpp:326