Skip to content

Can't import adafruit_seesaw.tftshield18 on RP2040 Raspberry Pi Pico #57

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

Closed
rsbohn opened this issue Jan 27, 2021 · 1 comment · Fixed by #59
Closed

Can't import adafruit_seesaw.tftshield18 on RP2040 Raspberry Pi Pico #57

rsbohn opened this issue Jan 27, 2021 · 1 comment · Fixed by #59

Comments

@rsbohn
Copy link
Contributor

rsbohn commented Jan 27, 2021

Running Adafruit CircuitPython 6.2.0-beta.0 on 2021-01-22; Raspberry Pi Pico with rp2040.

import board
from adafruit_seesaw.tftshield18 import TFTShield18

Expected: Should import the module.
Actual:

Traceback (most recent call last):
  File "code.py", line 10, in <module>
  File "adafruit_seesaw/tftshield18.py", line 63, in <module>
  File "adafruit_seesaw/tftshield18.py", line 86, in TFTShield18
AttributeError: 'module' object has no attribute 'I2C'

Fails because of this:

def __init__(self, i2c_bus=board.I2C(), addr=0x2E):

For the RP2040 Raspberry Pi Pico there is no board.I2C defined.

I've selected GP2=SDA and GP3=SCL on I2C1 and I should be able to create the bus, just need to import TFTShield18
and pass it my I2C bus instead of using the default.

@rsbohn
Copy link
Contributor Author

rsbohn commented Jan 27, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant