SSD1306 OLED display driver
1.3.5
This library is developed to control SSD1306 i2c/spi OLED display
src
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
29
void
SPRITE::draw
()
30
{
31
ssd1306_drawSprite
(
this
);
32
}
33
34
void
SPRITE::eraseTrace
()
35
{
36
ssd1306_eraseTrace
(
this
);
37
}
38
39
void
SPRITE::erase
()
40
{
41
ssd1306_eraseSprite
(
this
);
42
}
ssd1306.h
SPRITE::eraseTrace
void eraseTrace()
Definition:
nano_gfx_types.cpp:34
SPRITE::erase
void erase()
Definition:
nano_gfx_types.cpp:39
SPRITE::draw
void draw()
Definition:
nano_gfx_types.cpp:29
SPRITE::setPos
void setPos(uint8_t x, uint8_t y)
Definition:
nano_gfx_types.cpp:23
nano_gfx_types.h
SPRITE::y
uint8_t y
draw position Y on the screen
Definition:
nano_gfx_types.h:64
SPRITE::x
uint8_t x
draw position X on the screen
Definition:
nano_gfx_types.h:62
ssd1306_drawSprite
void ssd1306_drawSprite(SPRITE *sprite)
Definition:
ssd1306.cpp:341
ssd1306_eraseTrace
void ssd1306_eraseTrace(SPRITE *sprite)
Definition:
ssd1306.cpp:393
ssd1306_eraseSprite
void ssd1306_eraseSprite(SPRITE *sprite)
Definition:
ssd1306.cpp:369
Generated by
1.8.13