Raspberry Pi Pico W & CircuitPython with PCF8523

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

Raspberry Pi Pico W & CircuitPython with PCF8523

Post by Tom_Henry »

I have set up my Raspberry Pi Pico W with:

Adafruit CircuitPython 8.0.4 on 2023-03-15; Raspberry Pi Pico W with rp2040

I have followed the directions for connecting the Adafruit PCF8523 to the board from Adafruit’s website page:

https://learn.adafruit.com/adafruit-pcf ... cuitpython

When I try running the code.py file, see attached, I get the following error:

code.py output:
Traceback (most recent call last):
File "code.py", line 6, in <module>
AttributeError: 'module' object has no attribute 'SCL'

Code done running.

How can I fix this?

Tom Henry
Attachments
code.py
(975 Bytes) Downloaded 1 time

User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

Re: Raspberry Pi Pico W & CircuitPython with PCF8523

Post by Tom_Henry »

I fixed it.

Modified line 6 of code to be:
myI2C = busio.I2C(board.GP1, board.GP0)

Tom Henry

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

Return to “Adafruit CircuitPython”