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
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))
self._pin.init(mode=Pin.OPEN_DRAIN)
elif mod is DriveMode.PUSH_PULL:
self._pin.init(mode=Pin.OUT)
-
-
-# __all__ = ['DigitalInOut', 'DriveMode', 'Direction','Pull']