SSD1306 OLED display driver  1.3.1
This library is developed to control SSD1306 i2c/spi 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 void SPRITE::setPos(uint8_t x, uint8_t y)
24 {
25  this->x = x;
26  this->y = y;
27 }
28 
30 {
31  ssd1306_drawSprite(this);
32 }
33 
35 {
36  ssd1306_eraseTrace(this);
37 }
38 
40 {
41  ssd1306_eraseSprite(this);
42 }
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:265
void ssd1306_eraseTrace(SPRITE *sprite)
Definition: ssd1306.cpp:318
void ssd1306_eraseSprite(SPRITE *sprite)
Definition: ssd1306.cpp:294