Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: arrgon on February 20, 2018, 08:59:33 AM

Title: [STM32] [NHD-0420W-Ax3] [US2066] Problem Arduino to C
Post by: arrgon on February 20, 2018, 08:59:33 AM
Hi,

I use a display NHD-0420CW-AY3

Common Driver with Controller : US2066.

I want to use it in I2C but i don't know how to do that.

I took that in arduino : 

Wire.beginTransmission(SLAVE2W);

Wire.write(tx_packet[ix]);

Wire.endTransmission();

but how I can translate this in C ?

Thanks a lot, sorry for my english.
Title: Re: [STM32] [NHD-0420W-Ax3] [US2066] Problem Arduino to C
Post by: Ted_M on February 21, 2018, 10:13:12 AM
Hi Arrgon,

Use the US2066 code for examples using the #include "NHD_US2066.h"  for I2C mode.

https://github.com/NewhavenDisplay/NHD_US2066/blob/master/NHD_US2066.cpp (https://github.com/NewhavenDisplay/NHD_US2066/blob/master/NHD_US2066.cpp)