You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
`/*
SH1106Lib\Examples\Text.ino
Example sketch demonstrating how use the lib to display text
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();
}
void loop() {
display.setCursor(0, 0);
display.print((foo));
}`
The text was updated successfully, but these errors were encountered: