New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oled.println(); not going in new line on display #87
Comments
Might be that you are printing characters not in the font. This will cause print to fail. Also long lines are truncated. |
Thanks for your answer, but there is an example of code together with open
cause. Can you point me to program line where are you see that case you
mention. Once again thanks for your help.
Damir
…On Thu, Mar 3, 2022, 2:47 PM Bill Greiman ***@***.***> wrote:
Might be that you are printing characters no in the font. This will cause
print to fial.
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB7X4YXGIFA26FUE2TJ5E3U6C7GDANCNFSM5P2CWQJA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Output is the UFT8 two byte character:
SSD1306Ascii only supports ASCII characters - note the name has Ascii for a reason. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
arduino IDE 1.8.19
ESP32 + OLED128x64
// Test for minimum program size.
#include <Wire.h>
#include "SSD1306Ascii.h"
#include "SSD1306AsciiWire.h"
// 0X3C+SA0 - 0x3C or 0x3D
#define I2C_ADDRESS 0x3C
// Define proper RST_PIN if required.
#define RST_PIN -1
char test[20];
SSD1306AsciiWire oled;
//------------------------------------------------------------------------------
void setup() {
Wire.begin();
Wire.setClock(400000L);
#if RST_PIN >= 0
oled.begin(&Adafruit128x64, I2C_ADDRESS, RST_PIN);
#else // RST_PIN >= 0
oled.begin(&Adafruit128x64, I2C_ADDRESS);
#endif // RST_PIN >= 0
oled.setFont(Adafruit5x7); //System5x7);
oled.clear();
oled.print(" Hello world");
delay(2000);
oled.clear();
String test_str="";
test_str=("damir");
//oled.set2X();
oled.print("duzina_test_str= "); int duzina_test_str=test_str.length();oled.println(duzina_test_str); oled.println(); // go to next line
oled.write('\n');
//oled.print("test_str= ");oled.println(test_str);
delay(2000);
test_str+="š"; //ŠđĐčČćĆžŽ");
oled.println("duzina_test_str= ");duzina_test_str=test_str.length();oled.println(duzina_test_str);; oled.print("\n");//oled.print(", ");oled.println("test_str= ");oled.println(test_str);
delay(5000);
/*
for (int n=0;n<256;n++){
oled.clear();
int i=n;
oled.print(i);
oled.print("= ");
oled.print((char)n);
delay(500);
}*/
}
//------------------------------------------------------------------------------
void loop() {}``
The text was updated successfully, but these errors were encountered: