Pin B15 should output PWM, but analogWrite(B15,...) gives an error:
Error: Pin B15 is not capable of PWM output...
The error also says pin B12 is a PWM output (which doesn't seem to work).
I think there is a mismatch somewhere.
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.
According to the reference: http://www.espruino.com/ReferenceNUCLEOF401RE
Pin B15 should output PWM, but analogWrite(B15,...) gives an error:
Error: Pin B15 is not capable of PWM output...
The error also says pin B12 is a PWM output (which doesn't seem to work).
I think there is a mismatch somewhere.
Cheers,
Rob