Browse Source

Cruft removal

Cefn Hoile 10 months ago
parent
commit
61d1577ef6

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

@@ -24,9 +24,4 @@ RX = GPIO3
24 24
 TX = GPIO1
25 25
 
26 26
 SDA = GPIO4
27
-SCL = GPIO5
28
-
29
-[
30
-    'ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI',
31
-    'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL'
32
-]
27
+SCL = GPIO5

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

@@ -12,19 +12,6 @@ GPIO14 = Pin(14)
12 12
 GPIO15 = Pin(15)
13 13
 GPIO16 = Pin(16)
14 14
 TOUT = Pin("TOUT")
15
-"""
16
-From introspection of microcontroller.pin on Feather Huzzah running CircuitPython
17
->>> dir(microcontroller.pin)
18
-['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']
19
->>> dir(board)
20
-['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL']
21
-"""
22
-"""
23
-class cpu():
24
-    def frequency(self):
25
-        from machine import freq
26
-        return freq()
27
-"""
28 15
 
29 16
 # ordered as spiId, sckId, mosiId, misoId
30 17
 spiPorts = ((1, GPIO14, GPIO13, GPIO12))

+ 0
- 1
src/busio.py View File

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

+ 0
- 3
src/digitalio.py View File

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

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

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