Browse Source

Packages reverted to modules

master^2
Cefn Hoile 3 years ago
parent
commit
a575c4ba60
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/bitbangio.py
  2. +2
    -2
      src/busio.py
  3. +2
    -2
      src/digitalio.py

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

@ -1,7 +1,7 @@
from mcp import Lockable
from adafruit_blinka import Lockable
from machine import I2C as _I2C
from machine import Pin
import agnostic
class I2C(Lockable):
def __init__(self, scl, sda, frequency=400000):

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

@ -1,5 +1,5 @@
import agnostic
from mcp import Enum, Lockable
from adafruit_blinka import Enum, Lockable, agnostic
class SPI(Lockable):
def __init__(self, clock, MOSI=None, MISO=None):

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

@ -1,6 +1,6 @@
from machine import Pin
from agnostic import board as boardId
from mcp import Enum,ContextManaged
from adafruit_blinka.agnostic import board as boardId
from adafruit_blinka import Enum,ContextManaged
class DriveMode(Enum):

Loading…
Cancel
Save