Yeah, this doesn't look right:
>(new Pin(B10)).getInfo() ={ "port": "B", "num": 10, "functions": { "I2C2": { "type": "SCL", "af": 4 }, "TIM2": { "type": "CH3", "af": 1 }, "SPI2": { "type": "SCK", "af": 5 } } } >(new Pin(B11)).getInfo() ={ "port": "B", "num": 12, "functions": { } } >(new Pin(B12)).getInfo() ={ "port": "B", "num": 13, "functions": { "SPI2": { "type": "SCK", "af": 5 }, "TIM1": { "type": "CH1N", "af": 1 } } }
The jspininfo.c file look correct, though:
/* PB10 */ { JSH_PORTB, JSH_PIN0+10, JSH_ANALOG_NONE, { JSH_AF4|JSH_I2C2|JSH_I2C_SCL/* 1 Uses */, JSH_AF1|JSH_TIMER2|JSH_TIMER_CH3/* 2 Uses */, JSH_AF5|JSH_SPI2|JSH_SPI_SCK/* 2 Uses */, 0 } }, /* PB12 */ { JSH_PORTB, JSH_PIN0+12, JSH_ANALOG_NONE, { 0, 0, 0, 0 } }, /* PB13 */ { JSH_PORTB, JSH_PIN0+13, JSH_ANALOG_NONE, { JSH_AF5|JSH_SPI2|JSH_SPI_SCK/* 2 Uses */, JSH_AF1|JSH_TIMER1|JSH_TIMER_CH1|JSH_TIMER_NEGATED/* 3 Uses */, 0, 0 } }, /* PB14 */ { JSH_PORTB, JSH_PIN0+14, JSH_ANALOG_NONE, { JSH_AF5|JSH_SPI2|JSH_SPI_MISO/* 1 Uses */, JSH_AF1|JSH_TIMER1|JSH_TIMER_CH2|JSH_TIMER_NEGATED/* 3 Uses */, 0, 0 } },
@tve 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.
Yeah, this doesn't look right:
The jspininfo.c file look correct, though: