From 0c6b7c73e21392d19e76a28f591617ebbe99ce94 Mon Sep 17 00:00:00 2001 From: Cefn Hoile Date: Mon, 19 Feb 2018 20:41:49 +0000 Subject: [PATCH] Moved Pin definition back so that __module__ properly rendered by repr(). Fear of circular dependency was red herring - was just too many levels of recursion. --- python/microcontroller/esp8266.py | 2 +- python/microcontroller/stm32.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/microcontroller/esp8266.py b/python/microcontroller/esp8266.py index c347c7a..4e16571 100644 --- a/python/microcontroller/esp8266.py +++ b/python/microcontroller/esp8266.py @@ -1,4 +1,4 @@ -from mcp import Pin as pin +from microcontroller import Pin as pin pin.GPIO0=pin(0) pin.GPIO1=pin(1) diff --git a/python/microcontroller/stm32.py b/python/microcontroller/stm32.py index 7303d02..7aaff3e 100644 --- a/python/microcontroller/stm32.py +++ b/python/microcontroller/stm32.py @@ -1,4 +1,4 @@ -from mcp import Pin as pin +from microcontroller import Pin as pin pin.A0=pin('A0') pin.A1=pin('A1') -- 2.49.0