Hi Gordon (i remember always the Gordon comissary - BATMAN)!,
i read the theory!
I guess that i changed in the correct place!
**def get_pins(): pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins. pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; #OK NC pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; #OK NC pinutils.findpin(pins, "PD2", True)["functions"]["I2C_SDA"]=0; #OK AN1 i2c_sda pinutils.findpin(pins, "PD3", True)["functions"]["I2C_SCL"]=0; #OK AN0 i2c_scl pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; #OK AN2 pinutils.findpin(pins, "PD5", True)["functions"]["RXD"]=0; #OK TXD D0 pinutils.findpin(pins, "PD6", True)["functions"]["TXD"]=0; #OK TXD D1 pinutils.findpin(pins, "PD7", True)["functions"]["CTS"]=0; #OK CTS D2 pinutils.findpin(pins, "PD8", True)["functions"]["LED_1"]=0; #OK LED1 D9 pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"]=0; #OK NFC1 D6 pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"]=0; #OK NFC1 D7 pinutils.findpin(pins, "PD11", True)["functions"]["SPI_CS"]=0; #OK SPI_CS D10 pinutils.findpin(pins, "PD12", True)["functions"]["SPI_MISO"]=0; #OK SPI_MISO D12 pinutils.findpin(pins, "PD13", True)["functions"]["SPI_MOSI"]=0; #OK SPI_MOSI D11 pinutils.findpin(pins, "PD14", True)["functions"]["SPI_SCK"]=0; #OK SPI_SCK D13 pinutils.findpin(pins, "PD16", True)["functions"]["LED_2"]=0; #OK LED2/SWITCH pinutils.findpin(pins, "PD18", True)["functions"]["LED_3"]=0; #OK LED3 D4 pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN5"]=0; #OK AN5 pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN4"]=0; #OK AN4 pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN3"]=0; #OK AN3 pinutils.findpin(pins, "PD31", True)["functions"]["RTS"]=0; #OK RTS D3 . . .
@tcpipchip started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Gordon (i remember always the Gordon comissary - BATMAN)!,
i read the theory!
I guess that i changed in the correct place!
**def get_pins():
pins = pinutils.generate_pins(0,31) # 32 General Purpose I/O Pins.
pinutils.findpin(pins, "PD0", True)["functions"]["XL1"]=0; #OK NC
pinutils.findpin(pins, "PD1", True)["functions"]["XL2"]=0; #OK NC
pinutils.findpin(pins, "PD2", True)["functions"]["I2C_SDA"]=0; #OK AN1 i2c_sda
pinutils.findpin(pins, "PD3", True)["functions"]["I2C_SCL"]=0; #OK AN0 i2c_scl
pinutils.findpin(pins, "PD4", True)["functions"]["ADC1_IN2"]=0; #OK AN2
pinutils.findpin(pins, "PD5", True)["functions"]["RXD"]=0; #OK TXD D0
pinutils.findpin(pins, "PD6", True)["functions"]["TXD"]=0; #OK TXD D1
pinutils.findpin(pins, "PD7", True)["functions"]["CTS"]=0; #OK CTS D2
pinutils.findpin(pins, "PD8", True)["functions"]["LED_1"]=0; #OK LED1 D9
pinutils.findpin(pins, "PD9", True)["functions"]["NFC1"]=0; #OK NFC1 D6
pinutils.findpin(pins, "PD10", True)["functions"]["NFC2"]=0; #OK NFC1 D7
pinutils.findpin(pins, "PD11", True)["functions"]["SPI_CS"]=0; #OK SPI_CS D10
pinutils.findpin(pins, "PD12", True)["functions"]["SPI_MISO"]=0; #OK SPI_MISO D12
pinutils.findpin(pins, "PD13", True)["functions"]["SPI_MOSI"]=0; #OK SPI_MOSI D11
pinutils.findpin(pins, "PD14", True)["functions"]["SPI_SCK"]=0; #OK SPI_SCK D13
pinutils.findpin(pins, "PD16", True)["functions"]["LED_2"]=0; #OK LED2/SWITCH
pinutils.findpin(pins, "PD18", True)["functions"]["LED_3"]=0; #OK LED3 D4
pinutils.findpin(pins, "PD28", True)["functions"]["ADC1_IN5"]=0; #OK AN5
pinutils.findpin(pins, "PD29", True)["functions"]["ADC1_IN4"]=0; #OK AN4
pinutils.findpin(pins, "PD30", True)["functions"]["ADC1_IN3"]=0; #OK AN3
pinutils.findpin(pins, "PD31", True)["functions"]["RTS"]=0; #OK RTS D3
.
.
.