Skip to content

Commit cdb3585

Browse files
committed
Replace byte with uint8_t
Fixes #383
1 parent ba4d616 commit cdb3585

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/SH1106Brzo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class SH1106Brzo : public OLEDDisplay {
9090
// holdes true for all values of pos
9191
if (minBoundY == UINT8_MAX) return;
9292

93-
byte k = 0;
93+
uint8_t k = 0;
9494
uint8_t sendBuffer[17];
9595
sendBuffer[0] = 0x40;
9696

src/SH1106Wire.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ class SH1106Wire : public OLEDDisplay {
5454
* Create and initialize the Display using Wire library
5555
*
5656
* Beware for retro-compatibility default values are provided for all parameters see below.
57-
* Please note that if you don't wan't SD1306Wire to initialize and change frequency speed ot need to
57+
* Please note that if you don't wan't SD1306Wire to initialize and change frequency speed ot need to
5858
* ensure -1 value are specified for all 3 parameters. This can be usefull to control TwoWire with multiple
5959
* device on the same bus.
60-
*
60+
*
6161
* @param _address I2C Display address
6262
* @param _sda I2C SDA pin number, default to -1 to skip Wire begin call
6363
* @param _scl I2C SCL pin number, default to -1 (only SDA = -1 is considered to skip Wire begin call)
@@ -130,7 +130,7 @@ class SH1106Wire : public OLEDDisplay {
130130
uint8_t minBoundXp2H = (minBoundX + 2) & 0x0F;
131131
uint8_t minBoundXp2L = 0x10 | ((minBoundX + 2) >> 4 );
132132

133-
byte k = 0;
133+
uint8_t k = 0;
134134
for (y = minBoundY; y <= maxBoundY; y++) {
135135
sendCommand(0xB0 + y);
136136
sendCommand(minBoundXp2H);

src/SSD1306Brzo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class SSD1306Brzo : public OLEDDisplay {
101101
sendCommand(minBoundY);
102102
sendCommand(maxBoundY);
103103

104-
byte k = 0;
104+
uint8_t k = 0;
105105

106106
int buflen = ( this->width() / 8 ) + 1;
107107

src/SSD1306Wire.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ class SSD1306Wire : public OLEDDisplay {
6161
* Create and initialize the Display using Wire library
6262
*
6363
* Beware for retro-compatibility default values are provided for all parameters see below.
64-
* Please note that if you don't wan't SD1306Wire to initialize and change frequency speed ot need to
64+
* Please note that if you don't wan't SD1306Wire to initialize and change frequency speed ot need to
6565
* ensure -1 value are specified for all 3 parameters. This can be usefull to control TwoWire with multiple
6666
* device on the same bus.
67-
*
67+
*
6868
* @param _address I2C Display address
6969
* @param _sda I2C SDA pin number, default to -1 to skip Wire begin call
7070
* @param _scl I2C SCL pin number, default to -1 (only SDA = -1 is considered to skip Wire begin call)
@@ -142,7 +142,7 @@ class SSD1306Wire : public OLEDDisplay {
142142
sendCommand(minBoundY);
143143
sendCommand(maxBoundY);
144144

145-
byte k = 0;
145+
uint8_t k = 0;
146146
for (y = minBoundY; y <= maxBoundY; y++) {
147147
for (x = minBoundX; x <= maxBoundX; x++) {
148148
if (k == 0) {

0 commit comments

Comments
 (0)