Hi All,
I am new to Arduino and i am getting the above error for the code for display.println("Something", "Cool”); please find whole sketch below:
#define DVID_logo_width 128
#define DVID_logo_height 64
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
display.setTextSize(1); // Normal 1:1 pixel scale
display.setTextColor(WHITE); // Draw white text
display.cp437(true); // Use full 256 char 'Code Page 437' font
display.println("Something", "Cool”);
display.display();
your help would be most welcome
Thanks
zarcoff
Welcome to the forum
Is that really your whole sketch ?
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Explain what you expect this to do, and where you say this syntax.
println takes one argument for strings.
Hi Missdrew,
Thanks for your reply.
To summarize, this is the whole code to print “Something cool” on the screen.
for a DVID board atmega328p breadboard 8mhz board.
Hope this helps.
Thanks
Zarcoff
Where did you get it from ?
I don't find that sketch anywhere at that link.
Anyway, try using two separate display.println() statements.
display.println("Something ")
display.println("Cool")
system
Closed
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.