How to change buzzer pin in InternetButton's Library? [SOLVED]

I’m really new to programming and electronics in general.
I have prototyped something with the InternetButton and now I’m building a new hardware prototype from scratch, based on the InternetButton, plus adding a TFT LCD and other stuff.
The thing is the buzzer’s original pin (D0) is already taken by the TFT’s D/C pin and I want to avoid rewiring it.

I would like to know how can I modify the library to assign D2 as the buzzers pin instead of D0.
I can’t find it in the library. Any suggestions?

1 Like

I found it here:

The library is hosted on GitHub here:

1 Like

Thanks a lot! don’t know how i missed that… :grin:

1 Like

Why not just use the respective libraries for the parts you’re using? The internetbutton library is basically just a mashup of various libraries.

As I said before the original prototype was done using InternetButton and progressively got more complex from there. I needed a fast way o reusing all the code I already had, this was the fastest/simplest solution I could think of.

This is just a proof of concept to be shown tomorrow, eventually I’ll have to use the original libraries as you well said.