Add string based constructor for Buzzer and an example to initialize it

This commit is contained in:
mihais
2018-03-29 18:03:59 +03:00
committed by Stefan Andritoiu
parent a1accb65df
commit 145db5997b
6 changed files with 65 additions and 78 deletions

View File

@ -7,6 +7,6 @@
int
main(int argc, char** argv)
{
upm::Buzzer buzzer("p:33,vol:1.0");
upm::Buzzer buzzer("p:32,vol:0.01,play:3800:500000");
return 0;
}