I am looking for some help understanding how to program a Newhaven NHD-0420-AB3 OLED display. I have been able to display some basic data using I2C but would like to understand how the US2066 control works on a I2C interface. The data sheet command table shows the following bits: (Is, RE, SD, D/C, R/W and the 8 data bits D7-0). I somewhat see how this works but how does Is, RE, SD, D/C, R/W get set thru I2C?
Is it a "NHD-0420CW-AB3" ?
That is this display: https://newhavendisplay.com/4x20-character-blue-slim-oled-module/
The datasheet for the US2066 controller is here: https://support.newhavendisplay.com/hc/en-us/articles/4414485495703--US2066
The US2066 chip that controls the display has a I2C interface. The commands over the I2C bus go directly into the chip. The D/C and R/W are not used in I2C mode.
The "IS", "RE", and "SD" bits are set via commands.
The explanation is confusing for me
They could have written: The SD bit enables the special commands.
They provide an example for Arduino: https://support.newhavendisplay.com/hc/en-us/articles/4413876825111-NHD-0216CW-0220CW-0420CW-with-Arduino
That example is also confusing
for me, but I do see that they use about 30 commands to initialize the display.
Thanks for the reply. No question Newhaven could do a better job explaining this. I hate having to decrypt a bunch of code examples others have written only to make up for the lack of proper data sheets. Here's a link I found that helps: "https://support.newhavendisplay.com/hc/en-us/community/posts/17997798717847-NHD-0420CW-AY3-what-means-IS-RE-SD" Hopefully this also helps someone further understand this US2066 control.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.


