Browse Source

Cruft removal

master^2
Cefn Hoile 3 years ago
parent
commit
61d1577ef6
5 changed files with 1 additions and 24 deletions
  1. +1
    -6
      src/adafruit_blinka/board/feather_huzzah.py
  2. +0
    -13
      src/adafruit_blinka/microcontroller/esp8266/pin.py
  3. +0
    -1
      src/busio.py
  4. +0
    -3
      src/digitalio.py
  5. +0
    -1
      test/src/testing/__init__.py

+ 1
- 6
src/adafruit_blinka/board/feather_huzzah.py View File

@ -24,9 +24,4 @@ RX = GPIO3
TX = GPIO1
SDA = GPIO4
SCL = GPIO5
[
'ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI',
'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL'
]
SCL = GPIO5

+ 0
- 13
src/adafruit_blinka/microcontroller/esp8266/pin.py View File

@ -12,19 +12,6 @@ GPIO14 = Pin(14)
GPIO15 = Pin(15)
GPIO16 = Pin(16)
TOUT = Pin("TOUT")
"""
From introspection of microcontroller.pin on Feather Huzzah running CircuitPython
>>> dir(microcontroller.pin)
['TOUT', 'XPD_DCDC', 'MTMS', 'MTDI', 'MTCK', 'MTDO', 'GPIO2', 'GPIO0', 'GPIO4', 'SD_DATA_2', 'SD_DATA_3', 'SD_CMD', 'SD_CLK', 'SD_DATA_0', 'SD_DATA_1', 'DVDD', 'U0RXD', 'U0TXD']
>>> dir(board)
['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL']
"""
"""
class cpu():
def frequency(self):
from machine import freq
return freq()
"""
# ordered as spiId, sckId, mosiId, misoId
spiPorts = ((1, GPIO14, GPIO13, GPIO12))


+ 0
- 1
src/busio.py View File

@ -99,7 +99,6 @@ class UART(Lockable):
Parity.ODD = Parity()
Parity.EVEN = Parity()
# TODO investigate UART receiver_buffer_size as e.g. read_buf_len in https://github.com/micropython/micropython/blob/3eb0694b97c6a8f0e93b874549aac40d8b78b0e5/ports/stm32/uart.c
def __init__(self,
tx,
rx,


+ 0
- 3
src/digitalio.py View File

@ -120,6 +120,3 @@ class DigitalInOut(ContextManaged):
self._pin.init(mode=Pin.OPEN_DRAIN)
elif mod is DriveMode.PUSH_PULL:
self._pin.init(mode=Pin.OUT)
# __all__ = ['DigitalInOut', 'DriveMode', 'Direction','Pull']

+ 0
- 1
test/src/testing/__init__.py View File

@ -1,7 +1,6 @@
# mitigate heap fragmentation issues by pre-loading major libraries
import gc
gc.collect()
gc.collect()
import unittest
gc.collect()


Loading…
Cancel
Save