macropad rp2040 can't find I2c adress of a neokey 1x4
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- vuduc09
- Posts: 5
- Joined: Sun Oct 02, 2022 1:35 pm
macropad rp2040 can't find I2c adress of a neokey 1x4
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?
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: macropad rp2040 can't find I2c adress of a neokey 1x4
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?
What code did you run to scan for the i2c address of the NeoKey on the MacroPad?
- vuduc09
- Posts: 5
- Joined: Sun Oct 02, 2022 1:35 pm
Re: macropad rp2040 can't find I2c adress of a neokey 1x4
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();
}
- vuduc09
- Posts: 5
- Joined: Sun Oct 02, 2022 1:35 pm
Re: macropad rp2040 can't find I2c adress of a neokey 1x4
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
it's annoying
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: macropad rp2040 can't find I2c adress of a neokey 1x4
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?
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?
Please be positive and constructive with your questions and comments.