Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueforcer committed Aug 28, 2023
1 parent 7571745 commit e1e9e24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ IPAddress gateway;
IPAddress subnet;
IPAddress primaryDNS;
IPAddress secondaryDNS;
const char *VERSION = "0.82";
const char *VERSION = "0.81";

String MQTT_HOST = "";
uint16_t MQTT_PORT = 1883;
Expand Down
5 changes: 2 additions & 3 deletions src/PeripheryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,6 @@ void PeripheryManager_::setup()
dfmp3.begin();
#endif
photocell.setPhotocellPositionOnGround(false);

ledcSetup(LEDC_CHANNEL, 2000, LEDC_RESOLUTION); // Start mit 2kHz
ledcAttachPin(BUZZER_PIN, LEDC_CHANNEL);
}

void PeripheryManager_::tick()
Expand Down Expand Up @@ -476,11 +473,13 @@ long PeripheryManager_::readUptime()

void PeripheryManager_::r2d2(const char *msg)
{
#ifdef ULANZI
for (int i = 0; msg[i] != '\0'; i++)
{
char c = msg[i];
tone(BUZZER_PIN, (c - 'A' + 1) * 50);
delay(baudRate + 10);
}
noTone(BUZZER_PIN);
#endif
}

0 comments on commit e1e9e24

Please sign in to comment.