_value = LOW
_mode = IN
- def __init__(self, bcm_number):
- self.id = bcm_number
+ def __init__(self, number):
+ self.id = number
def __repr__(self):
return str(self.id)
def init(self, mode=IN, pull=None):
"""Initialize the Pin"""
+ print(self.id)
if mode is not None:
if mode == self.IN:
self._mode = self.IN
D38 = Pin(38)
D40 = Pin(40)
# I2C
-SDA = D3
-SCL = D5
+I2C_SDA = D3
+I2C_SCL = D5
# SPI
SPI_MISO = D21
UART_RX = D10
# ordered as i2cId, SCL, SDA
-i2cPorts = ((0, SCL, SDA),)
+i2cPorts = ((0, I2C_SCL, I2C_SDA),)
# ordered as spiId, sckId, mosiId, misoId
spiPorts = ((0, SPI_SCLK, SPI_MOSI, SPI_MISO),)