Skip to content

Commit 85fa4d2

Browse files
committed
Update copyright headers
1 parent 49037cb commit 85fa4d2

File tree

17 files changed

+132
-73
lines changed

17 files changed

+132
-73
lines changed

OLEDDisplay.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#include "OLEDDisplay.h"
@@ -742,21 +745,21 @@ void OLEDDisplay::sendInitCommands(void) {
742745
sendCommand(SEGREMAP);
743746
sendCommand(COMSCANINC);
744747
sendCommand(SETCOMPINS);
745-
748+
746749
if (geometry == GEOMETRY_128_64) {
747750
sendCommand(0x12);
748751
} else if (geometry == GEOMETRY_128_32) {
749752
sendCommand(0x02);
750753
}
751754

752755
sendCommand(SETCONTRAST);
753-
756+
754757
if (geometry == GEOMETRY_128_64) {
755758
sendCommand(0xCF);
756759
} else if (geometry == GEOMETRY_128_32) {
757760
sendCommand(0x8F);
758761
}
759-
762+
760763
sendCommand(SETPRECHARGE);
761764
sendCommand(0xF1);
762765
sendCommand(SETVCOMDETECT); //0xDB, (additionally needed to lower the contrast)

OLEDDisplay.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef OLEDDISPLAY_h
@@ -265,7 +268,7 @@ class OLEDDisplay : public Print {
265268
uint16_t displayWidth = 128;
266269
uint16_t displayHeight = 64;
267270
uint16_t displayBufferSize = 1024;
268-
271+
269272
// Set the correct height, width and buffer for the geometry
270273
void setGeometry(OLEDDISPLAY_GEOMETRY g);
271274

OLEDDisplayUi.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,6 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
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+
*
2529
*/
2630

2731
#include "OLEDDisplayUi.h"
@@ -251,7 +255,7 @@ void OLEDDisplayUi::drawFrame(){
251255
switch (this->state.frameState){
252256
case IN_TRANSITION: {
253257
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;
255259
switch(this->frameAnimationDirection){
256260
case SLIDE_LEFT:
257261
x = -this->display->width() * progress;
@@ -367,7 +371,7 @@ void OLEDDisplayUi::drawIndicator() {
367371
if (this->display->getHeight() < 64 && (this->indicatorPosition == RIGHT || this->indicatorPosition == LEFT)) {
368372
indicatorSpacing = 6;
369373
}
370-
374+
371375
uint16_t frameStartPos = (indicatorSpacing * frameCount / 2);
372376
const uint8_t *image;
373377

OLEDDisplayUi.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,6 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
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+
*
2529
*/
2630

2731
#ifndef OLEDDISPLAYUI_h

SH1106.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef SH1106_h

SH1106Brzo.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef SH1106Brzo_h
@@ -44,7 +47,7 @@ class SH1106Brzo : public OLEDDisplay {
4447
uint8_t _scl;
4548

4649
public:
47-
SH1106Brzo(uint8_t _address, uint8_t _sda, uint8_t _scl, OLEDDISPLAY_GEOMETRY g = GEOMETRY_128_64) {
50+
SH1106Brzo(uint8_t _address, uint8_t _sda, uint8_t _scl, OLEDDISPLAY_GEOMETRY g = GEOMETRY_128_64) {
4851
setGeometry(g);
4952

5053
this->_address = _address;

SH1106Spi.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef SH1106Spi_h

SH1106Wire.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef SH1106Wire_h

SSD1306.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef SSD1306_h

SSD1306Brzo.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* The MIT License (MIT)
33
*
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
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -22,7 +22,10 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
* SOFTWARE.
2424
*
25-
* Credits for parts of this code go to Mike Rankin. Thank you so much for sharing!
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+
*
2629
*/
2730

2831
#ifndef SSD1306Brzo_h

0 commit comments

Comments
 (0)