Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

128x32 OLED (Featherwing/SSD1306) distorted/partially workin
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

128x32 OLED (Featherwing/SSD1306) distorted/partially workin

by rgiese on Thu Aug 27, 2020 12:33 pm

128x32 OLED Featherwing connected to a Particle Argon over I2C, using Adafruit_SSD1306 and dependent libraries through git submodules (snaps from master from roughly last weekend). The display seems to only function in the upper third, the middle third is static (unchanging) pixel noise, and the bottom third is dark - see video at https://photos.app.goo.gl/q2zZvtMAkZBxXPe67.

Bad device? Bad code? It seems like a pretty odd failure mode - maybe the flex connecting the display to the board is wonky?

Code for what the video captures:

Code: Select all | TOGGLE FULL SIZE
Adafruit_SSD1306 g_Display = Adafruit_SSD1306(128, 32, &Wire);

    g_Display.begin(SSD1306_SWITCHCAPVCC, 0x3C);  // Generate display voltage from 3.3V internally, 0x3C = I2C address
    g_Display.display(); // Display logo

    delay(2000);

    g_Display.clearDisplay();
    g_Display.display();

    delay(2000);

    g_Display.invertDisplay(true);
    delay(2000);

    g_Display.invertDisplay(false);

    g_Display.setTextSize(1);
    g_Display.setTextColor(SSD1306_WHITE);
    g_Display.setCursor(0, 0);
    g_Display.println("Hello world!");
    g_Display.setCursor(0, 0);
    g_Display.display();


Thanks!

rgiese
 
Posts: 3
Joined: Thu Aug 27, 2020 12:24 pm

Re: 128x32 OLED (Featherwing/SSD1306) distorted/partially wo

by rgiese on Thu Aug 27, 2020 4:26 pm

Ah, this actually _is_ a software problem. If I use the ancient fork of the Adafruit SSD_1306 library that's on the Particle web IDE (from the late https://github.com/mpechner/adafruit_ssd1306) then the logo displays correctly (and I was wrong about the lower "third" of the screen - there are no pixels to be had there - my bad.)

Time to debug.

rgiese
 
Posts: 3
Joined: Thu Aug 27, 2020 12:24 pm

Re: 128x32 OLED (Featherwing/SSD1306) distorted/partially wo

by adafruit2 on Thu Aug 27, 2020 4:51 pm

can you try posting in the particle forum? cause we have thousands of arduino ide users who have had no issues, so it seems to be particle related. perhaps they can reproduce?

adafruit2
Site Admin
 
Posts: 19406
Joined: Fri Mar 11, 2005 7:36 pm

Re: 128x32 OLED (Featherwing/SSD1306) distorted/partially wo

by rgiese on Thu Aug 27, 2020 7:12 pm


rgiese
 
Posts: 3
Joined: Thu Aug 27, 2020 12:24 pm

Re: 128x32 OLED (Featherwing/SSD1306) distorted/partially wo

by adafruit2 on Sun Aug 30, 2020 12:46 pm

thanks!

adafruit2
Site Admin
 
Posts: 19406
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.