|
1 | 1 | /** |
2 | 2 | * The MIT License (MIT) |
3 | 3 | * |
4 | | - * Copyright (c) 2016 by Daniel Eichhorn |
5 | | - * Copyright (c) 2016 by Fabrice Weinberg |
| 4 | + * Copyright (c) 2018 by ThingPulse, Daniel Eichhorn |
| 5 | + * Copyright (c) 2018 by Fabrice Weinberg |
6 | 6 | * |
7 | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
8 | 8 | * of this software and associated documentation files (the "Software"), to deal |
|
22 | 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 | 23 | * SOFTWARE. |
24 | 24 | * |
| 25 | + * ThingPulse invests considerable time and money to develop these open source libraries. |
| 26 | + * Please support us by buying our products (and not the clones) from |
| 27 | + * https://thingpulse.com |
| 28 | + * |
25 | 29 | */ |
26 | 30 |
|
27 | 31 | #include "OLEDDisplayUi.h" |
@@ -251,7 +255,7 @@ void OLEDDisplayUi::drawFrame(){ |
251 | 255 | switch (this->state.frameState){ |
252 | 256 | case IN_TRANSITION: { |
253 | 257 | float progress = (float) this->state.ticksSinceLastStateSwitch / (float) this->ticksPerTransition; |
254 | | - int16_t x = 0, y = 0, x1 = 0, y1 = 0; |
| 258 | + int16_t x = 0, y = 0, x1 = 0, y1 = 0; |
255 | 259 | switch(this->frameAnimationDirection){ |
256 | 260 | case SLIDE_LEFT: |
257 | 261 | x = -this->display->width() * progress; |
@@ -367,7 +371,7 @@ void OLEDDisplayUi::drawIndicator() { |
367 | 371 | if (this->display->getHeight() < 64 && (this->indicatorPosition == RIGHT || this->indicatorPosition == LEFT)) { |
368 | 372 | indicatorSpacing = 6; |
369 | 373 | } |
370 | | - |
| 374 | + |
371 | 375 | uint16_t frameStartPos = (indicatorSpacing * frameCount / 2); |
372 | 376 | const uint8_t *image; |
373 | 377 |
|
|
0 commit comments