Good day guys,
I just bought an Arduino Beetle and it says that it is the kind of similar to Arduino Leonardo so I did change my Board from Arduino Uno to Arduino Leonardo. However when I was uploading the code I got an error (check the attached picture) and checked my code below. PS this code worked on Uno and when I tried uploading it to Leonardo it gave me an error. Oh btw I used the code from Adafruit about programming an OLED 128x32. Oh sorry I forgot my My Arduino IDE version is 1.6.11, I used one of the libraries from Adafruit SSD1306. Sorry I am new in posting threads in the forums. If you need some information just let me know
//***************
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
void setup()
{
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.display();
delay (2000);
display.clearDisplay();
}
void loop()
{
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println("Hello, Vince!");
display.display();
}
