SSD1306 I2C Display Driver
1.2.1
This library is developed to control SSD1306 I2C 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
24
void
SPRITE::setPos
(uint8_t x, uint8_t y)
25
{
26
this->x =
x
;
27
this->y =
y
;
28
}
29
30
31
void
SPRITE::draw
()
32
{
33
ssd1306_drawSprite
(
this
);
34
}
35
36
void
SPRITE::eraseTrace
()
37
{
38
ssd1306_eraseTrace
(
this
);
39
}
40
41
void
SPRITE::erase
()
42
{
43
ssd1306_eraseSprite
(
this
);
44
}
ssd1306.h
SPRITE::eraseTrace
void eraseTrace()
Definition:
nano_gfx_types.cpp:36
SPRITE::erase
void erase()
Definition:
nano_gfx_types.cpp:41
SPRITE::draw
void draw()
Definition:
nano_gfx_types.cpp:31
SPRITE::setPos
void setPos(uint8_t x, uint8_t y)
Definition:
nano_gfx_types.cpp:24
nano_gfx_types.h
SPRITE::y
uint8_t y
draw position Y on the screen
Definition:
nano_gfx_types.h:66
SPRITE::x
uint8_t x
draw position X on the screen
Definition:
nano_gfx_types.h:64
ssd1306_drawSprite
void ssd1306_drawSprite(SPRITE *sprite)
Definition:
ssd1306.cpp:309
ssd1306_eraseTrace
void ssd1306_eraseTrace(SPRITE *sprite)
Definition:
ssd1306.cpp:362
ssd1306_eraseSprite
void ssd1306_eraseSprite(SPRITE *sprite)
Definition:
ssd1306.cpp:338
Generated by
1.8.12