Skip to content

setBuzzer code not working, need updates #1

@garfield38

Description

@garfield38

To be able playing with the integrated buzzer, you need to changes the following lines:
blunoAccessory.h line 56: void setBuzzer(bool value=true, int pitch=100);

blunoAccessory.cpp line 93:
void blunoAccessory::setBuzzer(bool value, int pitch){
pinMode(buzzerPin,OUTPUT);
if (value) tone(buzzerPin,pitch); else noTone(buzzerPin);
}

AccessoryShieldTest.ino line 35: int buzzerTone,ledR,ledG,ledB,brightness;
AccessoryShieldTest.ino line 65: buzzerTone=map(myAccessory.readKnob(),0,1023,30,5000);
AccessoryShieldTest.ino line 91: myAccessory.setBuzzer(buzzerState,buzzerTone);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions