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"
SYSTEM_MODE(MANUAL);
int buzzerPin=B0;
void setup() { pinMode(buzzerPin, OUTPUT); }
void loop() { tone(buzzerPin,2048,40); delay(500u); }