adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
438 stars 328 forks source link

NameError: name 'Pin' is not defined (ATOMIC PI) #767

Closed rohanrehman closed 6 months ago

rohanrehman commented 6 months ago

Board Name

ATOMIC PI

Steps

Following official guide get's an error. I have updated need files as per https://learn.adafruit.com/adding-a-single-board-computer-to-blinka/overview when trying a basic test of GPIO control

    pin = digitalio.DigitalInOut(board.D7)
  File "/usr/local/lib/python3.8/dist-packages/digitalio.py", line 183, in __init__
    self._pin = Pin(pin.id)
NameError: name 'Pin' is not defined

Chip and board is correctly detected. Atomic Pi own python library is also working as well as "gpioset" functions.

Description

No response

Additional information

No response

rohanrehman commented 6 months ago

Closed as PWM GPIO is a requirement, Atomic Pi has no PWM GPIO’s.