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
Raspberry Pi Pico W & CircuitPython with PCF8523
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
Raspberry Pi Pico W & CircuitPython with PCF8523
- Attachments
-
- code.py
- (975 Bytes) Downloaded 1 time
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
Re: Raspberry Pi Pico W & CircuitPython with PCF8523
I fixed it.
Modified line 6 of code to be:
myI2C = busio.I2C(board.GP1, board.GP0)
Tom Henry
Modified line 6 of code to be:
myI2C = busio.I2C(board.GP1, board.GP0)
Tom Henry
Please be positive and constructive with your questions and comments.