Skip to content

Commit

Permalink
Merge pull request #24 from BenBergman/artifact-cleanup
Browse files Browse the repository at this point in the history
Remove pixel artifacts at start of snowing icon animation
  • Loading branch information
microbuilder committed Jan 27, 2016
2 parents a267c43 + d2ea68c commit 893cb93
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/ssd1306_128x32_i2c/ssd1306_128x32_i2c.ino
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ void setup() {
display.print("0x"); display.println(0xDEADBEEF, HEX);
display.display();
delay(2000);
display.clearDisplay();

// miniature bitmap display
display.clearDisplay();
display.drawBitmap(30, 16, logo16_glcd_bmp, 16, 16, 1);
display.display();
delay(1);
Expand All @@ -160,6 +160,7 @@ void setup() {
delay(1000);
display.invertDisplay(false);
delay(1000);
display.clearDisplay();

// draw a bitmap icon and 'animate' movement
testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_HEIGHT, LOGO16_GLCD_WIDTH);
Expand Down
3 changes: 2 additions & 1 deletion examples/ssd1306_128x32_spi/ssd1306_128x32_spi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ void setup() {
display.print("0x"); display.println(0xDEADBEEF, HEX);
display.display();
delay(2000);
display.clearDisplay();

// miniature bitmap display
display.clearDisplay();
display.drawBitmap(30, 16, logo16_glcd_bmp, 16, 16, 1);
display.display();

Expand All @@ -170,6 +170,7 @@ void setup() {
delay(1000);
display.invertDisplay(false);
delay(1000);
display.clearDisplay();

// draw a bitmap icon and 'animate' movement
testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_HEIGHT, LOGO16_GLCD_WIDTH);
Expand Down
3 changes: 2 additions & 1 deletion examples/ssd1306_128x64_i2c/ssd1306_128x64_i2c.ino
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ void setup() {
display.print("0x"); display.println(0xDEADBEEF, HEX);
display.display();
delay(2000);
display.clearDisplay();

// miniature bitmap display
display.clearDisplay();
display.drawBitmap(30, 16, logo16_glcd_bmp, 16, 16, 1);
display.display();
delay(1);
Expand All @@ -160,6 +160,7 @@ void setup() {
delay(1000);
display.invertDisplay(false);
delay(1000);
display.clearDisplay();

// draw a bitmap icon and 'animate' movement
testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_HEIGHT, LOGO16_GLCD_WIDTH);
Expand Down
7 changes: 4 additions & 3 deletions examples/ssd1306_128x64_spi/ssd1306_128x64_spi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static const unsigned char PROGMEM logo16_glcd_bmp[] =

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

// by default, we'll generate the high voltage from the 3.3v line internally! (neat!)
display.begin(SSD1306_SWITCHCAPVCC);
// init done
Expand Down Expand Up @@ -146,7 +146,7 @@ void setup() {
testscrolltext();
delay(2000);
display.clearDisplay();

// text display tests
display.setTextSize(1);
display.setTextColor(WHITE);
Expand All @@ -159,9 +159,9 @@ void setup() {
display.print("0x"); display.println(0xDEADBEEF, HEX);
display.display();
delay(2000);
display.clearDisplay();

// miniature bitmap display
display.clearDisplay();
display.drawBitmap(30, 16, logo16_glcd_bmp, 16, 16, 1);
display.display();

Expand All @@ -170,6 +170,7 @@ void setup() {
delay(1000);
display.invertDisplay(false);
delay(1000);
display.clearDisplay();

// draw a bitmap icon and 'animate' movement
testdrawbitmap(logo16_glcd_bmp, LOGO16_GLCD_HEIGHT, LOGO16_GLCD_WIDTH);
Expand Down

0 comments on commit 893cb93

Please sign in to comment.