Electron B1 tone output in 0.6.4


I’m having trouble getting a tone output from B1 on my Electrons using firmware 0.6.4. With the code below, If I set buzzerPin to B0, I get a tone output on B0. If I set it to B1, I get no tone output on B1. The reference for tone() says: “Additionally on the Electron, this function works on pins B0, B1, B2, B3, C4, C5”. It would appear that B1 shouldn’t be on this list.

Here’s my 5 lines of test code:

#include "Particle.h"
int buzzerPin=B0;
void setup() { pinMode(buzzerPin, OUTPUT); }
void loop() { tone(buzzerPin,2048,40); delay(500u); }


I haven’t tested this yet, but according to the pin map B1 is tied to Timer 8 Channel 1 which would suggest PWM capability. So the pin should do it but maybe there is an issue in the framework.

Needs investigation.

Have you tried some other system versions to see whether this was already fixed (will be fixed in future releases)?