Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Will

Pages: [1]
1
OLEDs / Re: NHD-0420CW-AB3 I2C Setup Question
« on: February 28, 2016, 06:52:23 PM »
Yes 3.3v power and logic (see diagram in previous post).


2
OLEDs / Re: NHD-0420CW-AB3 I2C Setup Question
« on: February 27, 2016, 11:26:34 PM »
Ok I solved my own problem.  It was the reset pin...  I didn't tie it HIGH.

I have the display showing me characters!

3
OLEDs / NHD-0420CW-AB3 I2C Setup Question
« on: February 27, 2016, 02:13:37 PM »
I have the NHD-0420CW-AB3 wired up as shown in my diagram (see attachment) but I can not seem to get the I2C interface up.  I am using the following function to scan the I2C Bus.  All other devices on the Bus are found except for the NHD-0420CW-AB3.  Can you tell what I have wrong?  Thanks!




Code: [Select]
void ScanI2CBus()
{
byte error, address;
int nDevices;

nDevices = 0;
for (address = 1; address < 127; address++)
{
// The i2c_scanner uses the return value of
// the Write.endTransmission to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();

if (error == 0)
{
Serial.print(".....I2C device found at address 0x");

if (address < 16)
Serial.print("0");

Serial.print(address, HEX);
Serial.println("");
nDevices++;
}
else if (error == 4)
{
Serial.print(".....Unknown error at address 0x");
if (address < 16)
Serial.println("0");
Serial.println(address, HEX);
}
}

if (nDevices == 0)
Serial.println(".....No I2C devices found\n");
else
Serial.println(".....done\n");
}




- Will


Pages: [1]