Browse Source

Microcontroller packages now under adafruit_blinka

master^2
Cefn Hoile 3 years ago
parent
commit
9aedff3827
6 changed files with 4 additions and 4 deletions
  1. +0
    -0
      src/adafruit_blinka/microcontroller/__init__.py
  2. +0
    -0
      src/adafruit_blinka/microcontroller/esp8266/__init__.py
  3. +0
    -0
      src/adafruit_blinka/microcontroller/esp8266/pin.py
  4. +0
    -0
      src/adafruit_blinka/microcontroller/stm32/__init__.py
  5. +0
    -0
      src/adafruit_blinka/microcontroller/stm32/pin.py
  6. +4
    -4
      src/microcontroller.py

+ 0
- 0
src/adafruit_blinka/microcontroller/__init__.py View File


python/microcontroller/esp8266/__init__.py → src/adafruit_blinka/microcontroller/esp8266/__init__.py View File


python/microcontroller/esp8266/pin.py → src/adafruit_blinka/microcontroller/esp8266/pin.py View File


python/microcontroller/stm32/__init__.py → src/adafruit_blinka/microcontroller/stm32/__init__.py View File


python/microcontroller/stm32/pin.py → src/adafruit_blinka/microcontroller/stm32/pin.py View File


python/microcontroller/__init__.py → src/microcontroller.py View File

@ -1,5 +1,5 @@
import agnostic
from mcp import Enum
from adafruit_blinka import Enum, agnostic
class Pin(Enum):
def __init__(self, id):
@ -8,8 +8,8 @@ class Pin(Enum):
pass
if agnostic.microcontroller == "esp8266":
fromn> <span class="nn">microcontroller.esp8266 import *
pass
elif agnostic.microcontroller == "stm32":
fromn> <span class="nn">microcontroller.stm32 import *
pass
else:
raise NotImplementedError("Microcontroller not supported")

Loading…
Cancel
Save