Browse Source

Top level package now defines only uart and spi ports. pin submodule handles pins

master^2
Cefn Hoile 3 years ago
parent
commit
a8a160c837
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      python/microcontroller/__init__.py

+ 2
- 2
python/microcontroller/__init__.py View File

@ -8,8 +8,8 @@ class Pin(Enum):
pass
if agnostic.microcontroller == "esp8266":
from microcontroller.esp8266 import pin
from microcontroller.esp8266 import *
elif agnostic.microcontroller == "stm32":
from microcontroller.stm32 import pin
from microcontroller.stm32 import *
else:
raise NotImplementedError("Microcontroller not supported")

Loading…
Cancel
Save