add a #define for buzer pin

main
JbLb 3 years ago
parent c6b23a8aca
commit fd52693593

@ -52,7 +52,7 @@ int b = -1;
if (currentClick > lastClick + DEBOUNCING_DELAY) {
Serial.println(" Sort");
lastClick = currentClick;
tone(12, 1000, 50);
tone(BUZZ, 1000, 50);
lastButtonId = b;
} else {
b = -1;

@ -1,6 +1,6 @@
#define KEYS_PIN A0
#define BUZZ 12 // Buzzer
int getPressedButton();
void setupButtons();

@ -12,7 +12,6 @@
#include <AccelStepper.h>
#include <Servo.h>
#include "charset.h"
//#include "buttons.h"
#include "my_buttons.h"
@ -47,6 +46,8 @@ SoftwareSerial BTSerie(RxD, TxD);
#define motorPin7 10 // IN3 on the ULN2003 driver 2
#define motorPin8 11 // IN4 on the ULN2003 driver 2
// Menu index
#define START_MENU 0
#define SETTINGS_MENU 1
@ -127,13 +128,13 @@ void setup() {
setupButtons();
Serial.println(F("Setup"));
tone(12, 1047, 100);
tone(BUZZ, 1047, 100);
delay(150);
tone(12, 1319, 100);
tone(BUZZ, 1319, 100);
delay(150);
tone(12, 1560, 100);
tone(BUZZ, 1560, 100);
delay(150);
noTone(12);
noTone(BUZZ);
lcd.init();
lcd.backlight();

Loading…
Cancel
Save