Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gitmasternikanjam/buzzeralarm_arduino

Simple arduino library for control active buzzer alarms.
https://github.com/gitmasternikanjam/buzzeralarm_arduino

Last synced: about 1 month ago
JSON representation

Simple arduino library for control active buzzer alarms.

Awesome Lists containing this project

README

        

# library for Arduino

- This library can be used to control active buzzer sounds.
- There are some predefined functions to create sounds with a buzzer.
- This library is compatible with all boards or MCUs that are compatible with the Arduino IDE.
- ⚠️ **Warning:** Warning: All alarm sounds are generated in time block mode.

## Public Member Functions

```c++

bool init(void); // Initial object. start digital GPIO ouput mode. Check parameters.
void soundInit(void); // Alarm for finished initial and configurations something.
void soundStop(void); // Alarm for stop something action for operations.
void soundWarning_1(void); // Alarm type_1 for warning happening.
void soundWarning_2(void); // Alarm type_2 for warning happening.
void soundWarning_3(void); // Alarm type_3 for warning happening.
void on(void); // turn on sound.
void off(void); // turn off sound.

```

## Public Member Variables

```c++

String errorMessage; // Last error accured for object.
struct ParametersStruct parameters; // Structure variable for parameters. parameters include: PIN_NUM, ACTIVE_MODE

```