I don’t know how specific should I describe the issue as there is nothing unusual that I have done with my boards other than uploading some basic Arduino code to show some text on an 1.3" oled display (see below my complete code).
I have found some other people complaining about a similar issue: e.g.
As I said, the first board dying didn’t bother me, thinking I may have (or not!) touched the pins with a metal object laying around and shorted some pins, so I used a second board and then after few hours (another code for using Accelerometer) it happed again with the new board!
Do you have any guide how to test my boards and if they are rescuable? (shorting the reset pins on the board with a tweezer didn’t help as my pc is not recognizing the board at all)
/**************************************************************************
This is an example for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
This example is for a 128x32 pixel display using I2C to communicate
3 pins are required to interface (two I2C and one reset).
Adafruit invests time and resources providing this open
source code, please support Adafruit and open-source
hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries,
with contributions from the open source community.
BSD license, check license.txt for more information
All text above, and the splash screen below must be
included in any redistribution.
**************************************************************************/
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "Fonts/FreeMono9pt7b.h"
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3D ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
char message[]="Don'tpygforget about the exam";
int x, minX;
void setup(){
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.setFont(&FreeMono9pt7b);
display.setTextSize(2);
display.setTextColor(WHITE);
display.setTextWrap(false);
x = display.width();
minX = -27 * strlen(message); // 12 = 6 pixels/character * text size 2
display.display();
}
void loop(){
display.clearDisplay();
display.setCursor(x,24);
display.print(message);
display.display();
x=x-2; // scroll speed, make more positive to slow down the scroll
if(x < minX) x= display.width();
}```