]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Small tweak to make the pin import more generic
authorCarsten Thue-Bludworth <carstentb@protonmail.com>
Fri, 29 Apr 2022 14:08:34 +0000 (10:08 -0400)
committerCarsten Thue-Bludworth <carstentb@protonmail.com>
Fri, 29 Apr 2022 14:08:34 +0000 (10:08 -0400)
src/microcontroller/__init__.py
src/microcontroller/pin.py

index d6ca4c8d9c379a894c47604168ce8d6e9e58e200..2439e01aba808d4087ce1bab445b38fa7d11b5fa 100644 (file)
@@ -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:
index cf4a4222ae8a8ebf31f6a6c6cb38c34330f525df..e11a9517e27261567d34be86b02f8d5bd4234c04 100644 (file)
@@ -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