question on the 128X64 i2c OLED LCD LED blue/yellow Display.

hello i found a few sketches for oled lcd displays some spi some i2c but not for a blue/yellow display 0.96 128x64 i bought it from ebay http://www.ebay.com/itm/191285233516?_trksid=p2060778.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT but i can not find a sketch or library to work i tried the adafruid one from github and nothing i get error from it..

C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:25: error: 'Serial1' was not declared in this scope

this is the sketch i used that i found

i can't post the sketch in here can't i exceeds the max length of 9500 characters

this is where i got the library

and

not sure what to do can someone please help me?

With 4 pins, it is a I2C display.
The U8Glib will work with it.

Some of those have the top in yellow, and the botton in blue. But it is still a single color display.

hello peter where can i find the U8Glib library at?

Do you know the controller ?

This is the main page for U8Glib : http://code.google.com/p/u8glib/
When you use an example, uncomment the line for the right driver, and perhaps adjust the pin usage.

Your device should be here : Google Code Archive - Long-term storage for Google Code Project Hosting.

i tired but I'm not error from the sketch maybe I'm doing something wrong but it's not working and i ant sure What I'm doing wrong :frowning:

It might be one of those "no ack" oled displays.
Did you read about "U8G_I2C_OPT_NO_ACK" on this page : Google Code Archive - Long-term storage for Google Code Project Hosting.
Also read about "heltec" here: Google Code Archive - Long-term storage for Google Code Project Hosting.
The "no ack" is supported only in the newest 1.16 version.

Are you sure you have the newest U8Glib ?

I think you need to use this:
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK);

Try that with the "GraphicsTest" example.

the one i have is a i2c the scl and sda pins on it from http://www.ebay.com/itm/191285233516?_trksid=p2060778.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT it said it haves IIC and spi but i didn't find no spi pins only 4 pins a scl and sda pin besides the vcc and gnd pin.

Did you try what I wrote in Reply #5 ?

Don't worry about I2C or SPI or wrong labels or wrong descriptions. The heltec are often the cheapest OLED modules, and often with wrong labels or wrong description. You have 4 pins, so you have I2C.

hello i got the U8Glib library i even tried the graphicstest one and i get this error u8g was not declared in this scope.

Two things... Did you put the library in the right place? and did you restart the IDE After you put the library in the right place?
failure to do both would generate the error you reported.

Doc

Please be a litte more careful and don't try to rush to a result.
Did you read the posts ? Did you read my post of Reply #5 ? Did you read the links I mentioned ?

The example has many declarations for u8g, they are all commented. You have to uncomment the one that you need for your display. For your display you might need the u8g definition I wrote about in Reply #5.

i found this sketch in a forum in here

#include "U8glib.h"

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);	

void draw() {

  u8g.setFont(u8g_font_unifont);
  u8g.drawStr( 0, 20, "Hello World!");
}

void setup() {
}

void loop() {

  u8g.firstPage();  
  do {
    draw();
  } while( u8g.nextPage() );
    delay(1000);
}

from
http://forum.arduino.cc/index.php?topic=219419.0

that seems to work. said hello world! in half yellow at the top and half blue at the bottom

image.jpg

Very nice !

You have now the OPT_NONE, you could try also with OPT_NO_ACK.
And with this, you should be able to make the GraphicsTest work :stuck_out_tongue:

when i try the graphics test i get this error saying error compiling

C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
C:\Users\BigGreen\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:25: error: 'Serial1' was not declared in this scope

I don't understand that, why are the ArduinoRobot files used ?
That is the same problem as you had with Adafruit libraries and the reason you started this topic. But I don't understand why you get those messages. When I use the U8Glib, I don't have those messages.

As far as I know, the GraphicsTest is just the same the sketch you found in the forum with "Hello World!". The GraphicsTest uses a few more functions from the U8Glib, but that's all.

Are your Arduino system files still okay ?
Perhaps you can try to download them again.

Did you try the GraphicsTest in a new sketch ? Or did you add other files to it ? (for example other files in tabs).
Which Arduino board are you using ?
When you would have selected the Arduino Uno board, and include the ArduinoRobot include file, or call a ArduinoRobot function, than those error message would appear.