Skip to content

Commit

Permalink
Md files
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcruzpb committed Dec 25, 2022
1 parent 535f811 commit 1a43db2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
Binary file added docs/assets/images/gpc-add-ons-buzzer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/images/gpc-buzzer-config.png
Binary file not shown.
16 changes: 8 additions & 8 deletions docs/web-configurator.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,21 @@ I2C Analog ADS1219
* `I2C Analog ADS1219 Speed` - Sets the speed of I2C communication. Common values are `100000` for standard, `400000` for fast and `800000` ludicrous speed.
* `I2C Analog ADS1219 Address` - Sets the address for the I2C Analog ADS1219.

Buzzer Speaker

![GP2040 Configurator - Add-Ons Buzzer](assets/images/gpc-add-ons-buzzer.png)

* `Use buzzer` - Turns on/off the buzzer module.
* `Buzzer Pin` - The GPIO pin used for the buzzer.
* `Buzzer Volume` - Audio volume of buzzer. 0-100.

## Data Backup and Restoration

![GP2040 Configurator - Add-Ons Backup and Restore](assets/images/gpc-backup-and-restore.png)

* `Backup To File` - Allows you to select what to backup to a file (default is all selected).
* `Restore From File` - Allows you to select what to restore from a file (default is all selected).

## Buzzer Speaker Configuration

![GP2040 Configurator - Buzzer Speaker Configuration](assets/images/gpc-buzzer-config.png)

* `Use buzzer` - Turns on/off the buzzer module.
* `Buzzer Pin` - The GPIO pin used for the buzzer.
* `Buzzer Volume` - Audio volume of buzzer. 0-100.

## DANGER ZONE

![GP2040 Configurator - Reset Settings](assets/images/gpc-reset-settings.png)
Expand Down
8 changes: 2 additions & 6 deletions include/addons/buzzerspeaker.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#include <vector>
using namespace std;

#ifndef BUZZER_H_
#define BUZZER_H_

#include <vector>
#include <string>
#include "hardware/pwm.h"
#include "BoardConfig.h"
#include "gpaddon.h"
#include "gamepad.h"
using namespace std;

#ifndef BUZZER_ENABLED
#define BUZZER_ENABLED -1
Expand Down
5 changes: 1 addition & 4 deletions src/addons/buzzerspeaker.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#include "hardware/pwm.h"
#include "addons/buzzerspeaker.h"
#include "songs.h"
#include "enums.h"
#include "helper.h"
#include "storagemanager.h"
#include "pico/stdlib.h"
#include "bitmaps.h"
#include "math.h"
#include "usb_driver.h"

Expand Down

0 comments on commit 1a43db2

Please sign in to comment.