def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["USART1_TX"]=0; pinutils.findpin(pins, "PD27", True)["functions"]["USART1_RX"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # Make buttons and LEDs negated pinutils.findpin(pins, "PD6", True)["functions"]["NEGATED"]=0; pinutils.findpin(pins, "PD7", True)["functions"]["NEGATED"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): # 32 General Purpose I/O Pins, 16 'virtual' Port Expanded pins pins = pinutils.generate_pins(0,31,"D") + pinutils.generate_pins(0,15,"V"); pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["RTS"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD7", True)["functions"]["CTS"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # Make buttons and LEDs negated pinutils.findpin(pins, "PD11", True)["functions"]["NEGATED"]=0; pinutils.findpin(pins, "PV5", True)["functions"]["NEGATED"]=0; pinutils.findpin(pins, "PV6", True)["functions"]["NEGATED"]=0; pinutils.findpin(pins, "PV7", True)["functions"]["NEGATED"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,19); pins.extend(pinutils.generate_pins(21,22)); pins.extend(pinutils.generate_pins(25,27)); pins.extend(pinutils.generate_pins(32,39)); pinutils.findpin(pins, "PD36", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD37", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD38", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD39", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD32", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD33", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD34", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD35", True)["functions"]["ADC1_IN7"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC2_IN0"]=0; pinutils.findpin(pins, "PD0", True)["functions"]["ADC2_IN1"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC2_IN2"]=0; pinutils.findpin(pins, "PD15", True)["functions"]["ADC2_IN3"]=0; pinutils.findpin(pins, "PD13", True)["functions"]["ADC2_IN4"]=0; pinutils.findpin(pins, "PD12", True)["functions"]["ADC2_IN5"]=0; pinutils.findpin(pins, "PD14", True)["functions"]["ADC2_IN6"]=0; pinutils.findpin(pins, "PD27", True)["functions"]["ADC2_IN7"]=0; pinutils.findpin(pins, "PD0", True)["functions"]["LED_1"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["USART0_TX"]=0; pinutils.findpin(pins, "PD17", True)["functions"]["USART2_TX"]=0; pinutils.findpin(pins, "PD32", True)["functions"]["USART0_RX"]=0; return pins
def get_pins(): pins = pinutils.generate_pins(0, 31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"] = 0 pinutils.findpin(pins, "PD1", True)["functions"]["XL2"] = 0 pinutils.findpin(pins, "PD5", True)["functions"]["RTS"] = 0 pinutils.findpin(pins, "PD6", True)["functions"]["TXD"] = 0 pinutils.findpin(pins, "PD7", True)["functions"]["CTS"] = 0 pinutils.findpin(pins, "PD8", True)["functions"]["RXD"] = 0 pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"] = 0 pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"] = 0 pinutils.findpin(pins, "PD13", True)["functions"]["Button_1"] = 0 pinutils.findpin(pins, "PD14", True)["functions"]["Button_2"] = 0 pinutils.findpin(pins, "PD15", True)["functions"]["Button_3"] = 0 pinutils.findpin(pins, "PD16", True)["functions"]["Button_4"] = 0 pinutils.findpin(pins, "PD17", True)["functions"]["LED_1"] = 0 pinutils.findpin(pins, "PD18", True)["functions"]["LED_2"] = 0 pinutils.findpin(pins, "PD19", True)["functions"]["LED_3"] = 0 pinutils.findpin(pins, "PD20", True)["functions"]["LED_4"] = 0 pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"] = 0 pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"] = 0 pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"] = 0 pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"] = 0 pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"] = 0 pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"] = 0 pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"] = 0 pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"] = 0 #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0, 31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"] = 0 pinutils.findpin(pins, "PD1", True)["functions"]["XL2"] = 0 pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"] = 0 pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"] = 0 pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"] = 0 pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"] = 0 pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"] = 0 pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"] = 0 pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"] = 0 pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"] = 0 # negate buttons pinutils.findpin(pins, "PD11", True)["functions"]["NEGATED"] = 0 # btn pinutils.findpin(pins, "PD16", True)["functions"]["NEGATED"] = 0 # btn pinutils.findpin(pins, "PD22", True)["functions"]["NEGATED"] = 0 # btn pinutils.findpin(pins, "PD23", True)["functions"]["NEGATED"] = 0 # btn pinutils.findpin(pins, "PD24", True)["functions"]["NEGATED"] = 0 # btn # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"] = 0 #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD27", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["RTS"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["CTS"]=0; pinutils.findpin(pins, "PD11", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD17", True)["functions"]["Button_1"]=0; pinutils.findpin(pins, "PD18", True)["functions"]["Button_2"]=0; pinutils.findpin(pins, "PD19", True)["functions"]["Button_3"]=0; pinutils.findpin(pins, "PD20", True)["functions"]["Button_4"]=0; pinutils.findpin(pins, "PD21", True)["functions"]["LED_1"]=0; pinutils.findpin(pins, "PD22", True)["functions"]["LED_2"]=0; pinutils.findpin(pins, "PD23", True)["functions"]["LED_3"]=0; pinutils.findpin(pins, "PD24", True)["functions"]["LED_4"]=0; pinutils.findpin(pins, "PD0", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["ADC1_IN7"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD27", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["RTS"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["CTS"]=0; pinutils.findpin(pins, "PD11", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD17", True)["functions"]["Button_1"]=0; pinutils.findpin(pins, "PD18", True)["functions"]["Button_2"]=0; pinutils.findpin(pins, "PD19", True)["functions"]["Button_3"]=0; pinutils.findpin(pins, "PD20", True)["functions"]["Button_4"]=0; pinutils.findpin(pins, "PD21", True)["functions"]["LED_1"]=0; pinutils.findpin(pins, "PD22", True)["functions"]["LED_2"]=0; pinutils.findpin(pins, "PD23", True)["functions"]["LED_3"]=0; pinutils.findpin(pins, "PD24", True)["functions"]["LED_4"]=0; pinutils.findpin(pins, "PD0", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["ADC1_IN7"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["RTS"]=0; pinutils.findpin(pins, "PD22", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD7", True)["functions"]["CTS"]=0; pinutils.findpin(pins, "PD23", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # Make BTN1 + BTN2 negated pinutils.findpin(pins, "PD29", True)["functions"]["NEGATED"]=0; # BTN1 pinutils.findpin(pins, "PD13", True)["functions"]["NEGATED"]=0; # BTN2 # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD5", True)["functions"]["SPI1_SCK"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["SPI1_MOSI"]=0; pinutils.findpin(pins, "PD7", True)["functions"]["I2C1_SCL"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["I2C1_SDA"]=0; #only 1 I2C available in Espruino # pinutils.findpin(pins, "PD13", True)["functions"]["I2C2_SCL"]=0; # pinutils.findpin(pins, "PD14", True)["functions"]["I2C2_SDA"]=0; pinutils.findpin(pins, "PD22", True)["functions"]["USART1_RX"]=0; pinutils.findpin(pins, "PD23", True)["functions"]["USART1_TX"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["NEGATED"]=0; # button goes low when pressed, negate # hardwired NRF52 analog inputs pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0, 31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"] = 0 pinutils.findpin(pins, "PD1", True)["functions"]["XL2"] = 0 pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"] = 0 pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"] = 0 pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"] = 0 pinutils.findpin(pins, "PD2", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"] = 0 pinutils.findpin(pins, "PD3", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"] = 0 pinutils.findpin(pins, "PD4", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"] = 0 pinutils.findpin(pins, "PD5", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"] = 0 pinutils.findpin(pins, "PD28", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD28", True)["functions"]["USART1_TX"] = 0 pinutils.findpin(pins, "PD29", True)["functions"]["USART1_RX"] = 0 pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"] = 0 pinutils.findpin(pins, "PD29", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"] = 0 pinutils.findpin(pins, "PD30", True)["functions"]["3.3"] = 0 pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"] = 0 pinutils.findpin(pins, "PD31", True)["functions"]["3.3"] = 0 #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["RTS"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD7", True)["functions"]["CTS"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. # Make buttons and LEDs negated pinutils.findpin(pins, "PD17", True)["functions"]["NEGATED"]=0; pinutils.findpin(pins, "PD19", True)["functions"]["NEGATED"]=0; pinutils.findpin(pins, "PD13", True)["functions"]["NEGATED"]=0; return pins
def get_pins(): pins = pinutils.generate_pins(0, 16) pinutils.findpin(pins, "PD0", True)["functions"]["LED_1"] = 0 pinutils.findpin(pins, "PD1", True)["functions"]["USART0_TX"] = 0 pinutils.findpin(pins, "PD2", True)["functions"]["USART1_TX"] = 0 pinutils.findpin(pins, "PD3", True)["functions"]["USART0_RX"] = 0 # just fake pins D0 .. D16 return pins
def get_pins(): pins = pinutils.generate_pins(0,15) pinutils.findpin(pins, "PD0", True)["functions"]["LED_1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["USART0_TX"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["USART1_TX"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["USART0_RX"]=0; # just fake pins D0 .. D15 return pins
def get_pins(): pins = pinutils.generate_pins(0,69) pinutils.findpin(pins, "PD0", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD13", True)["functions"]["LED"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; return pins
def get_pins(): pins = pinutils.generate_pins(0, 31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"] = 0 pinutils.findpin(pins, "PD1", True)["functions"]["XL2"] = 0 # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"] = 0 return pins
def get_pins(): pins = pinutils.generate_pins(0,14) pinutils.findpin(pins, "PD1", True)["functions"]["I2C_SDA"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["I2C_SCK"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["SPI1_SCK"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["SPI1_MOSI"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["SPI1_MISO"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["UART1_TX"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["UART1_RX"]=0; return pins
def get_pins(): pins = pinutils.generate_pins(0,31) pinutils.findpin(pins, "PD0", True)["functions"]["I2C1_SDA"]=0; # Rev 1 pinutils.findpin(pins, "PD1", True)["functions"]["I2C1_SCL"]=0; # Rev 1 pinutils.findpin(pins, "PD2", True)["functions"]["I2C1_SDA"]=0; # Rev 2 pinutils.findpin(pins, "PD3", True)["functions"]["I2C1_SCL"]=0; # Rev 2 pinutils.findpin(pins, "PD9", True)["functions"]["SPI1_MISO"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["SPI1_MOSI"]=0; pinutils.findpin(pins, "PD11", True)["functions"]["SPI1_SCK"]=0; pinutils.findpin(pins, "PD14", True)["functions"]["UART1_TX"]=0; pinutils.findpin(pins, "PD15", True)["functions"]["UART1_RX"]=0; return pins
def get_pins(): # { "name":"PD20", "sortingname":"D20", "port":"D", "num":"30", "functions":{ "I2C1_SDA":0 }, "csv":{} }, # pins = pinutils.generate_pins(0,5); ##6-11 are used by Flash chip # pins.extend(pinutils.generate_pins(12,23)); # pins.extend(pinutils.generate_pins(25,27)); ##32-33 are routed to rtc for xtal # pins.extend(pinutils.generate_pins(34,39)); # pins = pinutils.fill_gaps_in_pin_list(pins); pins = pinutils.generate_pins(0,39) # 40 General Purpose I/O Pins. pinutils.findpin(pins, "PD36", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD37", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD38", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD39", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD32", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD33", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD34", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD35", True)["functions"]["ADC1_IN7"]=0; #ADC2 not supported yet, waiting for driver from espressif pinutils.findpin(pins, "PD4", True)["functions"]["ADC2_IN0"]=0; pinutils.findpin(pins, "PD0", True)["functions"]["ADC2_IN1"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC2_IN2"]=0; pinutils.findpin(pins, "PD15", True)["functions"]["ADC2_IN3"]=0; pinutils.findpin(pins, "PD13", True)["functions"]["ADC2_IN4"]=0; pinutils.findpin(pins, "PD12", True)["functions"]["ADC2_IN5"]=0; pinutils.findpin(pins, "PD14", True)["functions"]["ADC2_IN6"]=0; pinutils.findpin(pins, "PD27", True)["functions"]["ADC2_IN7"]=0; pinutils.findpin(pins, "PD25", True)["functions"]["DAC_OUT1"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["DAC_OUT2"]=0; pinutils.findpin(pins, "PD0", True)["functions"]["LED_1"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["USART0_TX"]=0; pinutils.findpin(pins, "PD16", True)["functions"]["USART2_RX"]=0; pinutils.findpin(pins, "PD17", True)["functions"]["USART2_TX"]=0; pinutils.findpin(pins, "PD32", True)["functions"]["USART0_RX"]=0; # everything is non-5v tolerant #for pin in pins: # pin["functions"]["3.3"]=0; return pins
def get_pins(): pins = pinutils.generate_pins(0,47) # 48 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # Make buttons and LEDs negated pinutils.findpin(pins, "PD17", True)["functions"]["NEGATED"]=0; # button return pins
def get_pins(): pins = pinutils.generate_pins(0, 15) pinutils.findpin(pins, "PD0", True)["functions"]["LED_1"] = 0 # PA0 is the analog input pin #pinutils.findpin(pins, "PA0", False)["functions"]["ADC"]=0; # PB16 is the RTC GPIO pin, also called GPIO16 #pinutils.findpin(pins, "PB16", False) #for pin in pins: # pin["functions"] = { # "I2C1_SCL": "JSH_I2C1_SCL", # "I2C1_SDA": "JSH_I2C1_SDA", # "ADC": 0, # } return pins
def get_pins(): pins = pinutils.generate_pins(0,15) pinutils.findpin(pins, "PD0", True)["functions"]["LED_1"]=0; # PA0 is the analog input pin #pinutils.findpin(pins, "PA0", False)["functions"]["ADC"]=0; # PB16 is the RTC GPIO pin, also called GPIO16 #pinutils.findpin(pins, "PB16", False) #for pin in pins: # pin["functions"] = { # "I2C1_SCL": "JSH_I2C1_SCL", # "I2C1_SDA": "JSH_I2C1_SDA", # "ADC": 0, # } return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD27", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["RTS"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["TXD"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["CTS"]=0; pinutils.findpin(pins, "PD11", True)["functions"]["RXD"]=0; pinutils.findpin(pins, "PD17", True)["functions"]["Button_1"]=0; pinutils.findpin(pins, "PD18", True)["functions"]["Button_2"]=0; pinutils.findpin(pins, "PD19", True)["functions"]["Button_3"]=0; pinutils.findpin(pins, "PD20", True)["functions"]["Button_4"]=0; pinutils.findpin(pins, "PD21", True)["functions"]["LED_1"]=0; pinutils.findpin(pins, "PD22", True)["functions"]["LED_2"]=0; pinutils.findpin(pins, "PD23", True)["functions"]["LED_3"]=0; pinutils.findpin(pins, "PD24", True)["functions"]["LED_4"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # negate buttons pinutils.findpin(pins, "PD11", True)["functions"]["NEGATED"]=0; # btn pinutils.findpin(pins, "PD16", True)["functions"]["NEGATED"]=0; # btn pinutils.findpin(pins, "PD22", True)["functions"]["NEGATED"]=0; # btn pinutils.findpin(pins, "PD23", True)["functions"]["NEGATED"]=0; # btn pinutils.findpin(pins, "PD24", True)["functions"]["NEGATED"]=0; # btn return pins
def get_pins(): pins = pinutils.generate_pins(0, 39) # 40 General Purpose I/O Pins. pinutils.findpin(pins, "PD39", True)["functions"]["NEGATED"] = 0 # pins = [ # { "name":"PD19", "sortingname":"D19", "port":"D", "num":"19", "functions":{}, "csv":{} }, # { "name":"PD21", "sortingname":"D21", "port":"D", "num":"21", "functions":{}, "csv":{} }, # { "name":"PD22", "sortingname":"D22", "port":"D", "num":"22", "functions":{}, "csv":{} }, # { "name":"PD23", "sortingname":"D23", "port":"D", "num":"23", "functions":{}, "csv":{} }, # { "name":"PD25", "sortingname":"D25", "port":"D", "num":"25", "functions":{}, "csv":{} }, # { "name":"PD33", "sortingname":"D33", "port":"D", "num":"33", "functions":{}, "csv":{} }, # { "name":"PD39", "sortingname":"D39", "port":"D", "num":"39", "functions":{}, "csv":{} }, # ]; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"] = 0 return pins
def get_pins(): # pins = []; pins = pinutils.generate_pins(0, 39) pinutils.findpin(pins, "PD10", False)["functions"]["NEGATED"] = 0 pinutils.findpin(pins, "PD5", False)["functions"]["SPI1_CS"] = 0 pinutils.findpin(pins, "PD8", False)["functions"]["TFT_RST"] = 0 pinutils.findpin(pins, "PD13", False)["functions"]["SPI1_SCK"] = 0 pinutils.findpin(pins, "PD15", False)["functions"]["SPI1_MOSI"] = 0 pinutils.findpin(pins, "PD23", False)["functions"]["TFT_DC"] = 0 pinutils.findpin(pins, "PD21", False)["functions"]["I2C1_SDA"] = 0 pinutils.findpin(pins, "PD22", False)["functions"]["I2C1_SCL"] = 0 pinutils.findpin(pins, "PD37", False) pinutils.findpin(pins, "PD39", False) # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"] = 0 return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. # Software negation LED1 pinutils.findpin(pins, "PD12", True)["functions"]["NEGATED"]=0; # Add pin functions pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD7", True)["functions"]["LTE_RX"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["LTE_CTS"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["LTE_TX"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["LTE_RTS"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["USART1_TX"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["USART1_RX"]=0; pinutils.findpin(pins, "PD14", True)["functions"]["GPRS_RESET"]=0; pinutils.findpin(pins, "PD15", True)["functions"]["GPRS_PWRKEY"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["GPRS_PWN_ON"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["GPS_RESET"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["BME_CS"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["BME_SDI"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["BME_SCK"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["BME_SDO"]=0; pinutils.findpin(pins, "PD11", True)["functions"]["LIS2MDL_SCL"]=0; pinutils.findpin(pins, "PD13", True)["functions"]["LIS2MDL_SDA"]=0; pinutils.findpin(pins, "PD16", True)["functions"]["LIS2MDL_INT"]=0; pinutils.findpin(pins, "PD18", True)["functions"]["LIS3DH_SCL"]=0; pinutils.findpin(pins, "PD19", True)["functions"]["LIS3DH_SDA"]=0; pinutils.findpin(pins, "PD25", True)["functions"]["LIS3DH_INT1"]=0; pinutils.findpin(pins, "PD27", True)["functions"]["LIS3DH_INT2"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["OPT_SDA"]=0; pinutils.findpin(pins, "PD23", True)["functions"]["OPT_SCL"]=0; pinutils.findpin(pins, "PD22", True)["functions"]["OPT_INT"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"]=0; pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"]=0; pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"]=0; pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; pinutils.findpin(pins, "PD5", True)["functions"]["ADC1_IN3"]=0; pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"]=0; pinutils.findpin(pins, "PD6", True)["functions"]["USART1_TX"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["USART1_RX"]=0; pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"]=0; pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"]=0; pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"]=0; # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(2, 127) pinutils.findpin(pins, "PD19", True)["functions"]["I2C2_SCL"] = 0 pinutils.findpin(pins, "PD20", True)["functions"]["I2C2_SDA"] = 0 return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD27", True)["functions"]["XL1"]=0; pinutils.findpin(pins, "PD26", True)["functions"]["XL2"]=0; #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. return pins
def get_pins(): pins = pinutils.generate_pins(0, 31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD27", True)["functions"]["XL1"] = 0 pinutils.findpin(pins, "PD26", True)["functions"]["XL2"] = 0 #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0, 31) pinutils.findpin(pins, "PD7", True)["functions"]["SPI1_SCK"] = 0 pinutils.findpin(pins, "PD8", True)["functions"]["SPI1_MOSI"] = 0 pinutils.findpin(pins, "PD10", True)["functions"]["SPI1_MISO"] = 0 return pins
def get_pins(): pins = pinutils.generate_pins(0,27) return pins
def get_pins(): pins = pinutils.generate_pins(0,31) pinutils.findpin(pins, "PD7", True)["functions"]["SPI1_SCK"]=0; pinutils.findpin(pins, "PD8", True)["functions"]["SPI1_MOSI"]=0; pinutils.findpin(pins, "PD10", True)["functions"]["SPI1_MISO"]=0; return pins
def get_pins(): pins = pinutils.generate_pins(0, 47) # 48 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"] = 0 # NC pinutils.findpin(pins, "PD1", True)["functions"]["XL2"] = 0 # NC pinutils.findpin(pins, "PD2", True)["functions"]["ADC1_IN0"] = 0 pinutils.findpin(pins, "PD3", True)["functions"]["ADC1_IN1"] = 0 pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"] = 0 # NC pinutils.findpin(pins, "PD5", True)["functions"]["RTS"] = 0 pinutils.findpin(pins, "PD6", True)["functions"]["TXD"] = 0 pinutils.findpin(pins, "PD7", True)["functions"]["CTS"] = 0 pinutils.findpin(pins, "PD8", True)["functions"]["RXD"] = 0 pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"] = 0 pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"] = 0 pinutils.findpin(pins, "PD11", True)["functions"]["NEGATED"] = 0 # BTN1 pinutils.findpin(pins, "PD12", True)["functions"]["NEGATED"] = 0 # BTN2 pinutils.findpin(pins, "PD13", True)["functions"]["NEGATED"] = 0 # LED1 pinutils.findpin(pins, "PD14", True)["functions"]["NEGATED"] = 0 # LED2 pinutils.findpin(pins, "PD15", True)["functions"]["NEGATED"] = 0 # LED3 pinutils.findpin(pins, "PD16", True)["functions"]["NEGATED"] = 0 # LED4 # pinutils.findpin(pins, "PD17", False) # pinutils.findpin(pins, "PD18", False) # neopixel SCK # NC # pinutils.findpin(pins, "PD19", False) # pinutils.findpin(pins, "PD20", False) # pinutils.findpin(pins, "PD21", False) # pinutils.findpin(pins, "PD22", False) # pinutils.findpin(pins, "PD23", False) # neopixel LRCK # NC # pinutils.findpin(pins, "PD26", False) # pinutils.findpin(pins, "PD27", False) pinutils.findpin(pins, "PD24", True)["functions"]["NEGATED"] = 0 # BTN3 pinutils.findpin(pins, "PD25", True)["functions"]["NEGATED"] = 0 # BTN4 pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN4"] = 0 pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN5"] = 0 pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN6"] = 0 pinutils.findpin(pins, "PD31", True)["functions"]["ADC1_IN7"] = 0 # pinutils.findpin(pins, "PD32", False) # 1.00 # NC # pinutils.findpin(pins, "PD33", False) # 1.01 # pinutils.findpin(pins, "PD34", False) # 1.02 # pinutils.findpin(pins, "PD35", False) # 1.03 # NC # pinutils.findpin(pins, "PD36", False) # 1.04 # NC # pinutils.findpin(pins, "PD37", False) # 1.05 # NC # pinutils.findpin(pins, "PD38", False) # 1.06 # NC # pinutils.findpin(pins, "PD39", False) # 1.07 # NC # pinutils.findpin(pins, "PD40", False) # 1.08 # NC # pinutils.findpin(pins, "PD41", False) # 1.09 # NC # pinutils.findpin(pins, "PD42", False) # 1.10 # NC # pinutils.findpin(pins, "PD43", False) # 1.11 # NC # pinutils.findpin(pins, "PD44", False) # 1.12 # pinutils.findpin(pins, "PD45", False) # 1.13 # pinutils.findpin(pins, "PD46", False) # 1.14 # pinutils.findpin(pins, "PD47", False) # 1.15 # everything is non-5v tolerant for pin in pins: pin["functions"]["3.3"] = 0 #The boot/reset button will function as a reset button in normal operation. Pin reset on PD21 needs to be enabled on the nRF52832 device for this to work. return pins
def get_pins(): pins = pinutils.generate_pins(0,32) # just fake pins D0 .. D32 return pins
def get_pins(): pins = pinutils.generate_pins(0, 27) return pins
def get_pins(): pins = pinutils.generate_pins(0,15) # just fake pins D0 .. D15 return pins