Skip to content

The library stop working after 5-7 min #6

Description

@konsmac

Hi!
I'm trying to use this library on Arduino nano.
I started with the text example that comes with the SH1106Lib library.
The only thing I changed, I created a variable char foo[] = {"375 Hello World"}; , and I'm printing this variable
Everything works fine for 5-7 min, and then the text gets partly printed on the display and the display stops updating.

The complete code is:
`/*

// config for softwareI2Cmaster lib
#define I2C_HARDWARE 1
#define I2C_TIMEOUT 10
#define I2C_MAXWAIT 10
#define I2C_PULLUP 1
#define I2C_FASTMODE 1
#define SDA_PORT PORTC
#define SDA_PIN 4 // = A4
#define SCL_PORT PORTC
#define SCL_PIN 5 // = A5

// config for tinyprint lib
#define TP_PRINTLINES 0
#define TP_FLASHSTRINGHELPER 1
#define TP_NUMBERS 0
#define TP_FLOAT 0
#define TP_WINDOWSLINEENDS 0

#include <SH1106Lib.h>
#include "glcdfont.h"

SH1106Lib display;

int notst = "345";

char foo[] = {"375 Hello World"};

void setup() {
display.initialize();
display.clearDisplay();

display.setFont(font, 5, 7);
display.setTextWrap(true);
display.setTextColor(WHITE, BLACK);

}

void loop() {
display.setCursor(0, 0);
display.print((foo));

delay(1000);
display.clearDisplay();

}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions