forked from robotsrulz/MKS-TFT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f27376
commit 1997b31
Showing
26 changed files
with
5,987 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Buzzer.h | ||
* | ||
* Created: 13/11/2014 22:56:34 | ||
* Author: David | ||
*/ | ||
|
||
|
||
#ifndef BUZZER_H_ | ||
#define BUZZER_H_ | ||
|
||
namespace Buzzer | ||
{ | ||
void Init(); | ||
|
||
void Beep(uint32_t frequency, uint32_t ms, uint32_t volume); | ||
|
||
void Tick(); | ||
|
||
bool Noisy(); | ||
|
||
void SetBacklight(uint32_t brightness); | ||
|
||
const uint32_t MaxVolume = 5; | ||
const uint32_t DefaultVolume = 3; | ||
const uint32_t MaxBrightness = 100; | ||
const uint32_t MinBrightness = 5; // avoid making it so dark that it cannot be seen | ||
const uint32_t DefaultBrightness = 100; // default = maximum because lower levels make the backlight inverter buzz | ||
} | ||
|
||
#endif /* BUZZER_H_ */ |
Oops, something went wrong.