Pimentoso / mini4wdchrono

Software for Arduino based 3-lane lap timer for Tamiya Mini4wd.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use digitalWrite for buzzer instead of Piezo object

Pimentoso opened this issue · comments

It's meaningless to use the Piezo lib for an active buzzer that can only output 1 note. Use this

board.on("ready", function() {

    this.pinMode(3, five.Pin.OUTPUT);
    this.digitalWrite(3, 1);
    this.wait(1500, function() {
        board.digitalWrite(3, 0);
    });
});