Skip to content

Commit

Permalink
Merge pull request #209 from montoyamoraga/patch-1
Browse files Browse the repository at this point in the history
change format of binary numbers
  • Loading branch information
ladyada authored May 10, 2021
2 parents f75c56c + c141e79 commit 6bc9033
Show file tree
Hide file tree
Showing 7 changed files with 264 additions and 236 deletions.
32 changes: 16 additions & 16 deletions examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define LOGO_HEIGHT 16
#define LOGO_WIDTH 16
static const unsigned char PROGMEM logo_bmp[] =
{ B00000000, B11000000,
B00000001, B11000000,
B00000001, B11000000,
B00000011, B11100000,
B11110011, B11100000,
B11111110, B11111000,
B01111110, B11111111,
B00110011, B10011111,
B00011111, B11111100,
B00001101, B01110000,
B00011011, B10100000,
B00111111, B11100000,
B00111111, B11110000,
B01111100, B11110000,
B01110000, B01110000,
B00000000, B00110000 };
{ 0b00000000, 0b11000000,
0b00000001, 0b11000000,
0b00000001, 0b11000000,
0b00000011, 0b11100000,
0b11110011, 0b11100000,
0b11111110, 0b11111000,
0b01111110, 0b11111111,
0b00110011, 0b10011111,
0b00011111, 0b11111100,
0b00001101, 0b01110000,
0b00011011, 0b10100000,
0b00111111, 0b11100000,
0b00111111, 0b11110000,
0b01111100, 0b11110000,
0b01110000, 0b01110000,
0b00000000, 0b00110000 };

void setup() {
Serial.begin(9600);
Expand Down
32 changes: 16 additions & 16 deletions examples/ssd1306_128x32_spi/ssd1306_128x32_spi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
#define LOGO_HEIGHT 16
#define LOGO_WIDTH 16
static const unsigned char PROGMEM logo_bmp[] =
{ B00000000, B11000000,
B00000001, B11000000,
B00000001, B11000000,
B00000011, B11100000,
B11110011, B11100000,
B11111110, B11111000,
B01111110, B11111111,
B00110011, B10011111,
B00011111, B11111100,
B00001101, B01110000,
B00011011, B10100000,
B00111111, B11100000,
B00111111, B11110000,
B01111100, B11110000,
B01110000, B01110000,
B00000000, B00110000 };
{ 0b00000000, 0b11000000,
0b00000001, 0b11000000,
0b00000001, 0b11000000,
0b00000011, 0b11100000,
0b11110011, 0b11100000,
0b11111110, 0b11111000,
0b01111110, 0b11111111,
0b00110011, 0b10011111,
0b00011111, 0b11111100,
0b00001101, 0b01110000,
0b00011011, 0b10100000,
0b00111111, 0b11100000,
0b00111111, 0b11110000,
0b01111100, 0b11110000,
0b01110000, 0b01110000,
0b00000000, 0b00110000 };

void setup() {
Serial.begin(9600);
Expand Down
32 changes: 16 additions & 16 deletions examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define LOGO_HEIGHT 16
#define LOGO_WIDTH 16
static const unsigned char PROGMEM logo_bmp[] =
{ B00000000, B11000000,
B00000001, B11000000,
B00000001, B11000000,
B00000011, B11100000,
B11110011, B11100000,
B11111110, B11111000,
B01111110, B11111111,
B00110011, B10011111,
B00011111, B11111100,
B00001101, B01110000,
B00011011, B10100000,
B00111111, B11100000,
B00111111, B11110000,
B01111100, B11110000,
B01110000, B01110000,
B00000000, B00110000 };
{ 0b00000000, 0b11000000,
0b00000001, 0b11000000,
0b00000001, 0b11000000,
0b00000011, 0b11100000,
0b11110011, 0b11100000,
0b11111110, 0b11111000,
0b01111110, 0b11111111,
0b00110011, 0b10011111,
0b00011111, 0b11111100,
0b00001101, 0b01110000,
0b00011011, 0b10100000,
0b00111111, 0b11100000,
0b00111111, 0b11110000,
0b01111100, 0b11110000,
0b01110000, 0b01110000,
0b00000000, 0b00110000 };

void setup() {
Serial.begin(9600);
Expand Down
32 changes: 16 additions & 16 deletions examples/ssd1306_128x64_spi/ssd1306_128x64_spi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
#define LOGO_HEIGHT 16
#define LOGO_WIDTH 16
static const unsigned char PROGMEM logo_bmp[] =
{ B00000000, B11000000,
B00000001, B11000000,
B00000001, B11000000,
B00000011, B11100000,
B11110011, B11100000,
B11111110, B11111000,
B01111110, B11111111,
B00110011, B10011111,
B00011111, B11111100,
B00001101, B01110000,
B00011011, B10100000,
B00111111, B11100000,
B00111111, B11110000,
B01111100, B11110000,
B01110000, B01110000,
B00000000, B00110000 };
{ 0b00000000, 0b11000000,
0b00000001, 0b11000000,
0b00000001, 0b11000000,
0b00000011, 0b11100000,
0b11110011, 0b11100000,
0b11111110, 0b11111000,
0b01111110, 0b11111111,
0b00110011, 0b10011111,
0b00011111, 0b11111100,
0b00001101, 0b01110000,
0b00011011, 0b10100000,
0b00111111, 0b11100000,
0b00111111, 0b11110000,
0b01111100, 0b11110000,
0b01110000, 0b01110000,
0b00000000, 0b00110000 };

void setup() {
Serial.begin(9600);
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit SSD1306
version=2.4.4
version=2.4.5
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=SSD1306 oled driver library for monochrome 128x64 and 128x32 displays
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main(fn, id):
if x == 0:
print(" ", end='')
if x % 8 == 0:
print("B", end='')
print("0b", end='')

bit = '0'
if x < image.width and image.getpixel((x,y)) != 0:
Expand Down
Loading

0 comments on commit 6bc9033

Please sign in to comment.