Browse Source

Board packages now under adafruit_blinka

master^2
Cefn Hoile 3 years ago
parent
commit
f4f44cf730
5 changed files with 19 additions and 19 deletions
  1. +13
    -13
      src/adafruit_blinka/board/feather_huzzah.py
  2. +0
    -0
      src/adafruit_blinka/board/feather_m0_express.py
  3. +0
    -0
      src/adafruit_blinka/board/nodemcu.py
  4. +0
    -0
      src/adafruit_blinka/board/pyboard.py
  5. +6
    -6
      src/board.py

python/board/feather_huzzah.py → src/adafruit_blinka/board/feather_huzzah.py View File

@ -1,20 +1,20 @@
from microcontroller.esp8266 import pin
from adafruit_blinka.microcontroller.esp8266 import pin
# TODO need equiv of INPUT_PULL_DOWN_16 ? see https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
GPIO0=pin.GPIO0
GPIO1=pin.GPIO1
GPIO2=pin.GPIO2
GPIO3=pin.GPIO3
GPIO4=pin.GPIO4
GPIO5=pin.GPIO5
GPIO12=pin.GPIO12
GPIO13=pin.GPIO13
GPIO14=pin.GPIO14
GPIO15=pin.GPIO15
GPIO16=pin.GPIO16
GPIO0= pin.GPIO0
GPIO1= pin.GPIO1
GPIO2= pin.GPIO2
GPIO3= pin.GPIO3
GPIO4= pin.GPIO4
GPIO5= pin.GPIO5
GPIO12= pin.GPIO12
GPIO13= pin.GPIO13
GPIO14= pin.GPIO14
GPIO15= pin.GPIO15
GPIO16= pin.GPIO16
ADC=pin.TOUT
ADC= pin.TOUT
MISO=GPIO12
MOSI=GPIO13

python/board/feather_m0_express.py → src/adafruit_blinka/board/feather_m0_express.py View File


python/board/nodemcu.py → src/adafruit_blinka/board/nodemcu.py View File


python/board/pyboard.py → src/adafruit_blinka/board/pyboard.py View File


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

@ -29,9 +29,9 @@ platform introspection
"""
import gc
import sys
gc.collect()
from agnostic import board
from adafruit_blinka.agnostic import board
gc.collect()
__version__ = "0.0.0-auto.0"
@ -39,13 +39,13 @@ __repo__ = "https://github.com/adafruit/Adafruit_Micropython_Blinka.git"
if board == "feather_huzzah":
fromn> <span class="nn">board.feather_huzzah import *
pass
elif board == "feather_m0_express":
fromn> <span class="nn">board.feather_m0_expressspan> import *
pass
elif board == "nodemcu":
fromn> <span class="nn">board.nodemcu import *
pass
elif board == "pyboard":
fromn> <span class="nn">board.pyboard import *
pass
else:
raise NotImplementedError("Board not supported")
gc.collect()

Loading…
Cancel
Save