master contrast current control of SSD 1351

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
loonsome1
 
Posts: 1
Joined: Sun Feb 28, 2016 6:48 am

master contrast current control of SSD 1351

Post by loonsome1 »

Hi there, I have purchased a OLED Breakout Board - 16-bit Color 1.5" w/microSD holder from Adafruit.

My control board is using arduino uno.

From your website, i have download the Adafruit-SSD1351-library.

The library works fine. Right now I'm trying to modify the parameter of master contrast current control of SSD1351.

In the file " Adafruit_SSD1351.h" in Adafruit-SSD1351-library, it have a define "#define SSD1351_CMD_CONTRASTMASTER 0xC7" which is using for setting master contrast current control.

If I want to modify this parameter, do anyone have suggestion about how should i modify the code?

thanks.

User avatar
Dannikorsholm
 
Posts: 1
Joined: Sat Nov 26, 2016 5:05 am

Re: master contrast current control of SSD 1351

Post by Dannikorsholm »

Hi loonsome1

Did you find a way to dimmer the display??


Regards Danni.

User avatar
kim2139
 
Posts: 3
Joined: Thu Dec 21, 2017 7:55 pm

Re: master contrast current control of SSD 1351

Post by kim2139 »

I have been trying to run the 1.27" OLED display with Simblee. But I keep getting this error message:

Arduino: 1.8.5 (Mac OS X), Board: "Simblee"

/Applications/Arduino.app/Contents/Java/portable/sketchbook/libraries/Adafruit_SSD1351_library/Adafruit_SSD1351.cpp:29:28: fatal error: wiring_private.h: No such file or directory
#include "wiring_private.h"
^
compilation terminated.
exit status 1
Error compiling for board Simblee.

Does any one know what the problem is?

User avatar
CCat
 
Posts: 1
Joined: Fri May 18, 2018 7:38 am

Re: master contrast current control of SSD 1351

Post by CCat »

I'm using SSD1351_CMD_CONTRASTMASTER like this (somewhere in the setup{} or loop {})

Code: Select all

        tft.writeCommand(SSD1351_CMD_CONTRASTMASTER);
        tft.writeData(0x32);
And back to full contrast

Code: Select all

        tft.writeCommand(SSD1351_CMD_CONTRASTMASTER);
        tft.writeData(0x0F);
But I wonder what is max and min values. :-)
0x00 - 0xFF maybe?

You may also switch display off and on:

Code: Select all

        tft.writeCommand(SSD1351_CMD_DISPLAYOFF);

        tft.writeCommand(SSD1351_CMD_DISPLAYON);

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”