macropad rp2040 can't find I2c adress of a neokey 1x4

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
vuduc09
 
Posts: 5
Joined: Sun Oct 02, 2022 1:35 pm

macropad rp2040 can't find I2c adress of a neokey 1x4

Post by vuduc09 »

I buy 2 of them and plan to asem them. I am noob and i use a sample code of macrodpad rp2040. when I connect, macropad can't find I2c address of neokey 1x4 and neokey is inactive. What should I do now?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: macropad rp2040 can't find I2c adress of a neokey 1x4

Post by mikeysklar »

Can you post a photo of how you have connected the MacroPad to the NeoKey? I want to confirm the stemma cable color orientation.

What code did you run to scan for the i2c address of the NeoKey on the MacroPad?

User avatar
vuduc09
 
Posts: 5
Joined: Sun Oct 02, 2022 1:35 pm

Re: macropad rp2040 can't find I2c adress of a neokey 1x4

Post by vuduc09 »

mikeysklar wrote: Sun Oct 02, 2022 5:47 pm Can you post a photo of how you have connected the MacroPad to the NeoKey? I want to confirm the stemma cable color orientation.
https://drive.google.com/file/d/1yxOlJo ... sp=sharing

What code did you run to scan for the i2c address of the NeoKey on the MacroPad?

Code: Select all

 
   // Scanning takes a while so we don't do it all the time
  if ((j & 0x3F) == 0) {
    Serial.println("Scanning I2C: ");
    Serial.print("Found I2C address 0x");
    for (uint8_t address = 0; address <= 0x7F; address++) {
      Wire.beginTransmission(address);
      i2c_found[address] = (Wire.endTransmission () == 0);
      if (i2c_found[address]) {
        Serial.print("0x");
        Serial.print(address, HEX);
        Serial.print(", ");
      }
    }
    Serial.println();
  }
  

User avatar
vuduc09
 
Posts: 5
Joined: Sun Oct 02, 2022 1:35 pm

Re: macropad rp2040 can't find I2c adress of a neokey 1x4

Post by vuduc09 »

I found that my stemma qt in my neokey is not working. When i change to use header pin it's work.
it's annoying

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: macropad rp2040 can't find I2c adress of a neokey 1x4

Post by mikeysklar »

Good to know the breakout pin header works.

That means the issue is likely one of the following:

1) The Stemma QT cable is reversed

2) The Stemma QT cable is not working

3) The Stemma QT connector (on either side) is damaged.

Can you use a multimeter to help narrow down which scenario is happening.

Was the Stemma cable purchased from Adafruit?

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

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