New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GrovePi Expander & Raspberry Pi I2C issues #1341
Comments
I found this post but it still can't solve my problem. |
This issue appears to be coming from raspi-io-led, let's ping @nebrius |
I'm at a MS offsite and don't really have time (or hardware) to dig into this unfortunately. Looking at the stack trace though, it seems to be some sort of I2C issue. This makes sense too, given that the GrovePi does everything over I2C IIRC. (raspi-led is only for the on-board LED, not LEDs connected to GPIO pins, also this is |
cc @fivdi. Does this ring any bells for you? |
@nebrius I'm afraid it doesn't ring a bell. @outan Although johnny-five v0.10.6 and raspi-io v7.2.4 are not that old the current versions are v0.10.13 and v8.0.1 respectively. Can you try with the latest versions please? If the error still occurs, which is very likely, please post the complete output of the following commands:
If the command
Also, please post the complete content of file Additional questions: |
The message for the error thrown is:
Error 121 isn't as unknown as the above error message claims. It means that there was a "Remote I/O Error". It looks like either Node.js or libuv doesn't know about "Remote I/O Error" and says there was an "Unknown system error" instead. This basically means that it's not possible to communicate with the I2C device for some reason. There are many potential reasons, for example, the device is not connected up correctly, the baud rate is too high, ... |
So this is a thing: #1343 (comment). There's a fix out that may fix your issue too. Can you update to the latest version of raspi-i2c (one of raspi-io's dependencies) when you get a chance and let me know if you still see this issue? |
i got -121 when use oled
|
The address shown for the display is either 0x3c or 0x3d depending on how i2cdetect is called. This shouldn't happen. The address should be the same in both cases. Both address are actually valid addresses for SSD1306 displays. Can you post a link to the exact type of display being used please? |
What does the other side of the board look like? Is SA0 broken out on the connector? If so, should it be grounded to ensure that the I2C address is 0x3c (see here.) Does it work if |
maybe the screen is broken, i changed another screen, 0x3c both either |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
sudo node led.js
Specs
The text was updated successfully, but these errors were encountered: