Skip to content

Added buzzer class, interface and unittests. The buzzer contains 1 function...

Anas Maarouf requested to merge feature/Buzzer-Beeper into master

Added buzzer class, interface and unittests. The buzzer contains 1 function with one parameter which defines the number of bursts (negative numbers and 0 is handled as 1 burst). Similar to the "Light" class outputting when turned on/off to the "output" class the "Buzzer" does the same, but outputs that it played a sound the number of bursts of times.

Modified "CookController" class and the main program to implement the buzzer, and plays sounds in the event function "OnTimeExpired".

Modified "Program" to instantiate a new "Buzzer" and pass it to the constructer on the "CookController".

Merge request reports

Loading