From: Carsten Thue-Bludworth Date: Fri, 29 Apr 2022 14:08:34 +0000 (-0400) Subject: Small tweak to make the pin import more generic X-Git-Tag: 7.3.0^2~3 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/48617857b04d80bcabebd64474c63b643716b4fe?ds=inline;hp=-c Small tweak to make the pin import more generic --- 48617857b04d80bcabebd64474c63b643716b4fe diff --git a/src/microcontroller/__init__.py b/src/microcontroller/__init__.py index d6ca4c8..2439e01 100644 --- a/src/microcontroller/__init__.py +++ b/src/microcontroller/__init__.py @@ -119,7 +119,7 @@ elif chip_id == ap_chip.RP2040_U2IF: elif chip_id == ap_chip.GENERIC_X86: print("WARNING: GENERIC_X86 is not fully supported. Some features may not work.") elif chip_id == None: - print("WARNING [__init__.py]: chip_id is None!") + print("WARNING: chip_id == None is not fully supported. Some features may not work.") elif "sphinx" in sys.modules: pass else: diff --git a/src/microcontroller/pin.py b/src/microcontroller/pin.py index cf4a422..e11a951 100644 --- a/src/microcontroller/pin.py +++ b/src/microcontroller/pin.py @@ -103,7 +103,7 @@ elif "sphinx" in sys.modules: # pylint: disable=unused-import from adafruit_blinka.microcontroller.generic_micropython import Pin elif chip_id == None: - print("WARNING [pin.py]: chip_id is None!") - from adafruit_blinka.microcontroller.rp2040.pin import * + print("WARNING: chip_id == None is not fully supported. Some features may not work.") + from adafruit_blinka.microcontroller.generic_micropython import Pin else: - raise NotImplementedError("Microcontroller not supported: ", chip_id) + raise NotImplementedError("Microcontroller not supported: ", chip_id) \ No newline at end of file