Skip to content

Commit 6bc9033

Browse files
authored
Merge pull request adafruit#209 from montoyamoraga/patch-1
change format of binary numbers
2 parents f75c56c + c141e79 commit 6bc9033

File tree

7 files changed

+264
-236
lines changed

7 files changed

+264
-236
lines changed

examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
4040
#define LOGO_HEIGHT 16
4141
#define LOGO_WIDTH 16
4242
static const unsigned char PROGMEM logo_bmp[] =
43-
{ B00000000, B11000000,
44-
B00000001, B11000000,
45-
B00000001, B11000000,
46-
B00000011, B11100000,
47-
B11110011, B11100000,
48-
B11111110, B11111000,
49-
B01111110, B11111111,
50-
B00110011, B10011111,
51-
B00011111, B11111100,
52-
B00001101, B01110000,
53-
B00011011, B10100000,
54-
B00111111, B11100000,
55-
B00111111, B11110000,
56-
B01111100, B11110000,
57-
B01110000, B01110000,
58-
B00000000, B00110000 };
43+
{ 0b00000000, 0b11000000,
44+
0b00000001, 0b11000000,
45+
0b00000001, 0b11000000,
46+
0b00000011, 0b11100000,
47+
0b11110011, 0b11100000,
48+
0b11111110, 0b11111000,
49+
0b01111110, 0b11111111,
50+
0b00110011, 0b10011111,
51+
0b00011111, 0b11111100,
52+
0b00001101, 0b01110000,
53+
0b00011011, 0b10100000,
54+
0b00111111, 0b11100000,
55+
0b00111111, 0b11110000,
56+
0b01111100, 0b11110000,
57+
0b01110000, 0b01110000,
58+
0b00000000, 0b00110000 };
5959

6060
void setup() {
6161
Serial.begin(9600);

examples/ssd1306_128x32_spi/ssd1306_128x32_spi.ino

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
4848
#define LOGO_HEIGHT 16
4949
#define LOGO_WIDTH 16
5050
static const unsigned char PROGMEM logo_bmp[] =
51-
{ B00000000, B11000000,
52-
B00000001, B11000000,
53-
B00000001, B11000000,
54-
B00000011, B11100000,
55-
B11110011, B11100000,
56-
B11111110, B11111000,
57-
B01111110, B11111111,
58-
B00110011, B10011111,
59-
B00011111, B11111100,
60-
B00001101, B01110000,
61-
B00011011, B10100000,
62-
B00111111, B11100000,
63-
B00111111, B11110000,
64-
B01111100, B11110000,
65-
B01110000, B01110000,
66-
B00000000, B00110000 };
51+
{ 0b00000000, 0b11000000,
52+
0b00000001, 0b11000000,
53+
0b00000001, 0b11000000,
54+
0b00000011, 0b11100000,
55+
0b11110011, 0b11100000,
56+
0b11111110, 0b11111000,
57+
0b01111110, 0b11111111,
58+
0b00110011, 0b10011111,
59+
0b00011111, 0b11111100,
60+
0b00001101, 0b01110000,
61+
0b00011011, 0b10100000,
62+
0b00111111, 0b11100000,
63+
0b00111111, 0b11110000,
64+
0b01111100, 0b11110000,
65+
0b01110000, 0b01110000,
66+
0b00000000, 0b00110000 };
6767

6868
void setup() {
6969
Serial.begin(9600);

examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
4040
#define LOGO_HEIGHT 16
4141
#define LOGO_WIDTH 16
4242
static const unsigned char PROGMEM logo_bmp[] =
43-
{ B00000000, B11000000,
44-
B00000001, B11000000,
45-
B00000001, B11000000,
46-
B00000011, B11100000,
47-
B11110011, B11100000,
48-
B11111110, B11111000,
49-
B01111110, B11111111,
50-
B00110011, B10011111,
51-
B00011111, B11111100,
52-
B00001101, B01110000,
53-
B00011011, B10100000,
54-
B00111111, B11100000,
55-
B00111111, B11110000,
56-
B01111100, B11110000,
57-
B01110000, B01110000,
58-
B00000000, B00110000 };
43+
{ 0b00000000, 0b11000000,
44+
0b00000001, 0b11000000,
45+
0b00000001, 0b11000000,
46+
0b00000011, 0b11100000,
47+
0b11110011, 0b11100000,
48+
0b11111110, 0b11111000,
49+
0b01111110, 0b11111111,
50+
0b00110011, 0b10011111,
51+
0b00011111, 0b11111100,
52+
0b00001101, 0b01110000,
53+
0b00011011, 0b10100000,
54+
0b00111111, 0b11100000,
55+
0b00111111, 0b11110000,
56+
0b01111100, 0b11110000,
57+
0b01110000, 0b01110000,
58+
0b00000000, 0b00110000 };
5959

6060
void setup() {
6161
Serial.begin(9600);

examples/ssd1306_128x64_spi/ssd1306_128x64_spi.ino

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
4848
#define LOGO_HEIGHT 16
4949
#define LOGO_WIDTH 16
5050
static const unsigned char PROGMEM logo_bmp[] =
51-
{ B00000000, B11000000,
52-
B00000001, B11000000,
53-
B00000001, B11000000,
54-
B00000011, B11100000,
55-
B11110011, B11100000,
56-
B11111110, B11111000,
57-
B01111110, B11111111,
58-
B00110011, B10011111,
59-
B00011111, B11111100,
60-
B00001101, B01110000,
61-
B00011011, B10100000,
62-
B00111111, B11100000,
63-
B00111111, B11110000,
64-
B01111100, B11110000,
65-
B01110000, B01110000,
66-
B00000000, B00110000 };
51+
{ 0b00000000, 0b11000000,
52+
0b00000001, 0b11000000,
53+
0b00000001, 0b11000000,
54+
0b00000011, 0b11100000,
55+
0b11110011, 0b11100000,
56+
0b11111110, 0b11111000,
57+
0b01111110, 0b11111111,
58+
0b00110011, 0b10011111,
59+
0b00011111, 0b11111100,
60+
0b00001101, 0b01110000,
61+
0b00011011, 0b10100000,
62+
0b00111111, 0b11100000,
63+
0b00111111, 0b11110000,
64+
0b01111100, 0b11110000,
65+
0b01110000, 0b01110000,
66+
0b00000000, 0b00110000 };
6767

6868
void setup() {
6969
Serial.begin(9600);

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit SSD1306
2-
version=2.4.4
2+
version=2.4.5
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=SSD1306 oled driver library for monochrome 128x64 and 128x32 displays

scripts/make_splash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def main(fn, id):
1717
if x == 0:
1818
print(" ", end='')
1919
if x % 8 == 0:
20-
print("B", end='')
20+
print("0b", end='')
2121

2222
bit = '0'
2323
if x < image.width and image.getpixel((x,y)) != 0:

0 commit comments

Comments
 (0)