adafruit / Adafruit_Blinka

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

MCP2221A import board error issue #731

Closed thinphone23 closed 8 months ago

thinphone23 commented 8 months ago

Board Name

MCP2221 usb

Steps

code from user guideCircuitPython Libraries on any Computerwith MCP2221.pdf

import time import board import digitalio led = digitalio.DigitalInOut(board.G0) led.direction = digitalio.Direction.OUTPUT while True: led.value = True time.sleep(0.5) led.value = False time.sleep(0.5)

Description

image

Additional information

image

makermelissa commented 8 months ago

It looks like it's not being detected. For this board, you need to set an environment variable for it to be detected correctly. You may want to check out the guide for setting it up: https://learn.adafruit.com/circuitpython-libraries-on-any-computer-with-mcp2221

Closing as this is not a bug.

makermelissa commented 8 months ago

If you need further assistance setting it up, you can either use the Support forums at https://forums.adafruit.com or the Adafruit Discord at http://adafru.it/discord.