Add files via upload

This commit is contained in:
johnnohj 2024-08-07 16:06:02 -04:00 committed by GitHub
parent fa1219189a
commit c49370196b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -30,7 +30,7 @@ except ImportError:
from adafruit_platformdetect.constants import boards, chips
__version__ = "0.0.0+auto.0"
__version__ = "3.72.1"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
@ -832,6 +832,8 @@ class Board:
# KB2040 Kee Board
if product == 0x0105:
return boards.KB2040_U2IF
if vendor == 0x2E8A and product == 0x111F:
return boards.WAVESHARE_RP2040_ONE_U2IF
# Will only reach here if a device was added in chip.py but here.
raise RuntimeError("RP2040_U2IF device was added to chip but not board.")

View file

@ -29,7 +29,7 @@ except ImportError:
from adafruit_platformdetect.constants import chips
__version__ = "0.0.0+auto.0"
__version__ = "3.72.1"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
@ -113,6 +113,10 @@ class Chip:
# Raspberry Pi Pico
vendor == 0xCAFE
and product == 0x4005
) or (
# Waveshare RP2040 One
vendor == 0x2E8A
and product == 0x111F
) or (
# Feather RP2040
# Itsy Bitsy RP2040