Skip to content

Commit

Permalink
complete rework - continue
Browse files Browse the repository at this point in the history
  • Loading branch information
robotsrulz committed Jun 15, 2017
1 parent 9f27376 commit 1997b31
Show file tree
Hide file tree
Showing 26 changed files with 5,987 additions and 116 deletions.
31 changes: 31 additions & 0 deletions Inc/Buzzer.h
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_ */
Loading

0 comments on commit 1997b31

Please sign in to comment.