From: Cefn Hoile Date: Mon, 26 Feb 2018 23:22:05 +0000 (+0000) Subject: Cruft removal X-Git-Tag: 0.1.0~4^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/61d1577ef627c6733b15da390107867ef07216f5?hp=-c Cruft removal --- 61d1577ef627c6733b15da390107867ef07216f5 diff --git a/src/adafruit_blinka/board/feather_huzzah.py b/src/adafruit_blinka/board/feather_huzzah.py index ced2c24..60dd863 100644 --- a/src/adafruit_blinka/board/feather_huzzah.py +++ b/src/adafruit_blinka/board/feather_huzzah.py @@ -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 \ No newline at end of file diff --git a/src/adafruit_blinka/microcontroller/esp8266/pin.py b/src/adafruit_blinka/microcontroller/esp8266/pin.py index 647ac75..c37e053 100644 --- a/src/adafruit_blinka/microcontroller/esp8266/pin.py +++ b/src/adafruit_blinka/microcontroller/esp8266/pin.py @@ -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)) diff --git a/src/busio.py b/src/busio.py index a02eccf..0c6e296 100644 --- a/src/busio.py +++ b/src/busio.py @@ -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, diff --git a/src/digitalio.py b/src/digitalio.py index 5598d58..45cada2 100644 --- a/src/digitalio.py +++ b/src/digitalio.py @@ -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'] diff --git a/test/src/testing/__init__.py b/test/src/testing/__init__.py index 766f242..d8c29fb 100644 --- a/test/src/testing/__init__.py +++ b/test/src/testing/__init__.py @@ -1,7 +1,6 @@ # mitigate heap fragmentation issues by pre-loading major libraries import gc gc.collect() -gc.collect() import unittest gc.collect()