]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Cruft removal
authorCefn Hoile <github.com@cefn.com>
Mon, 26 Feb 2018 23:22:05 +0000 (23:22 +0000)
committerCefn Hoile <github.com@cefn.com>
Mon, 26 Feb 2018 23:22:05 +0000 (23:22 +0000)
src/adafruit_blinka/board/feather_huzzah.py
src/adafruit_blinka/microcontroller/esp8266/pin.py
src/busio.py
src/digitalio.py
test/src/testing/__init__.py

index ced2c242ba8aa9cd1273fea116d6655679d850f7..60dd863ee0d920589c4bfd607d7d5d2f21187411 100644 (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
\ No newline at end of file
index 647ac7512536c2c01c4bbbeae6e36d1cb7effd37..c37e05382e5f8cd51ff8a56ac019f02cd2e39051 100644 (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))
index a02eccf95f23d391ac4e97a46bf263db51eb6033..0c6e296d6ffe34d2887aa2db827320e39b929fd8 100644 (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,
index 5598d587b9cd9bb5962d871b1f406a0b5a7b4bcc..45cada234a90ac28233657aa1a5f733f12f66c37 100644 (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']
index 766f24230924b42d66ba4f7a2b7fe93064b510d0..d8c29fb37db902efcdab1bac0d5be46f2d63d831 100644 (file)
@@ -1,7 +1,6 @@
 # mitigate heap fragmentation issues by pre-loading major libraries
 import gc
 gc.collect()
-gc.collect()
 import unittest
 gc.collect()