adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
MIT License
3.97k stars 1.16k forks source link

IDE (PyCharm Community) can't find `APA102_SCK` #9407

Closed xsorifc28 closed 1 week ago

xsorifc28 commented 1 week ago

CircuitPython version

Adafruit CircuitPython 9.0.5, gemma m0

Code/REPL

from board import APA102_MOSI, APA102_SCK

Behavior

Unable to find import, though code works without issues:

image

It seems APA102_SCK is missing from board-stubs/__init__.py file:

image

It is defined here: https://github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/boards/gemma_m0/pins.c#L31 and also here https://github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/boards/gemma_m0/mpconfigboard.h#L15 (not sure how those translate to the python libs)

Description

No response

Additional information

No response

dhalbert commented 1 week ago

@FoamyGuy I do not know why only some of the pins are missing. I thought at first it was aliases, but the pin is missing altogether.