I guys, i connect a 0.95" oled lcd to the i2c pin on ramps 1.4, upload a test sketch and works great, so... i try to "merge" the existing ui class to work with this lcd but nothing appen,
i setup the i2c port and
/**
What display type do you use?
0 = No display - do not use here. Set FEATURE_CONTROLLER 0 instead
1 = LCD Display with 4 bit data bus
2 = LCD Display with 8 bit data bus (currently not implemented, fallback to 1)
3 = LCD Display with I2C connection, 4 bit mode
4 = Use the slower LiquiedCrystal library bundled with arduino.
IMPORTANT: You need to uncomment the LiquidCrystal include in Repetier.pde for it to work.
If you have Sanguino and want to use the library, you need to have Arduino 023 or older. (13.04.2012)
5 = U8G supported display
*/
#define UI_DISPLAY_TYPE 3
...
#define UI_DISPLAY_I2C_ADDRESS 0x3C (yes is correct)
but after that i'm lost !!!
display is off , what i miss ?
how can i setup the data pin (SDA and SCL) ?
in this picture work with the adafruit library
...
#include SPI.h
#include Wire.h
#include Adafruit_GFX.h
#include Adafruit_SSD1306.h
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
...
[attachment 54505 Cattura.JPG]
Thanks in advance
i setup the i2c port and
/**
What display type do you use?
0 = No display - do not use here. Set FEATURE_CONTROLLER 0 instead
1 = LCD Display with 4 bit data bus
2 = LCD Display with 8 bit data bus (currently not implemented, fallback to 1)
3 = LCD Display with I2C connection, 4 bit mode
4 = Use the slower LiquiedCrystal library bundled with arduino.
IMPORTANT: You need to uncomment the LiquidCrystal include in Repetier.pde for it to work.
If you have Sanguino and want to use the library, you need to have Arduino 023 or older. (13.04.2012)
5 = U8G supported display
*/
#define UI_DISPLAY_TYPE 3
...
#define UI_DISPLAY_I2C_ADDRESS 0x3C (yes is correct)
but after that i'm lost !!!
display is off , what i miss ?
how can i setup the data pin (SDA and SCL) ?
in this picture work with the adafruit library
...
#include SPI.h
#include Wire.h
#include Adafruit_GFX.h
#include Adafruit_SSD1306.h
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
...
[attachment 54505 Cattura.JPG]
Thanks in advance