Hi Stefan, thanks! I'll update the Serial.setup docs to mention default pins.
Yes, specifying the pins is much easier - however Serial1 is automatically initialised on A9/10, and if there is no USB connection then Espruino automatically moves the 'console' over to it. That means that if you plug the device into a USB charger or a battery, you'll be able to program Espruino wirelessly by bluetooth.
You can still do that on B6/B7 (with Serial.setup) - it's just that A9/10 is the default and for that, Serial1.setup is not needed at all.
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 Stefan, thanks! I'll update the
Serial.setup
docs to mention default pins.Yes, specifying the pins is much easier - however Serial1 is automatically initialised on A9/10, and if there is no USB connection then Espruino automatically moves the 'console' over to it. That means that if you plug the device into a USB charger or a battery, you'll be able to program Espruino wirelessly by bluetooth.
You can still do that on B6/B7 (with
Serial.setup
) - it's just that A9/10 is the default and for that,Serial1.setup
is not needed at all.