Skip to content

Commit

Permalink
Update netgotchi.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mxzz committed Jul 27, 2024
1 parent 16252c0 commit 4c598f0
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions netgotchi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -204,27 +204,6 @@ void setup() {

if (useButtonToResetFlash) pinMode(flashButtonPin, INPUT_PULLUP);

#ifdef USE_ESP32
// Initialize LEDC for ESP32 buzzer
ledc_timer_config_t ledc_timer = {
.speed_mode = LEDC_HIGH_SPEED_MODE,
.duty_resolution = LEDC_TIMER_8_BIT,
.timer_num = LEDC_TIMER_0,
.freq_hz = 1000,
.clk_cfg = LEDC_AUTO_CLK
};
ledc_timer_config(&ledc_timer);

ledc_channel_config_t ledc_channel = {
.gpio_num = buzzer_pin,
.speed_mode = LEDC_HIGH_SPEED_MODE,
.channel = LEDC_CHANNEL_0,
.timer_sel = LEDC_TIMER_0,
.duty = 0,
.hpoint = 0
};
ledc_channel_config(&ledc_channel);
#endif
}

void loop() {
Expand Down Expand Up @@ -390,10 +369,9 @@ void displayTimeAndDate() {
displaySetCursor(80, 8);
displayPrint("Breached");
displaySetCursor(40, 16);
#ifdef USE_ESP8266

#if defined(ESP8266)
displayPrint(ftpSrv.getHoneyPotBreachIPandTime());
#else
displayPrint("IP: " + WiFi.localIP().toString());
#endif
}
} else {
Expand Down

0 comments on commit 4c598f0

Please sign in to comment.