Hi Rob,

I have found that while the datasheet doesn't say so a value of 0 for 
PRECHARGE is accepted and has an effect.  I've also found that 10h and 40h 
are valid values for VCOMHDESELECT.

As for the function, I have seen a couple implementations for Arduino that 
set contrast, precharge, and vcomh in a dim() function, making it easy for 
the user/programmer.

Here's are two quick examples I found:

https://www.youtube.com/watch?v=hFpXfSnDNSY
https://forum.arduino.cc/index.php?topic=515370.0

Regards,
Mike


On Saturday, October 17, 2020 at 8:49:09 AM UTC-4, Rob CJ wrote:
>
> Hi Mike,
>
> I had a look at what you requested and I since what you are doing is more 
> advanced I thought of the simplest way to add two procedures for advanced 
> users so that you can do anything you want. BTW. I noticed that setting the 
> precharge to 0 is an invalid value according to the datasheet. 
>
> These are the two procedures I added to the library:
>
> procedure ssd1306_send_command(byte in command)
> procedure ssd1306_send_command_parameter(byte in command, byte in 
> parameter)
>  
> This version wil be in the next bee package (ready on Sunday).
>
> Kind regards,
>
> Rob
>
> ------------------------------
> *Van:* [email protected] <javascript:> <[email protected] 
> <javascript:>> namens Rob Hamerling <[email protected] <javascript:>>
> *Verzonden:* zaterdag 17 oktober 2020 14:29
> *Aan:* [email protected] <javascript:> <[email protected] 
> <javascript:>>
> *Onderwerp:* Re: [jallib] Re: JAL Library for SSD1306 graphic display 
> module. 
>  
>
> Hi Mike,
>
> On 14/10/2020 16.24, 'Mike' via jallib wrote:
>
>
> Just a note...The dimming ability of the display can be greatly extended 
> by using the SETPRECHARGE and SETVCOMDETECT commands.  I am able to make 
> the display very dim - much dimmer than just using the contrast - by 
> setting all three parameters to zero.  This could be very useful for 
> battery powered devices.
>
> I'm using ssd1306 (and sh1106) in other environments (ESP8266/ESP32 with 
> Micropython, and Teensy 4.0 with C/C++). I am interested to extend some of 
> the oled support libraries for these environments for better 
> contrast-control. But the datasheets were not helpful (enough) for me. 
> Could you point me to more elaborate information w.r.t. the above commands 
> (meaning, explanation and format)?  
>
> Regards, RobH
>
>
> -- 
> *Rob H*amerling, Vianen, NL
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/cb530e23-1d0d-0750-3d78-91194e9a97db%40gmail.com
>  
> <https://groups.google.com/d/msgid/jallib/cb530e23-1d0d-0750-3d78-91194e9a97db%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/eb9a9b8f-d914-46ad-8009-1d7ebaf74fd2o%40googlegroups.com.

Reply via email to